Skip to main content

Get Trade Auto Repay

Retrieve the authenticated Unified account's trade auto repayment switch.

info

This saved setting applies only to Cross and Portfolio margin modes. It has no effect in Isolated mode. It is separate from the scheduled automatic repayment settings returned by Get Auto Repay Mode.

HTTP Request​

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

Request Parameters​

None.


Response Parameters​

ParameterTypeComments
autoRepaystringSaved switch state. 1: enabled; 0: disabled.

Request Example​

GET /v5/spot-margin-trade/get-trade-auto-repay HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1792117143000
X-BAPI-RECV-WINDOW: 5000

Response Example​

{
"retCode": 0,
"retMsg": "success",
"result": {
"autoRepay": "1"
},
"retExtInfo": {},
"time": 1792117143000
}