Skip to main content

Get Account Info

Query the margin mode configuration of the account.

note

Query the margin mode and the upgraded status of account

HTTP Request

GET /v5/account/info

Request Parameters

None

Response Parameters

ParameterTypeComments
unifiedMarginStatusintegerAccount status
marginModestringISOLATED_MARGIN, REGULAR_MARGIN, PORTFOLIO_MARGIN
dcpStatusstringDisconnected-CancelAll-Prevention status: ON, OFF
timeWindowintegerDCP trigger time window which user pre-set. Between [3, 300] seconds, default: 10 sec
smpGroupintegerDepreciated, always 0. Please query Get SMP Group ID endpoint
isMasterTraderbooleanWhether the account is a master trader (copytrading). true, false
spotHedgingStatusstringWhether the unified account enables Spot hedging. ON, OFF
updatedTimestringAccount data updated timestamp (ms)

Request Example

GET /v5/account/info HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672129307221
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"marginMode": "REGULAR_MARGIN",
"updatedTime": "1697078946000",
"unifiedMarginStatus": 4,
"dcpStatus": "OFF",
"timeWindow": 10,
"smpGroup": 0,
"isMasterTrader": false,
"spotHedgingStatus": "OFF"
}
}