Connecting Hops-Bot to an Exchange
Last updated
Last updated
Connecting your exchange account to Hops-Bot is done using API keys.
An API key is a unique identifier used to authenticate and authorize applications or users when interacting with an API.
In simpler terms, an API key functions like a password, granting an application access to specific data or features on another platform. For example, it enables Hops-Bot to retrieve information or send requests to execute trades.
The API key serves as a bridge between Hops-Bot and your exchange, allowing the bot to perform tasks such as automatic order placement and account access for transaction calculations.
We recommend keeping your personal funds separate from the funds Hops-Bot will use for spot trading. To do this, you can create a sub-account on Binance, which will allow you to allocate a separate account for Hops-Bot. While this step is optional, it can make managing your funds more convenient.
To create a sub-account, go to:
Dashboard → Sub-Accounts → Account Management → Create Sub-Account.
For quick access, you can use this link.
Step 1
If you don’t already have a Binance account, visit the Binance website and register one.
Step 2
Verify your account and proceed to work with the API. Note that both your main account and sub-account share the same "API Management" settings. Make sure to select the account whose funds you want to connect to Hops-Bot.
Then, click on "Create API" to proceed.
Step 3
In the new window, choose “System-Generated” and click "Next."
Step 4
Select the email associated with your account and assign a name to the API key.
Step 5
Confirm the creation of the API key by completing all verification methods suggested by Binance.
Step 6
Your API keys have now been successfully created. However, at this stage, they cannot yet be used for trading.
To enhance the security of your funds, Binance requires you to whitelist the IP addresses of Hops-Bot's servers in your API key settings. This step ensures that only Hops-Bot servers can perform operations with your Binance account, providing an extra layer of security even if your API keys are compromised.
To do this, go to the settings in Hops-Bot and copy the IP addresses provided.
Step 7
Return to Binance and paste the copied IP addresses, selecting the option "Restrict access to trusted IPs only." To activate trading functionality, check the box next to "Enable Spot & Margin Trading."
There is no need to enable any other permissions, and Hops-Bot will never request permissions for "Withdrawals" or "Universal Transfers."
Do not click "Save" yet, as one final step remains.
Step 8
Copy the API and secret keys displayed on Binance and paste them into Hops-Bot. Ensure you do not mix them up. Then save the changes on both Binance and Hops-Bot. Allow the bot some time to synchronize everything.
That's it! You’ve successfully connected your exchange to Hops-Bot using API keys. You’re now ready to proceed to the next steps.