Simple Earn
post/sapi/v1/simple-earn/locked/subscribe
Request
- Base URLhttps://api.binance.com
- AuthAPI key in header X-MBX-APIKEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
projectIdstring required
amountnumber double required
autoSubscribeboolean
true or false, default true.
sourceAccountstring
SPOT,FUND,ALL, default SPOT
redeemTo'SPOT' | 'FLEXIBLE'
SPOT,FLEXIBLE, default FLEXIBLE
recvWindowinteger
Example:5000
The value cannot be greater than 60000
timestampinteger required
UTC timestamp in ms
signaturestring required
Signature
Response
Locked Product Subscription Response
Example response
{
"purchaseId": 40607,
"positionId": "12345",
"success": true
}Changes
- info
added the new optional
queryrequest parameterredeemTo
- info
- info
endpoint added
- info