DexTrades
Tokens with trades within the last active_within seconds, with metrics per window.
Changed onget/v1/dextrades/activity
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.
Query parameters
active_withininteger required
Activity window in seconds (tokens with trades within it are returned)
windowsinteger[] required
Metric windows in seconds, each ending now (1..8 entries)
Response
Active tokens ordered by activity-window volume descending, then by token (deterministic). CONTRACT: a token is absent from the response if and only if it had no trades within active_within; consumers may rely on absence to zero out their stats. Any future response size limit must be announced explicitly (flag/header), never applied silently.
Changes
- info
endpoint added
- info