`/tokens` endpoint Response differs from the documentation.
tequdev opened this issue · comments
In the documentation, there is a changes
field within the metrics
field with 7d and 24d items in it, but in the actual Response, the 7d and 24d items are directly under the metrics
field.
https://xrplmeta.org/docs/rest/list-tokens
{
"count": 192357,
"tokens": [
{
"currency": "534F4C4F00000000000000000000000000000000",
"issuer": "rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz",
"meta": {
"token": {
"description": "SOLO is the utility token for the Sologenic ecosystem. It can be used for covering fees when minting NFTs on their platform.",
"icon": "https://static.xrplmeta.org/icons/SOLO.png",
"name": "SOLO",
"trust_level": 3
},
"issuer": {
"description": "A Fast & Secure DEX and #NFT Marketplace built on the #XRP Ledger. Be in control of your assets. Support: @SologenicHELP",
"domain": "sologenic.com",
"followers": 169967,
"icon": "https://static.xrplmeta.org/icons/sologenic.png",
"kyc": false,
"name": "Sologenic",
"trust_level": 3,
"weblinks": [
{
"url": "https://sologenic.com"
},
{
"url": "https://twitter.com/realSologenic",
"type": "socialmedia"
}
]
}
},
"metrics": {
"trustlines": 288481,
"holders": 242991,
"supply": "399264652.313084",
"marketcap": "167291889.319182",
"price": "0.419",
"volume_24h": "1036338.738646",
"volume_7d": "4901993.52316",
"exchanges_24h": "2717",
"exchanges_7d": "13336",
"takers_24h": "379",
"takers_7d": "1858"
}
},
...
]
}
Please note that in order to include the changes in the response, you need to set the include_changes
flag. Example Request. You have mistaken the regular aggregation statistics with the changes.
I have made a misleading point.
Regardless of include_changes
, the following fields are not listed in the documentation.
"volume_24h", "volume_7d", "exchanges_24h", "exchanges_7d", "takers_24h", "takers_7d"
This is true, and shall be corrected promptly.