Skip to main content

Get Auto Repay Mode

Get spot automatic repayment mode

info

If currency is not passed, automatic repay mode for all currencies will be returned.

HTTP Request

GET /v5/spot-margin-trade/get-auto-repay-mode

Request Parameters

ParameterRequiredTypeComments
currencyfalsestringCoin name, uppercase only. If currency is not passed, automatic repay mode for all currencies will be returned.

Response Parameters

ParameterTypeComments
dataarrayObject
> currencystringCoin name, uppercase only.
> autoRepayModestring
  • 1: On
  • 0: Off

Request Example

GET /v5/spot-margin-trade/get-auto-repay-mode?currency=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1672299806626
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "Success",
"result": {
"data": [
{
"autoRepayMode": "1",
"currency": "ETH"
}
]
},
"retExtInfo": {},
"time": 1766977353904
}