quan-api

FREEMIUM
By kacem bouden | Updated a month ago | Data
Popularity

0.2 / 10

Latency

119ms

Service Level

0%

Health Check

N/A

Back to All Tutorials (3)

## Endpoints

1. OHLC Data

Endpoint:

/api/ohlc/<symbol>/<timeframe>

Parameters:

  • symbol: The financial item symbol.
  • timeframe: The desired timeframe for OHLC data.

Query Parameters:

  • last: (Optional) Number of last data points to retrieve.
  • since: (Optional) Start date and time for historical data (YYYY-MM-DD-HH).
  • to: (Optional) End date and time for historical data (YYYY-MM-DD-HH).

Example Usage:

  • Retrieve last 100 data points: /api/ohlc/BTCUSD/H1?last=100
  • Retrieve data from specific date range: /api/ohlc/EURUSD/D1?since=2023-01-01-00&to=2024-01-01-00

2. Tick Data

Endpoint:

/api/tick/<symbol>

Parameters:

  • symbol: The financial item symbol.

Query Parameters:

  • last: (Optional) Number of last tick data points to retrieve.
  • since: (Optional) Start date and time for historical data (YYYY-MM-DD-HH).
  • to: (Optional) End date and time for historical data (YYYY-MM-DD-HH).

Example Usage:

  • Retrieve last 50 tick data points: /api/tick/GOLD?last=50
  • Retrieve tick data from specific date range: /api/tick/BTCUSD?since=2023-01-01-00&to=2024-01-01-00