Skip to main content

Get On-chain Yields Locked Product Position (USER_DATA)

API Description

Get On-chain Yields Locked Product Position

HTTP Request

GET /sapi/v1/onchain-yields/locked/position

Request Weight(IP)

50

Request Parameters

NameTypeMandatoryDescription
assetSTRINGNO
positionIdINTNO
projectIdSTRINGNO
currentLONGNOCurrently querying the page. Start from 1. Default:1
sizeLONGNODefault:10, Max:100
recvWindowLONGNO
timestampLONGYES

Response Example

{
"rows": [
{
"positionId":"123123", //Locked position ID
"projectId": "Solv-60d", //Locked project ID
"asset":"BTC", //Locked asset
"amount":"122.09202928", //Locked Amount
"purchaseTime": "1646182276000", //Subscription time
"duration": "60", //Lock period(days)
"accrualDays": "4", //Accrue days
"rewardAsset":"SOLV", //Earned asset
"APY":"0.039",
"rewardAmt": "5.17181528", //Earned amount

// Below are response when product type is 'Stake A Earn A'
"nextPay": "1.29295383", //Next estimated rewards payment
"nextPayDate": "1646697600000", //Next rewards payment date
"payPeriod": "1", //Payment cycle

// Below are response when product type is 'Stake A Earn C'
"rewardsPayDate": "1646697600000", //Rewards payment date when maturity

"rewardsEndDate": "1651449600000", //Rewards accrual end date
"deliverDate": "1651536000000", //Redemption arrival time(include early redemption or natural maturity; if auto-subscribe is on, not response this one)
"nextSubscriptionDate": "1651536000000", // Response when auto-subscribe on
"redeemingAmt":"232.2323", //Amount under redemption when auto-subsceibe is on but left quota is less than stake amount
"redeemTo":"FLEXIBLE", // Redeem to simple earn Flexible product or Spot wallet, "SPOT":spot wallet
"canRedeemEarly": true, //When it is true, early redemption can be operated
"autoSubscribe": true, //When it is true, auto subscribe can be operated
"type":"AUTO", //AUTO:auto-subscribe order; NORMAL:normal-subscribe order
"status": "HOLDING", //HOLDING,REDEEMING,RENEWING:auto subscribing,NEW_TRANSFERRING:Redeeming to Simple Earn flexible
}
],
"total": 1
}