跳至主要内容

一鍵申購

HTTP 請求

POST/v5/earn/pwm/investment-plan/subscribe

請求參數

參數是否必需類型說明
planIdtruestring投資計劃ID,須為 PendingSubscription 狀態
accountTypefalsestring資金來源賬戶類型,默認 FUND
orderLinkIdtruestring用戶自定義訂單ID,最長36字符,用於防重

響應參數

參數類型說明
planIdstring投資計劃ID
statusstring申購後計劃狀態,首次申購成功後變為 Active
orderLinkIdstring用戶自定義訂單ID

請求示例

POST /v5/earn/pwm/investment-plan/subscribe 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

{
"planId": "10001",
"accountType": "FUND",
"orderLinkId": "xxx"
}

響應示例

{
"retCode": 0,
"result": {
"planId": "10001",
"status": "Active",
"orderLinkId": "xxx"
}
}