Skip to main content

Candles and market data

How candles are built, supported resolutions and the TradingView datafeed.

Candles come from this venue's own trades​

Candles are aggregated from fills on this venue by the indexer. They are not copied from another exchange. As a result:

  • A market with no trades yet has no candles. The app's chart shows No trades yet in that case.
  • Only periods that actually traded are returned. Periods without trades are not forward-filled.
  • Prices and volumes are exact decimal strings. GET /last-traded-tradingview/history (see TradingView datafeed) returns them as JSON numbers instead.

Resolutions​

Supported values for resolution: 1, 5, 15, 30, 60, 120, 240, 1D, 1W, 1M.

Numbers are minutes. 1D, 1W and 1M mean one day, one week and one month. One minute is 1, not 1M. The aliases D/d/1d, W/w/1w and M are also accepted. Unrecognised values return 400.

curl "$API_URL/candles?instrument_name=BTC-PERP&resolution=60&countback=200"

One request returns at most 5000 bars. Use countback (or a from close to to) to get the most recent bars: without either, you get up to 5000 bars from the start of the market's history.

Each bar covers its whole period. When from or to falls inside a bar, that bar is still built from all of its trades, never from part of them.

TradingView datafeed​

GET /last-traded-tradingview/config and GET /last-traded-tradingview/history serve the same candles in the TradingView UDF format.

Live updates​

Subscribe to candles:{MARKET}:{RESOLUTION} on the WebSocket API. You receive a snapshot first, then updates as trades happen.

Markets on this network​

The list comes from GET /markets at runtime. This is a dated snapshot:

MarketTypeMax leverageTick sizeSize stepMin order value
ApplePerpetual10x0.010.0000010.00033966
AnthropicPerpetual10x0.10.00000010.00016193
BitcoinPerpetual40x0.010.000000010.00083082
EthereumPerpetual25x0.010.00000010.00026691
EuroPerpetual10x0.00010.00010.00011381
Japanese YenPerpetual10x0.010.0000010.0001569
NVIDIAPerpetual10x0.010.0000010.00022778
S&P 500Perpetual5x0.10.00000010.00077073
TeslaPerpetual10x0.010.0000010.00040021
SilverPerpetual10x0.0010.000010.00061319
GoldPerpetual10x0.10.00000010.00041531
BTC-USDCSpot–0.010.000000010.01
ETH-USDCSpot–0.010.000000010.01
EUROC-USDCSpot–0.010.0000010.01

Markets listed by GET https://arc-testnet-api.realtime.exchange/markets. New markets are added over time; the app always shows the current list.