Set Deposit Account
Set auto transfer account after deposit. The same function as the setting for Deposit on web GUI.
info
- Your funds will be deposited into
FUND
wallet by default. You can set the wallet for auto-transfer after deposit by this API. - Only main UID can access.
tip
- Unified trading account has
FUND
,UNIFIED
,CONTRACT
(for inverse derivatives),SPOT
(will be merged into UNIFIED by the end of Feb) - Unified margin account has
FUND
,UNIFIED
,CONTRACT
(for inverse derivatives),SPOT
- Classic account has
FUND
,OPTION
(USDC account),CONTRACT
(for inverse derivatives and derivatives),SPOT
HTTP Request
POST /asset/v3/private/deposit/deposit-to-account
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
accountType | true | string | Account type
|
Response Parameters
Parameter | Type | Comments |
---|---|---|
status | integer | Request result:
|
Request Example
POST /asset/v3/private/deposit/deposit-to-account HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1676887913670
X-BAPI-RECV-WINDOW: 50000
Content-Type: application/json
{
"accountType": "CONTRACT"
}
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"status": 1
},
"retExtInfo": {},
"time": 1676887914363
}