MetaKit
beta
API Reference

Base URL: https://api.metakit.cloud

Ticks & candles

Raw price data for any symbol the account can trade. Prefer candles for charting — one day of EURUSD ticks is hundreds of thousands of rows, while the same day is 1440 M1 bars.

GET

/v1/accounts/{id}/candles

Get candles

OHLC bars at a chosen timeframe. With neither from nor to, returns the most recent count bars — the usual case for drawing a chart. Supplying both gives every bar in that window. time is the bar’s OPEN, and realVolume is usually 0 on FX because brokers rarely report it.

Parameters
NameTypeRequiredDescription
symbolstringNoRequired, e.g. EURUSD.
timeframestringNoM1, M5, M15, M30, H1, H4, D1, W1 or MN1. Defaults to M1.
fromstringNoISO 8601 or YYYY-MM-DD.
tostringNoWith from, returns the full range.
countintegerNoDefault 500, max 5000. Used when to is absent.
Example request
curl https://api.metakit.cloud/v1/accounts/123/candles \
  -H "Authorization: Bearer stk_live_..."
Example response
{
  "data": [
    {
      "time": "2026-07-28T09:00:00.000Z",
      "open": 1.16401,
      "high": 1.16455,
      "low": 1.16388,
      "close": 1.16433,
      "tickVolume": 1843,
      "spread": 12,
      "realVolume": 0
    }
  ],
  "symbol": "EURUSD",
  "timeframe": "H1",
  "count": 1,
  "truncated": false
}
GET

/v1/accounts/{id}/ticks

Get ticks

Raw bid/ask ticks. Two modes: from + to returns every tick in the window; from + count returns N ticks starting at that point, which covers an unpredictable span of time since ticks arrive irregularly. to without from is rejected. When truncated is true the result hit the 50000 cap — narrow the window or use candles.

Parameters
NameTypeRequiredDescription
symbolstringNoRequired, e.g. EURUSD.
fromstringNoISO 8601 or YYYY-MM-DD. Defaults to 24h ago.
tostringNoPresence switches to a true range query.
countintegerNoDefault 500, max 50000. Ignored when to is set.
Example request
curl https://api.metakit.cloud/v1/accounts/123/ticks \
  -H "Authorization: Bearer stk_live_..."
Example response
{
  "data": [
    {
      "time": "2026-07-28T09:00:00.123Z",
      "bid": 1.16421,
      "ask": 1.16433,
      "last": 0,
      "volume": 0
    }
  ],
  "symbol": "EURUSD",
  "count": 1,
  "truncated": false
}