# Connect Bybit API

{% hint style="info" %}
Register a Bybit account: <https://partner.bybitglobal.com/b/copin> (Referral code: **`COPIN`**)
{% endhint %}

Click on your wallet in the top right-hand corner of the screen and go to the "Wallet Management" tab or visit <https://app.copin.io/wallet-management>

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FnAyXov6HXXwGCApNAQs5%2Fimage.png?alt=media&#x26;token=2ff1d098-67e4-4223-b909-ae786aea8ee8" alt=""><figcaption></figcaption></figure>

Click "Create" at " Bybit Exchange" to start linking your Bybit Exchange account to app.copin.io through API key.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FkeV4kTfTsePYNaiWH24K%2Fimage.png?alt=media&#x26;token=f533fb1c-4e46-46e4-8ca7-66cf53b8443e" alt=""><figcaption></figcaption></figure>

The connection process involves:

<table data-header-hidden><thead><tr><th width="281">Steps</th><th>Descriptions</th></tr></thead><tbody><tr><td><ol><li><strong>Bybit Account Setup</strong></li></ol></td><td>Create an account, unless you already have one.</td></tr><tr><td><ol start="2"><li><strong>Identify Verification</strong></li></ol></td><td>Identify Verification or <strong>Know Your Customer</strong> (KYC) standards are required for all users of Bybit.</td></tr><tr><td><ol start="3"><li><strong>API Key Creation</strong></li></ol></td><td>Generate an <strong>API key</strong> for Copin Analyzer integration.</td></tr><tr><td><ol start="4"><li><strong>Fund Deposit and Transfer</strong></li></ol></td><td>Deposit funds into Bybit and transfer them to your <strong>Unified Trading Account</strong></td></tr><tr><td><ol start="5"><li><strong>Setup Trading mode</strong></li></ol></td><td>Set <strong>Isolate Margin</strong> and <strong>Hedge Mode</strong> for all trading pairs</td></tr></tbody></table>

> *For any difficulties, we invite you to join the* [*Copin.io community*](https://t.me/copin_io) *where our admin team is ready to assist.*

## **1. Bybit Account Setup**

**Step 1: Sign up for a Bybit account.**

* To create a new account on Bybit, you must first visit the [Bybit Website](https://partner.bybitglobal.com/b/copin).
* Then click on the "Sign up" button to get started.

**Step 2: Account Registration**

* You can choose to register either with your email address or your telephone number
* Enter a secure password
* Use the referral code **COPIN** for initial account benefits.
* Click on agree to Bybit Terms of Service and Privacy Policy
* Click on "Get My Welcome Gifts"

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2F3EC9hTMoOnUBOafDy6wK%2Fimage.png?alt=media&#x26;token=1e9315a5-f5ff-473d-a08f-f6dbd33638ed" alt=""><figcaption></figcaption></figure>

**Step 3: Confirm your account**

* After submitting the registration form, you will be asked to verify your account. Bybit will send a verification email with a confirmation code.
* Enter the code and complete email verification.

## **2. KYC Verification**

**Step 1: Access the Identity Verification Page**

* Hover over your profile in the top right corner of the screen and select "Account & Security"

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2F4DngtEA0ibbsYc2jTydQ%2Fimage.png?alt=media&#x26;token=fa0191b3-41d5-4a2b-b834-04e9db57c0ea" alt=""><figcaption></figcaption></figure>

* Proceed to "Identity Verification" to access the verification page. Alternatively, you can directly access the verification page using this link: <https://www.bybitglobal.com/user/accounts/auth/personal>.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FdfVE5mSk7eCyb6f08SRu%2Fimage.png?alt=media&#x26;token=646e731a-77af-469e-907b-1747cf24f714" alt=""><figcaption></figcaption></figure>

**Step 2: Complete KYC**

* Click on "Verify Now" and complete the verification process as instructed by Bybit to verify your account.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FADhnYxr3wdqGVY80z8RD%2Fimage.png?alt=media&#x26;token=4a21535a-9f2d-4156-a8d4-a34e9c230b2a" alt=""><figcaption></figcaption></figure>

* Select your country of residence. Choose the document type. Then click "Confirm" to proceed. Alternatively, you can select "Verify with App" to continue the verification process on your mobile device.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FvP0IHmvqFLOT0crSKrpy%2Fimage.png?alt=media&#x26;token=5aaea142-051a-4119-9790-404404af46d4" alt=""><figcaption></figcaption></figure>

* Please complete all the verification steps requested by Bybit to finish verifying your account. Note that the verification device must have a camera to enable live image verification.

## **3. API Key Creation**

**Step 1: Access the API keys page**

* Hover over your profile in the top right corner of the screen and select "API" or click on the link <https://www.bybitglobal.com/app/user/api-management> .

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FfQqnmnDXBoM1MXQkdKPA%2Fimage.png?alt=media&#x26;token=a7824220-1a24-48bd-bb05-950448adcbcd" alt=""><figcaption></figcaption></figure>

**Step 2: Create API Key**

* Click "**Create New Key**"

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FVsliTl2KT7ExE0zRz0IY%2Fimage.png?alt=media&#x26;token=5a24f400-1add-4b81-a55c-ee6a217b71dc" alt=""><figcaption></figcaption></figure>

* Click "**System-generated API Keys**"

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FQMO4Jc00Y9uIMAOFUlJ5%2Fimage.png?alt=media&#x26;token=f3e7c21a-db1c-4736-b9fb-07cea5bc4a34" alt=""><figcaption></figcaption></figure>

**Step 3: Modify API Info**

* Make sure only the following options are selected: "API Transaction", "Read-Write", "No IP restriction", and "Unified Trading".
* Choose a simple, memorable note for easy identification in "Name for the API Key".

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FVi77r3X9bqOykuvUukut%2Fimage.png?alt=media&#x26;token=116f8f92-1265-498b-b01b-579131e59974" alt=""><figcaption></figcaption></figure>

**Step 4: Final Security Confirmation**

* Complete the process with a final security verification then "Confirm".

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FnhsfTDIHaFukduZo5cvL%2Fimage.png?alt=media&#x26;token=a72f1383-38bb-4a37-a92b-fc348d82bceb" alt=""><figcaption></figcaption></figure>

* The newly created API key has a validity period of only 90 days.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FGevkcwgieDemxl0pBPqR%2Fimage.png?alt=media&#x26;token=669a3b84-0984-49ab-bc0f-f0d2114c4eb6" alt=""><figcaption></figcaption></figure>

* The Access APIKey and SecretKey are displayed, so let's copy and fill in[ Copin Wallet Management](https://app.copin.io/wallet-management)

**Step 5: Complete creating Bybit Wallet on Copin.io**

* Access <https://app.copin.io/wallet-management>
* Fill in the API Key and Secret Key you just created in the previous step.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FSn1FHJAvuBb4yrNcLJyY%2Fimage.png?alt=media&#x26;token=264a6d7e-3a85-496d-b173-c08db5fc1853" alt=""><figcaption></figcaption></figure>

## **4. Fund Deposit and Transfer**

**Step 1: Make a deposit on Bybit**

* Before you start copy trading, you'll need to make a deposit into your Bybit account. You can choose between several methods for depositing money into your account: cryptocurrency deposit, credit/debit card, P2P, Third Party or bank transfer.
* Depending on the method you choose, Bitget will give you the steps to follow to make your deposit.

**Step 2: Transfer funds to Futures account**

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FYYlHqb8O5nmuIc3Rfq7v%2Fimage.png?alt=media&#x26;token=426525bc-5a1e-41d8-bf1c-d1dd0e2dabb8" alt=""><figcaption></figcaption></figure>

* Click "**Transfer**"

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FpTTB9lPJ7cUuL4DaWZV5%2Fimage.png?alt=media&#x26;token=34a7d758-1811-4bbb-93c1-9fa8dd97b3aa" alt=""><figcaption></figcaption></figure>

* Make sure to transfer from "Funding" to "Unified Trading". And input the USDT amount into "Amount" then Confirm.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2Fhmkf5eINdxKjzbbiqcnH%2Fimage.png?alt=media&#x26;token=b03fa0b6-e4bc-4802-b80b-f9ddad30fe67" alt=""><figcaption></figcaption></figure>

After transferring funds to your Unified Trading on Bybit, you are nearly ready to begin the process of copy trading on Copin.io.

{% hint style="info" %}
If you encounter the <mark style="color:red;">**INVALID API KEY**</mark> error, please ensure that:&#x20;

1. Your futures account balance is greater than 0 (refer to Section 4. Fund Deposit and Transfer).&#x20;
2. You have switched to Isolated Margin and Hedge Mode (refer to Section 5. Setup Trading Mode).
   {% endhint %}

## **5. Setup Trading mode**

These settings ensure that the copy trading system operates in the most logical manner.

* Hover over the "Derivatives" tab. Next, select "USDT Perpetuals". Then, choose any random trading pair. In this example, we'll use "BTC/USDT".

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FnbMN46vN2g0m3JVzH5fE%2Fimage.png?alt=media&#x26;token=57c59ffe-6618-4264-97a2-a03894c70f54" alt=""><figcaption></figcaption></figure>

* Click on "Settings" in the top right corner.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FcYJOmPxSmzMxDAGymB5C%2Fimage.png?alt=media&#x26;token=1053a0f1-5a4d-4bce-9282-092b6c46eda2" alt=""><figcaption></figcaption></figure>

* Set the margin mode to "Isolated Margin" and the position mode to **"Hedge Mode"**. Apply these settings to **all USDT pairs**.

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2Fs9YFU2ohIKocIRGry2SW%2Fimage.png?alt=media&#x26;token=847e5080-6c67-4699-a227-2e55df4999fb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1098802886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYPfj17W02xNuqsGca3P%2Fuploads%2FtRg9tNCx5mCdJoBSvUQ7%2Fimage.png?alt=media&#x26;token=3ea273ed-b146-4f8d-88dc-012b991fdd6f" alt=""><figcaption></figcaption></figure>

## FAQ

***Q1: Why have I created API Keys and connected Bybit's API to*** [***Copin.io***](http://copin.io/) ***in Wallet Management but still can't copy trades?***

A: Kindly check again all settings from **API** or **transfer fund** or **setup trading mode**.

***Q2: Why did you get Error Message: "Min amount"***

A: The error message "Min amount" indicates that your order size is below the minimum lot size requirement for the specific trading pair. Each trading pair on Bybit has a minimum lot size, which is the smallest quantity of the base asset that can be traded in a single order. *More details: <https://www.bybit.com/en/announcement-info/transact-parameters/>*

***Q3: What should the balance ratio be in the Bybit Unified Trading Account with Margin when setting up copy trades using the Bybit Wallet on*** [***app.copin.io***](http://app.copin.io/)***?***

A: Always set up copy trades (Margin) with an amount smaller than the balance in your Unified Trading Account to ensure orders are executed. For example: If the balance in your Futures account is $3000, you should set up copy trades with Margin < $3000.

***Q4: How should I fill in the IP address section?***

A: You don't need to fill in anything and can skip this section to proceed.
