Market Data
Get /market-data/prices/v2/:asset
Get current prices for any asset, where :asset
is the asset to be converted to and the parameter assets
determines the assets to be converted.
Query parameters
- assets: List of desired assets, separated by commas. E.g
../v2/EUR?assets=ETH,BTC,AUDIO
Example
/market-data/prices/v2/EUR?assets=ETH,BTC,AUDIO
Response
OK
{
"success": true,
"data": {
"prices": {
"BTC": "200.00",
"ETH": "100.00"
},
"timestamp": 1660652359958422794
}
}
Error
- error.BadRequestError
- error.InternalServerError
POST /market-data/prices/v2/:asset
Get current prices for any asset, where :asset
is the asset to be converted to and the parameter assets
determines the assets to be converted.
Request
{
"assets": ["BTC", "ETH"]
}
Response
OK
{
"success": true,
"data": {
"prices": {
"BTC": "200.00",
"ETH": "100.00"
},
"timestamp": 1660652359958422794
}
}
Error
- error.BadRequestError
- error.InternalServerError
GET /market-data/prices/v2/:asset/details
Get current prices, market cap, 24-hour volume and 24-hour change for any asset, where :asset
is the asset to be converted to and the parameter assets
determines the assets for which prices and details are to be fetched.
Query parameters
- assets: List of desired assets, separated by commas. E.g
../v2/EUR?assets=ETH,BTC,AUDIO
Response
OK
{
"success": true,
"data": {
"prices": {
"BTC": "67258.19613439438",
"ETH": "3480.039304915278"
},
"market_cap": {
"BTC": "1328405154728.1875",
"ETH": "418974168360.16547"
},
"24h_volume": {
"BTC": "27884404829.04533",
"ETH": "15462901496.26626"
},
"24h_change": {
"BTC": "0.851958253590439",
"ETH": "-0.1469599222779204"
},
"timestamp": 1721635910997628933
}
}
Error
- error.BadRequestError
- error.InternalServerError
POST /market-data/prices/v2/:asset/details
Get current prices, market cap, 24-hour volume and 24-hour change for any asset, where :asset
is the asset to be converted to and the parameter assets
determines the assets for which prices and details are to be fetched.
Request
{
"assets": ["BTC", "ETH"]
}
Response
OK
{
"success": true,
"data": {
"prices": {
"BTC": "67258.19613439438",
"ETH": "3480.039304915278"
},
"market_cap": {
"BTC": "1328405154728.1875",
"ETH": "418974168360.16547"
},
"24h_volume": {
"BTC": "27884404829.04533",
"ETH": "15462901496.26626"
},
"24h_change": {
"BTC": "0.851958253590439",
"ETH": "-0.1469599222779204"
},
"timestamp": 1721635910997628933
}
}
Error
- error.BadRequestError
- error.InternalServerError