DexTrades
Relative price change over a window (single pool).
Changed onget/v1/dextrades/{token}/change
Request
- Base URLhttps://backend.swap.coffee
- Auth
- none
- or API key in header X-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tokenstring required
Example:EQCl0S4xvoeGeFGijTzicSA8j6GiiugmJW5zxQbZTUntre-1
Query parameters
resolutioninteger required
Candle length in seconds
frominteger required
Unix timestamp in seconds
tointeger required
Unix timestamp in seconds
poolstring
Pool contract address; omitted — the primary pool is resolved by the backend
Response
relative price change over the window
Changes
- info
added the new optional
queryrequest parameterpool
- info
- info
endpoint added
- info