Now available: Floor price, volume and market cap
We are excited to share that our users can now use Center's API to retrieve market data:
For maximum accuracy, we've taken care to remove the impact of obvious wash trading (e.g., trades back and forth between the same two addresses). All data points are provided in WETH
, using exchange rates at the time of the trade if necessary.
We have rolled out support for market data on both ethereum-mainnet
and polygon
so far, but will be adding support for other chains soon.
Check out a few examples:
Retrieve the floor price for Bored Ape Yacht Club
:
curl --request GET \
--url https://api.center.dev/v1/ethereum-mainnet/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/market-data/floor-price \
--header 'X-API-Key: test' \
--header 'accept: application/json'
Response:
{
"currencyInfo": {
"symbol": "WETH",
"decimals": 18,
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"isNative": false
},
"amount": {
"atomicAmount": "58403982000000000000",
"wholeAmount": 58.403982
}
}
Retrieve the market cap of Bored Ape Yacht Club
:
curl --request GET \
--url https://api.center.dev/v1/ethereum-mainnet/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/market-data/market-cap \
--header 'X-API-Key: test' \
--header 'accept: application/json'
Response:
{
"currencyInfo": {
"symbol": "WETH",
"decimals": 18,
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"isNative": false
},
"amount": {
"atomicAmount": "723280379763504000000000",
"wholeAmount": 723280.379763504
}
}
Retrieve the volume of Bored Ape Yacht Club
:
curl --request GET \
--url https://api.center.dev/v1/ethereum-mainnet/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/market-data/volume \
--header 'X-API-Key: test' \
--header 'accept: application/json'
Response:
{
"currencyInfo": {
"symbol": "WETH",
"decimals": 18,
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"isNative": false
},
"amount": {
"atomicAmount": "332854485000000000000",
"wholeAmount": 332.854485
}
}
Other requests or ideas? Please submit a feature request or reach out to our support team.