get
https://api-pro.sim.hashkeydev.com/api/v1/earn/balance
Weight: 1
Request Parameters
| Parameter | Type | Required | Example Value | Description |
|---|---|---|---|---|
| productId | STRING | C | ||
| timestamp | LONG | Y | Timestamp | |
| signature | STRING | Y |
Response Content
| Param | Type | Example | Description |
|---|---|---|---|
| timestamp | STRING | ||
| balanceData | Array of objects | Investment data | |
| -productId | STRING | Product ID | |
| -currency | STRING | Investment currency | |
| -amount | STRING | Current amount = unit x latestUnitValue (allocatedUnit + earningUnit) x latestUnitValue | |
| -unit | STRING | allocatedUnit (Allocated units of tokens / portion after purchase) + earningUnit (Realized earnings converted to tokens for Cinda STO only) | |
| -latestUnitValue | STRING | Latest net asset value data (manually updated daily by operations) | |
| -snapshotTime | STRING | ||
| -totalValue | STRING | -Cinda STO: totalValue = latestUnitValue × (allocatedUnit + earningUnit) + unrealizedEarnings, where latestUnitValue is fixed, and unrealizedEarnings is variable. -Bosera: totalValue = latestUnitValue × (allocatedUnit + earningUnit) + unrealizedEarnings, where earningUnit = 0, latestUnitValue is variable, and unrealizedEarnings = 0. totalValue = amount + unrealizedEarnings | |
| -unrealizedEarnings | STRING | Unrealized earnings (currently applicable only to Cinda STO products; calculated mid-month and periodically returned to HashKey for display), with data updates regularly provided by Cinda. |