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-repayRequest Parameters
None.
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| autoRepay | string | Saved switch state. 1: enabled; 0: disabled. |
Request Example
- HTTP
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
}