Subscribe On-chain Yields Locked Product(TRADE)
API Description
Subscribe On-chain Yields Locked Product
HTTP Request
POST /sapi/v1/onchain-yields/locked/subscribe
Request Weight(IP)
200
Rate Limit
1/3s per account
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| projectId | STRING | YES | |
| amount | DECIMAL | YES | |
| autoSubscribe | BOOLEAN | NO | true or false, default false. |
| sourceAccount | ENUM | NO | SPOT,FUND,ALL, default SPOT |
| redeemTo | ENUM | NO | SPOT,FLEXIBLE, default FLEXIBLE Takes effect when Auto Subscribe is false |
| channelId | STRING | NO | |
| clientId | STRING | NO | |
| recvWindow | LONG | NO | |
| timestamp | LONG | YES |
- You need to open
Enable Spot & Margin Tradingpermission for the API Key which requests this endpoint.
Response Example
{
"purchaseId": 40607,
"positionId":"12345",
"amount":"75.46000000",
"success":true
}