crypto
Historical market chart for a coin by CoinGecko id...
Historical market chart for a coin by CoinGecko id: time-series of price, market cap, and volume over the last N days (1-365) in USD or another vs-currency. Granularity is auto-selected by range (hourly for short windows, daily for long). For backtests, charts, and trend analysis.
get/api/crypto/coin-history
Request
- Base URL: https://2s.io
- URL: https://2s.io/api/crypto/coin-history
- Auth: API key in header PAYMENT-SIGNATURE
Query parameters
idstring required
CoinGecko coin id, e.g. bitcoin.
daysinteger
Lookback in days (default 7).
vsstring
vs-currency (default usd).
trial1
Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.
Response
(unresolved $ref)
Changes
No recorded changes to this operation across all 1 revision of this API.