跳至主要内容

還款

覆蓋範圍: 全倉槓桿 (經典帳戶)

HTTP 請求

POST /v5/spot-cross-margin-trade/repay

請求參數

參數是否必需類型說明
cointruestring幣種名稱
qtyfalsestring還款金額
  • completeRepayment=0時, qty必傳
  • completeRepayment=1時, qty無效
completeRepaymentfalseinteger是否一鍵全部還款. 0(默認): 否, 1: 是

響應參數

參數類型說明
repayIdstring還款交易ID

請求示例

POST /v5/spot-cross-margin-trade/repay HTTP/1.1
Host: api-testnet.bybit.com
Content-Type: application/json
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677751944347
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX
Content-Length: 66

{
"coin": "ETH",
"qty": null,
"completeRepayment": 1
}

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"repayId": "19070"
},
"retExtInfo": {},
"time": 1677751941219
}