跳至主要内容

提前贖回

API key權限:Earn
API 頻率限制:每秒5次

信息
  • 提前贖回僅支持 category=FundPoolallowEarlyRedemptiontrue 的產品。對其他產品類型調用此端點將返回錯誤。
  • 持倉必須已持有至少 redemptionLimitDuration 的時間後才允許提前贖回。
  • 贖回資金始終返回至 FUND 帳戶。

HTTP 請求

POST/v5/earn/fixed-term/redeem

請求參數

參數是否必需類型說明
productIdtruestring產品ID
categorytruestring產品子類型:FundPool
positionIdtruestring要贖回的持倉ID

響應參數

參數類型說明
redeemAmountstring預計贖回金額(本金)
estEarningsstring按提前贖回APY計算的預計收益

請求示例

POST /v5/earn/fixed-term/redeem HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1741651200000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"productId": 1001,
"category": "FundPool",
"positionId": 200001
}

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"redeemAmount": "0.1",
"estEarnings": "0.00002191"
},
"retExtInfo": {},
"time": 1776075665623
}