If this is not your first time using Binance API, you can skip step 1. If this is your first time using Binance API, to proceed you need to accept Binance API Terms of Use.
a) Open your Binance Account Dashboard and click on Account -> API Management
b) After opening API Management for the first time, API Terms of Use popup window will open. Click “I agree”.
Step 2: Create a Sub Account on Binance
The Sub Account feature allows users to create multiple accounts that are linked to a single main account. This setup is designed to enhance oversight and management of the overall performance of your Binance account by segmenting activities into distinct,easily monitored units.
We recommend running each trading bot on a separate Binance Sub Account. SubAccounts are easy to set up and provide an effective way to monitor different trading strategies independently.
Our application permits only one trading bot per Binance account or Sub Account,ensuring a clear and organized approach to strategy execution.
a) To create Sub Account, go to your Binance Dashboard and click on Sub Accounts.
If it is your first time using Sub Accounts functionality, you will need to activate it.
b) Thereafter, go to Account Management and click on “Create Sub Account”.
A pop-up window will open, where you will need to fill in details for your Sub Account.
Make sure to set Sub Account Type as “Create with email”. For this, you will need to have valid email address that is not already used for another Binance account.
c) Once you create a Sub Account, it will appear on the list. By clicking on the three dots in the right, menu window will open that will allow you to transfer funds in and out of the Sub Account.
By clicking on “Transfer In”, new window will open that will let you transfer funds to the Sub Account. You can transfer funds as much as you want your trading bot to manage.
Once you click “Confirm”, funds will be instantly sent to your Sub Account. At any point, you can move funds in our out – free of charge – following the same steps.
Now, you can login to your Sub Account just like to any other account on Binance. Sub Account is its own account, that is owned by the Main Account.
Step 3: Activate margin account on your (Sub)Account
Now login to your (Sub)Account where you will be running your trading bot.
a) You will need to activate the Cross Margin account in order to use our bots. To do so, go to Assets -> Spot and click on the “Transfer” button that appears in the “Estimated Balance” window.
b) A new pop-up window will open, and you will need to enter the data to transfer funds from “Spot” to “Cross Margin.” Feel free to transfer any cryptocurrency in any amount. This is a necessary step to activate the “Cross Margin” account. In the example here, we are transferring 0.17 BNB from Fiat and Spot to the Cross Margin account
You can leave the funds in the Cross Margin account, and our system will immediately recognize them.
Step 4: Set up API Access on your (Sub)Account
a) Login to your Sub Account, go to Dashboard and Click on Account -> API Management.
b) Click on “Create API”. Follow the instructions thereafter. Chose “System Generated” and give a name to your API ("Label API Key to proceed" is just naming your API). If you are first time inside your Sub Account, the system will require from you to set up Authenticator App in order to continue, and you might need to start the procedure from beginning.
c) After creating API, you will see API Window. Make sure to save API Key and Secret Key and store them securely. Secret Key will only be shown once – the first time when you refresh the page, Secret Key will be hidden and you will never be able to access it again. If you lose it, you will need to again create new API – following procedure from part b).
d) Now click on “Edit restrictions” inside the API that you created. You will firstly need to enable “Restrict access to trusted IPs only (Recommended)”. Once you enable it, you will need to enter the IP address of the server that will automatically execute trades for you. This IP Address is provided to you in your Bot Settings on the Terarium platform. Lastly, you will need to enable “Enable Spot & Margin Trading” & “Enable Margin Loan, Repay & Transfer”. After that you are good to go.