Skip to main content

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

NameTypeMandatoryDescription
projectIdSTRINGYES
amountDECIMALYES
autoSubscribeBOOLEANNOtrue or false, default false.
sourceAccountENUMNOSPOT,FUND,ALL, default SPOT
redeemToENUMNOSPOT,FLEXIBLE, default FLEXIBLE Takes effect when Auto Subscribe is false
channelIdSTRINGNO
clientIdSTRINGNO
recvWindowLONGNO
timestampLONGYES
  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.

Response Example

{
"purchaseId": 40607,
"positionId":"12345",
"amount":"75.46000000",
"success":true
}