# Binance Sub-accounts & API Connection

Creating your own APIs will help users easily connect their Binance Exchange Wallet to our website - Investy.ai. Your information and data will be pulled directly from Binance and available in Investy.ai by using the created API. Then, you can choose Portfolios in the Auto Invest tab. Sit back, free-hands and let Investy.ai invest for you.&#x20;

### **HOW TO CREATE SUB ACCOUNTS**&#x20;

Step 1: Login to your Binance account, and click **\[Profile] - \[Sub Accounts]**.

<figure><img src="https://lh7-us.googleusercontent.com/GZMLS6cXYm_MWZkSM-_30j1SDb5Cf_KcPn0_OvKmuplwVxVaTuDXh_vM0v4e6Ttvgdj-q3y-Vaz45aHc-YMACjr-Z4XK-tQLteEnK5n5hKhywQPUGeonsuWzBx6KO4jrqRsDkxmWkviqFZiDJpPkST0" alt=""><figcaption></figcaption></figure>

Step 2: Then, go to **\[Account Management]** → select **\[Create Sub Account]**

<figure><img src="https://lh7-us.googleusercontent.com/fiUq8F1Volk3hIkdYPxegZQW7LPDuZkpeKOgVV6K4XRqR9ujp9SgpafWGRqTb8sKbkV3QW0w8L3IyjhLiuEHEJ8CcFbutBg9FBvCZgRHeuSlw3JvUI_EjuZ_PnPnCAT-_4oiTPiWandURp36Ttlq10k" alt=""><figcaption></figcaption></figure>

<br>

Step 3: You will have various options to create your sub accounts such as creating with email, virtual email, …

* Choose **\[Create with virtual email**], please note that the sub-account can only be operated by the master account through API. The virtual email can’t be used to login into a sub-account, otherwise select the other option

<figure><img src="https://lh7-us.googleusercontent.com/qFyDelSgkQSldPn6vwIkTm_Te-VqTFGYYawHNEfengDerSShCvEdXUq8EPcZKcIyTSrlfotPpnJECOZ936uvYxoDjrA2e2VF-bHSsuv0zzCZQED0iDusW5qC_0vN_to-ZlUu5hPZ9DTgdGpuF5f9Q5Q" alt="" width="188"><figcaption></figcaption></figure>

Step 4: Complete creating the sub accounts, you can manage your sub accounts under account management

### **HOW TO TRANSFER YOUR ASSETS BETWEEN MASTER AND SUB ACCOUNTS**

After created a sub-account, now you have your sub-account ready to be used&#x20;

Step 1: Go to **\[Asset Management]** under Sub Accounts&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/XM_6WM6CW-tHYgvxzbaCS8-Wl7A_hmCmfxPapOyC4SMgY0bzGzC5ULpvmdKfSUKrq1T6nKTNbhfO0r2XdCVUlKVmRVZESyUPxTYrTeYRTRo2SAvLpjrLpPqxe2bGUymqWAUAtj37UY3rhra7Jdhpz_A" alt=""><figcaption></figcaption></figure>

Step 2: Click **\[Transfer]** to transfer assets between the accounts instantly without charges <br>

<figure><img src="https://lh7-us.googleusercontent.com/13_Dr7GsfxQ7TM63_VOTH_n2pP7BhTSj71nDlUNfyUYWY6FNN5Tdw23HC1V3V848RLmVD3RJ6J9B4GkKhTpc-LBHRQOcRND8cNOuqwb6ht8XfhPdZNYV3M3oxfyolxpSBm3-J2IRKyPHXV3upKa9lok" alt=""><figcaption></figcaption></figure>

Step 3: Then, Select the account you want to transfer from which account **\[Transfer From] \[Transfer To]**. And **\[Enter]** the sufficient amount.<br>

<figure><img src="https://lh7-us.googleusercontent.com/yY8DrtBd8AT3ZGg4Qfuts6QzGj356-hMYj33z01GQjeCUFMNepg1hqiPGXZQpKN4lRPu4U4W4GLi9lYzqMkl5fs488BvH6tbVJf4C3aRKD--g9uX37sEHveV2YNMovKTrOEIGJfw8OiB9lkDDhfatWg" alt=""><figcaption></figcaption></figure>

Step 4: Then, confirm the transfer. You will be able to have your assets transferred to the sub-accounts and ready to be used

> <mark style="color:blue;">IMPORTANT NOTE: Prior to successfully connecting the API to Investy.ai, users are required to transfer assets to a designated sub-account first.</mark><br>

**HOW TO CREATE AND CONNECT APIs TO INVESTY.AI**

*Follow these steps to get your own API:*

<mark style="color:blue;">\*\*\*Note: Before creating the API, for your security make sure that you have already turned on the 2FA (Two-factor authentication)</mark>&#x20;

There are various methods to set up two factor authentication in Binance such as SMS Authentication, Google Authentication, Email, Passkeys, …&#x20;

<mark style="background-color:orange;">**Useful links:**</mark>&#x20;

* [How to enable 2FA in Binance Desktop Version](https://www.binance.com/en/support/faq/how-to-enable-google-authenticator-for-2fa-on-the-binance-website-115000433432)
* [How to enable 2FA in Binance Mobile Version](https://www.binance.com/en/support/faq/how-to-enable-google-authenticator-for-2fa-on-the-binance-app-f3b1adaed1c846bbbba0f3650ad23e45)<br>

Step 1: Login into Binance account

Step 2: After logging in, click **\[API Management]** under Sub Accounts, and choose **\[Create API]**

<figure><img src="https://lh7-us.googleusercontent.com/UQbnYOBt_achTp0JObgryHuRzxFQ3QM3wrnHh-B9qh3KLLU30_tY-E5jYkpPoxf5P2i5Aa2zotuBSTV-uG9_22awWf8WHZodsW2L-zKNSmLGaJ3qOGNf1bYOdXFsnDoMRaoHmQ2NaLUHB6OnuJgimL0" alt=""><figcaption></figcaption></figure>

Step 3: After choosing **\[Create API],** then select the sub-account you wish to use, and **\[Enter/ label your unique API Name]**&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/0SbAwxY2ImcRPGgujEGQQMOnSGwbvBJkYlpfqTGexOigsmm34OxRbh4Ne432WVo-c69-xZ-tSnyZuj6HP8jU0mvKPTnhD-2KC_ZgFuzOJVzEaw-RY1pssMSLqImLP04DrSpA7XN6ETosnZEjoDhbEak" alt=""><figcaption></figcaption></figure>

Step 4:&#x20;

Add your IP as a Whitelist IP at the Binance API Account as follows:

* Get your IP here at the last step of setting up exchange in Investy.ai website (showed below)

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc2_87ePYPVhF69nZQ1-4POHWjJRRwbwYsF46RFZ-owlC1FH6Ajjepzm_Ec1X7yJeo1xKjbAMKFwPOB1MBPgMIwkNRfzX1eTvJxZPYcOKoUFoTM_6pN2r1cZ4xx2NZ-TJZbOdAtxg?key=YDsWnbahREMitT-DW3HLgQ" alt=""><figcaption></figcaption></figure>

* Add that IP into Whitelist at the Binance API Account page (where you've just created your API keys)
  * Navigation: **\[Edit Restrictions]** → Select **\[Restrict access to trusted IPs only]** → Add your IP and tick on **\[Enable Spot and Margin Trading]**

<figure><img src="https://lh7-us.googleusercontent.com/eZ0hLCT3gVvkiZS_KeJbYXIp4clDcWt8tO-6nz-7KMeZoAfJF7a3DVW4nAnySPNg75OB2yzWIuyMq1NE5wwMg_QReSTyOjnQPQB1e5SpLMs5OC1FxIYD5R--kKGkUebVCu_RJx7ts4nS1DB-47hDZ50" alt=""><figcaption></figcaption></figure>

Then, **\[Save]** your actions

Step 5: Find your API keys after created (2FA must be verified before this step)

<figure><img src="https://lh7-us.googleusercontent.com/r6YEa5FsYiX6fGz658E56xsq67PjJ8yqYhpaiQFnpAQPv7hZzIED06JYzKwGQxuYJx7nTMrRFOX8XOPnzIjvLM5DfETW5_Ne5q183Ro3kcIR4qTEYgiLWSB7tWaJCoTXMDslMWYWXhFLx4j9MZLWJ6g" alt=""><figcaption></figcaption></figure>

Step 6: **\[Copy and paste]** your API keys to Investy.ai Exchange Setup&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfipqlpTen1Ss8uxFQJZS7pLhe94MPGLxc6RYoshIHF9KhXD6xS3aOj6hUv8-5UAynX38PcCtER1BjY8VKlxw4ICTF0c4r1nocuZMrAsmo0epq0b8Il5ThXbjxkdDYh04anjkdhPg?key=YDsWnbahREMitT-DW3HLgQ" alt=""><figcaption></figcaption></figure>

Step 7: Fill out all the required fields in Investy.ai.&#x20;

Step 8: Press **\[Save] & \[Connect Exchange]** - your connected exchange will be available in Investy.ai within a minute

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc3CApVtHKZxwz5FSuyD14wRt1ZeUkWuzUD4gge4JdhdAKR79xeJOyUcFA9kzcUJHryA8goPR1etcLObavtw_ukOcRkbxilc_-jEKfdtxpQAUJTjFMF9MGG9LFJyqkYCqxuPF5QZg?key=YDsWnbahREMitT-DW3HLgQ" alt=""><figcaption></figcaption></figure>

Now, you can start to choose available portfolios in Investy.ai based on your appetite. Then, sit back and relax!&#x20;

{% hint style="info" %}
**DO NOT SHARE YOUR API KEYS WITH ANYONE!**
{% endhint %}

### **(OPTIONAL) CREATE API THROUGH MASTER ACCOUNT**

Step 1: After logging in, click **\[Account]** under User Information

![](https://lh7-us.googleusercontent.com/nZEM-RqX73mInpNc1tGR5En105Gr8drndOqpVo1UgviLIw_m3i1c8yPshxvZ7zoKC_zw5mjkuGUFohrPDU4W7CLSPkp9ulHnxZy7sE1zw5e0WDEL8Jn39sJlNt2z3KR6t6RTdjFLdKuUJXsI9iGyUBo)

<br>

Step 2: Then, select **\[API Management]**, then **\[Create API**] and **\[Enter/Label]** your unique API Name

<figure><img src="https://lh7-us.googleusercontent.com/dta8z_Sxsp6_pvA54D4FWCU9BVlLed0i9EX7yTdHpzs_b5cBi__CetUciSbOcFfSFpWA1AFry4F8u1NXQDZthjlvqt0il4sp929m6f75qLV2SMtSMdAA-ANry2iajJUXGMpBcppHJeUQUXQrcdjUeaM" alt=""><figcaption></figcaption></figure>

Step 3: Continue the API Process same as Sub-account above

<br>


---

# Agent Instructions: 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:

```
GET https://docs.investy.ai/information/guides/api-exchange-connection/binance-sub-accounts-and-api-connection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
