Skip to main content

Get Account Info

Query the account information, like margin mode, account mode, etc.

HTTP Request​

GET/v5/account/info

Request Parameters​

None

Response Parameters​

ParameterTypeComments
unifiedMarginStatusintegerAccount status
marginModestringISOLATED_MARGIN, REGULAR_MARGIN, PORTFOLIO_MARGIN
isMasterTraderbooleanWhether this account is a leader (copytrading). true, false
spotHedgingStatusstringWhether the unified account enables Spot hedging. ON, OFF
updatedTimestringAccount data updated timestamp (ms)
dcpStatusstringdeprecated, always OFF. Please use Get DCP Info
timeWindowintegerdeprecated, always 0. Please use Get DCP Info
smpGroupintegerdeprecated, always 0. Please query Get SMP Group ID endpoint

Request Example​

GET /v5/account/info HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
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"
}
}