設定現貨自動還款模式
設定現貨自動還款模式
信息
- 若未指定
currency參數,則所有幣種均啟用自動還款。 - 如果將某幣種的
autoRepayMode設定為 1,系統將每小時 0 分鐘和 30 分鐘自動以該幣種進行非資產轉換還款。 - 無損還款金額為該貨幣的現貨可用餘額與該貨幣的負債中的較小者。
- 如果你錯過了0分和30分的自動還款批次,你可以手動調接口進行還款。
HTTP 請求
POST /v5/spot-margin-trade/set-auto-repay-mode
請求參數
| 參數 | 是否必需 | 類型 | 說明 |
|---|---|---|---|
| currency | false | string | 幣名稱,僅限大寫. 若未指定currency參數,則所有幣種均啟用自動還款。 |
| autoRepayMode | true | string |
|
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| data | array | Object |
| > currency | string | 幣名稱,僅限大寫. |
| > autoRepayMode | string |
|
請求示例
- HTTP
- Python
- Node.js
POST /v5/spot-margin-trade/set-auto-repay-mode 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
{
"currency": "ETH",
"autoRepayMode":"1"
}
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"data": [
{
"currency": "ETH",
"autoRepayMode": "1"
}
]
},
"retExtInfo": {},
"time": 1766976677678
}