Market data

Fetch spot prices and OHLCV candles

Whether you're valuing a portfolio or drawing a chart, you need two things: a price now and a price history. Both are simple reads, so they sit at the cheap end of the credit scale.

Перед началом
  • A live API key
  • The token or pair you want to price

1Get the current spot price

Request spot for one or many tokens in a single call. Responses include the quote currency and a timestamp.

curl "https://api.1st-node.com/v1/market/spot?ids=eth,btc&vs=usd" \
  -H "Authorization: Bearer sk_live_..."

2Pull OHLCV candles

Request open/high/low/close/volume for an interval and range. Use it to render charts or run a backtest without scraping an exchange.

curl "https://api.1st-node.com/v1/market/ohlcv?id=eth&interval=1h&limit=168" \
  -H "Authorization: Bearer sk_live_..."

3Cache the cheap reads

Spot and OHLCV change predictably; cache them on your side for the interval you display to keep credit usage low at scale.

Частые вопросы

Are these heavy primitives?

No — spot and OHLCV are C1–C2 reads, the cheapest tier. Heavier intelligence calls cost more.

Can I price many tokens at once?

Yes, batch token ids in a single spot request to save calls.

Читать дальше

Пополнили, получили ключ, запустили.

Полное самообслуживание. Оплата криптой или картой. Тарификация в кредитах — тяжёлые примитивы дороже, простые дёшевы.

Получить API-ключ