Skip to content

Instantly share code, notes, and snippets.

@smiled0g
Last active November 21, 2019 10:15
Show Gist options
  • Save smiled0g/0898ddcba105d5fcf33633b01485b879 to your computer and use it in GitHub Desktop.
Save smiled0g/0898ddcba105d5fcf33633b01485b879 to your computer and use it in GitHub Desktop.
A CoinGecko token volume spec for Band Protocol's OpenAPI
{
"meta": {
"version": "1",
"info": {
"image": "https://www.coingecko.com/thumbnail.png",
"description": "CoinGecko: 24hr Trading Volume"
},
"aggregation": "MEDIAN",
"variables": [
"string"
]
},
"request": {
"url": "https://api.coingecko.com/api/v3/coins/{0}",
"method": "GET",
"params": {
"market_data": true
}
},
"response": {
"path": [
"market_data",
"total_volume",
"usd"
],
"type": "uint256",
"multiplier":1000000000000000000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment