Get Trade Auto Repay
Retrieve the authenticated Unified account's trade auto repayment switch. The saved setting takes effect only in Cross and Portfolio margin modes; it has no effect in Isolated mode. This switch is separate from the scheduled auto repayment settings returned by get-auto-repay-mode.
- 200
- 400
- 401
- 403
- 404
- 429
Request accepted; a non-zero retCode indicates a business error.
- application/json
- Schema
- Example (from schema)
- Enabled
Schema
- retCode integer
Business return code. 0 means success.
- retMsg string
Business return message.
result object
autoRepay stringPossible values: Value must match regular expression
^[01]$Saved switch state; "1" means enabled and "0" means disabled.
- retExtInfo object
Extended return information.
- time int64
Server timestamp in milliseconds.
{
"retCode": 0,
"retMsg": "success",
"result": {
"autoRepay": "1"
},
"retExtInfo": {},
"time": 1792117143000
}
Trade auto repayment enabled
{
"retCode": 0,
"retMsg": "success",
"result": {
"autoRepay": "1"
},
"retExtInfo": {},
"time": 1792117143000
}
Invalid HTTP request or parameter format.
API authentication failed.
API key lacks read permission or the request is restricted.
Endpoint not found.
Rate limit exceeded.