跳至主要内容

取得持倉資訊

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

信息
  • 僅返回活躍持倉。已結算持倉(狀態 REVENUE_DISTRIBUTED)不在返回範圍內。
  • 所有過濾條件均為可選,省略時返回所有活躍持倉。

HTTP 請求

GET/v5/earn/fixed-term/position

請求參數

參數是否必需類型說明
productIdfalsestring依產品ID篩選
categoryfalsestring依產品子類型篩選:FixedTermSavingFundPoolFundPoolPremium
coinfalsestring依幣種篩選,例如 BTCETH

響應參數

參數類型說明
listarray持倉列表
> positionIdstring持倉ID
> productIdstring產品ID
> categorystring產品子類型:FixedTermSavingFundPoolFundPoolPremium
> coinstring質押幣種
> amountstring持倉金額
> effectiveAmountstring有效計息金額(T+1生效)
> durationstring固定期限,例如 1d8h2m
> statusstring持倉狀態:ActiveEarlyRedemptionProcessing
> settlementTimestring到期時間,毫秒級unix時間戳
> createdAtstring持倉創建時間,毫秒級unix時間戳
> orderIdstring關聯訂單ID
> earlyRedeemInfoobject提前贖回資訊
>> allowEarlyRedeemboolean是否可以提前贖回
>> earlyRedeemEarningstring當前提前贖回的預計收益
>> returnCoinstring贖回時返還的幣種
>> redemptionLimitDurationstring允許提前贖回前的最短持有時間,例如 1d8h2m
> allowAutoReinvestboolean產品是否支持自動續投
> autoReinveststring用戶當前的自動續投設置:EnableDisable
> interestCoinApyListarray多幣種獎勵APY列表
>> coinstring獎勵幣種
>> apystring獎勵APY
>> expectReturnEarningstring此持倉的預計收益
>> pricestring獎勵幣種鎖定價格

請求示例

GET /v5/earn/fixed-term/position?category=FixedTermSaving 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

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"list": [
{
"positionId": "4064",
"productId": "724",
"category": "FixedTermSaving",
"coin": "USDT",
"amount": "201",
"effectiveAmount": "201",
"duration": "3d",
"status": "Active",
"settlementTime": "1776385800000",
"createdAt": "1776068177000",
"orderId": "86468516-5497-4a2b-8c4c-f9c58e01e12c",
"earlyRedeemInfo": null,
"allowAutoReinvest": false,
"autoReinvest": "Disable",
"interestCoinApyList": [
{
"coin": "USDT",
"apy": "555.00%",
"expectReturnEarning": "9.1689",
"price": "1.00"
}
]
}
]
},
"retExtInfo": {},
"time": 1776070463687
}