Get Current Asset Notional Value
Request
GET https://custody-example-url/custody/v1/api/asset
Parameters
Field |
Type |
Description |
b_idOptional |
String |
Business line ID(Query all asset by default) |
Response
Field |
Type |
Description |
code |
Integer |
Response code |
message |
String |
Response message |
successful |
Boolean |
If the request is successful |
data |
Object |
data |
current_asset |
Object[] |
Asset object list |
cold_market_value |
Decimal |
Cold storage asset notional value (USD) |
cold_marketValue_cny |
Decimal |
Cold storage asset notional value (CNY) |
hot_market_value |
Decimal |
Hot storage asset notional value (USD) |
hot_marketValue_cny |
Decimal |
Hot storage asset notional value (CNY) |
total_market_value |
Decimal |
Total notional value (USD) |
total_market_value_cny |
Decimal |
Total notional value (CNY) |
coins |
String |
Asset notional value list |
coin_name |
String |
Asset name |
amount |
Long |
Asset amount (minimum unit) |
value |
Decimal |
Notional value |
value_cny |
Decimal |
Notional value (CNY) |
store_type |
String |
Storage type(PRIME_HOT or PRIME_COLD_LV1) |
Response Example
{
"code": 0,
"message": "",
"data": {
"cold_market_value": 0.0,
"cold_market_value_cny": 0.0,
"hot_market_value": 5520.0336,
"hot_market_value_cny": 38534.7474,
"total_market_value": 5520.0336,
"total_market_value_cny": 38534.7474,
"coins": [
{
"coin_name": "BCH",
"amount": 10995558,
"value": 34.8862,
"value_cny": 243.5367,
"store_type": "PRIME_HOT"
},
{
"coin_name": "BTC",
"amount": 0,
"value": 0.0,
"value_cny": 0.0,
"store_type": "PRIME_COLD"
},
{
"coin_name": "BTC",
"amount": 63420185,
"value": 5484.3833,
"value_cny": 38285.8765,
"store_type": "PRIME_HOT"
},
{
"coin_name": "ETC",
"amount": 95512300000000000,
"value": 0.7603,
"value_cny": 5.3076,
"store_type": "PRIME_HOT"
}
]
},
"successful": null
}