跳至主要内容

創建自定義投資計劃(直客模式)

信息

當前用戶 Active(運行中)和 Pending(待處理)狀態的計劃總數不能超過 20 個。

HTTP 請求

POST/v5/earn/pwm/customize-plan/create

請求參數

參數是否必需類型說明
accountTypefalsestring資金來源賬戶類型,默認 FUND
productstruearray產品配置列表,至少 1 個
> categorytruestring透傳product查詢結果,產品類別:multiCoinEarning / fixedYield / equityFund / onchainEarn
> productIdtruestring透傳product查詢結果,可能為 0
> fundNametruestring透傳product查詢結果,可能為空
> amounttruestring申購金額(本位幣)

響應參數

參數類型說明
planIdstring新創建的投資計劃ID
planNamestring投資計劃名稱,自動生成格式為 PWM-{planId}
statusstring計劃狀態,創建即申購,成功後為 Active
orderLinkIdstring用戶自定義訂單ID

請求示例

POST /v5/earn/pwm/customize-plan/create 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

{
"accountType": "FUND",
"products": [
{
"category": "equityFund",
"productId": "2001",
"fundName": "Market Neutral Alpha",
"amount": "100000.00"
},
{
"category": "multiCoinEarning",
"productId": "430",
"fundName": "",
"amount": "50000.00"
}
]
}

響應示例

{
"retCode": 0,
"result": {
"planId": "10050",
"planName": "PWM-10050",
"status": "Active",
"orderLinkId": "xxx"
}
}