Historical Data

Access historical OHLCV data for backtesting and analysis.

Historical Data Access

Historical data depth varies by plan: Individual (365 days), Business (3650 days).

GET /historical/candles/{symbol}

Get historical OHLCV candlestick data.

Path Parameters

symbol string Currency pair (e.g., EUR/USD)

Query Parameters

Parameter Type Description
timeframe string M1, M5, M15, M30, H1, H4, D1, W1, MN
from string Start date (ISO 8601)
to string End date (ISO 8601)
limit integer Max candles to return (default: 500, max: 5000)

Timeframes

M1 1 Minute
M5 5 Minutes
M15 15 Minutes
M30 30 Minutes
H1 1 Hour
H4 4 Hours
D1 Daily
W1 Weekly
MN Monthly

Example Request

bash
curl -X GET "https://api.pulse-markets.com/v1/historical/candles/EUR/USD?timeframe=H1&from=2025-01-01&to=2025-01-15&limit=100" \
  -H "X-API-Key: fx_your_key" \
  -H "X-API-Secret: fxs_your_secret"

Response

json
{
  "success": true,
  "data": {
    "symbol": "EUR/USD",
    "timeframe": "H1",
    "candles": [
      {
        "timestamp": "2025-01-15T00:00:00Z",
        "open": 1.08420,
        "high": 1.08590,
        "low": 1.08380,
        "close": 1.08542,
        "volume": 15234
      },
      {
        "timestamp": "2025-01-15T01:00:00Z",
        "open": 1.08542,
        "high": 1.08620,
        "low": 1.08490,
        "close": 1.08580,
        "volume": 12456
      }
    ],
    "count": 100
  }
}
GET /historical/ticks/{symbol}

Get historical tick-by-tick data (Business plan only).

Query Parameters

Parameter Type Description
from string Start datetime (ISO 8601)
to string End datetime (ISO 8601)
limit integer Max ticks (default: 1000, max: 10000)

Response

json
{
  "success": true,
  "data": {
    "symbol": "EUR/USD",
    "ticks": [
      {
        "timestamp": "2025-01-15T14:30:00.125Z",
        "bid": 1.08542,
        "ask": 1.08545
      },
      {
        "timestamp": "2025-01-15T14:30:00.250Z",
        "bid": 1.08543,
        "ask": 1.08546
      }
    ],
    "count": 1000
  }
}

Data Coverage

Plan History Depth Tick Data Max Request
Free Not available No -
Individual 365 days No 5,000 candles
Business 10 years Yes 10,000 candles