下單(認購/贖回)
信息
- 訂單為異步處理。成功響應僅表示訂單已被接受,並非已完成結算。請使用 獲取訂單列表 追蹤訂單狀態。
orderLinkId必填,且在 RWA 業務範圍內每個 UID 必須唯一。重複使用已存在的orderLinkId將返回錯誤180025 ORDER_ALREADY_EXISTS。- 認購(Stake):從
accountType扣除結算幣種,按下一個 NAV 分配份額。 - 贖回(Redeem):鎖定份額,T+N 結算後將結算幣種退回至
accountType。 - 頻率限制: 5 次/秒(UID)
HTTP 請求
POST/v5/earn/rwa/place-order請求參數
| 參數 | 是否必需 | 類型 | 說明 |
|---|---|---|---|
| productId | true | integer | 產品 ID |
| orderType | true | string | 訂單類型:Stake(認購)、Redeem(贖回) |
| coin | true | string | 結算幣種(大寫),如 USDC |
| orderLinkId | true | string | 用戶自定義冪等鍵。最長 36 位,允許字符集 [a-zA-Z0-9-_],在 RWA 業務範圍內每個 UID 必須唯一 |
| stakeAmount | false | string | 認購金額(結算幣種,十進制字符串)。orderType=Stake 時必填,否則忽略 |
| redeemShares | false | string | 贖回份額(十進制字符串)。orderType=Redeem 時必填,否則忽略 |
| accountType | false | string | 資金來源/目標賬戶:FUND、UNIFIED。默認:FUND |
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| orderId | string | 系統生成的訂單 ID(UUID) |
| orderLinkId | string | 用戶自定義訂單 ID(原樣返回) |
請求示例
POST /v5/earn/rwa/place-order HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1710691200000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"productId": 1001,
"orderType": "Stake",
"coin": "USDC",
"stakeAmount": "100",
"accountType": "FUND",
"orderLinkId": "my-stake-001"
}
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"orderId": "550e8400-e29b-41d4-a716-446655440000",
"orderLinkId": "my-stake-001"
},
"retExtInfo": {},
"time": 1710691200000
}