> For the complete documentation index, see [llms.txt](https://newsly.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://newsly.gitbook.io/docs/using-the-bot/setup-guide/generating-api-keys-on-bybit.md).

# Generating API Keys on Bybit

To enable connection between Newsly Telegram bot and Bybit, you'll need to generate a specific set of API keys exclusively for Newsly. Follow these steps to generate your API keys on Bybit:

1. Login in to your [Bybit](https://www.bybit.com/register?affiliate_id=54457\&group_id=0\&group_type=1) account, If you don’t have one, create one here.
2. Navigate to the account or subaccount you will use.
3. Click on your profile and select "API" from the menu that appears, as shown in the image below:

<figure><img src="/files/pytvjAlP3X2bQmeXg973" alt="" width="286"><figcaption></figcaption></figure>

4. In the API window, click on the "Create New Keys" button. You'll be prompted to choose an API key type. If you're not sure how to generate your own keys, select "System Generated API Keys".
5. Give the key an easy-to-identify name, such as "Newsly", and copy the permissions indicated in the image below to ensure your setup matches.

Be sure to add the following IPs to your API Key to ensure extra security: `52.30.103.212`

<figure><img src="/files/oREBtjiKNpWzjFhUZLwx" alt="" width="375"><figcaption></figcaption></figure>

You're all set! Make sure to keep the API key and secret in a secure location as we'll need them in just a moment!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://newsly.gitbook.io/docs/using-the-bot/setup-guide/generating-api-keys-on-bybit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
