API Documentation
Access real-time and historical market data with easy-to-integrate RESTful endpoints.

Products

high demand High demand

Endpoint

3 endpoint(s) for Indices
Search Icon
  • CFD Index Last Price
  • CFD Index Market Aggregates API
  • CFD Index Previous Close API

CFD Index Market Aggregates API

With the Index Market Aggregates API, you can get the tick bars of the index market.

URL Schema

https://api.finage.co.uk/agg/index/{ symbol }/{ time }/{ from }/{ to }?apikey=YOUR_API_KEY

Example Request

https://api.finage.co.uk/agg/index/spx/1day/2022-02-05/2022-03-02?apikey=YOUR_API_KEY

Example Output

{
  "symbol": "SPX",
  "totalResults": 16,
  "results": [
{
      "o": "4505.75000",
      "h": "4521.85986",
      "l": "4471.47021",
      "c": "4483.87012",
      "v": "2384441973",
      "t": "2022-02-07T12:00:00"
    },
{
      "o": "4480.02002",
      "h": "4531.31982",
      "l": "4465.39990",
      "c": "4521.54004",
      "v": "2545874926",
      "t": "2022-02-08T12:00:00"
    },
{
      "o": "4547.00000",
      "h": "4590.02979",
      "l": "4547.00000",
      "c": "4587.18018",
      "v": "2427726623",
      "t": "2022-02-09T12:00:00"
    }
  ]
}

Input Parameters (* required field)

  • * symbolSymbol Name
  • * timeSize of the time. [1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month]
  • * fromStart date [yyyy-MM-dd]
  • * toEnd date [yyyy-MM-dd]
  • limitLimit of the results. Default is 100, maximum allowed limit is 5000. Please set a limit if you are using the API in the production.
  • sortYou can sort the results by timestamp. asc will return ascending results oldest to newest, desc will return descending results newest to oldest. Default is asc.
  • date_formatChoose date format: 'dt' for datetime or 'ts' for timestamp. [Default: timestamp]
  • dbt_filterDaily-based time filter. You can allow the time filters to filter daily based. Otherwise, the filter will only trim the start and end of the output. Default is false.
  • stStart time in UTC. (Eg. 17:30)
  • * etEnd time in UTC. (Eg. 17:45)

Output Parameters

  • symbolSymbol of the index
  • totalResultsTotal result size
  • oOpen price
  • hHighest price
  • lLowest price
  • cClose price
  • vVolume
  • tTimestamp [ms]
Crafted, simply, by Finage © 2025 | All rights reserved.