Skip to main content

Get Status And Leverage

Query the Spot margin status and leverage of Unified account

Covers: Margin trade (Unified Account)

HTTP Request

GET /v5/spot-margin-trade/state

Request Parameters

None

Response Parameters

ParameterTypeComments
spotLeveragestringSpot margin leverage. Returns "" if the margin trade is turned off
spotMarginModestringSpot margin status. 1: on, 0: off
effectiveLeveragestringactual leverage ratio. Precision retains 2 decimal places, truncate downwards

Request Example

GET /v5/spot-margin-trade/state HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1692696840996
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"spotLeverage": "10",
"spotMarginMode": "1",
"effectiveLeverage": "1"
},
"retExtInfo": {},
"time": 1692696841231
}