Back

Docs /

Getting Started

Gzip Compression

U.S Stocks

Forex

Crypto

UK Stock Market

Indian Market

Canada Market

Russian Market

Bonds

Fundamentals

Forex Last Quote

You can get the last quote for a symbol with this endpoint.

https://api.finage.co.uk/last/forex/{ symbol }?apikey=YOUR_API_KEY


Params

  • symbol
    = Forex symbol that you want to get prices

Queries

  • apikey
    = Your API key

https://api.finage.co.uk/last/forex/GBPUSD?apikey=YOUR_API_KEY


With the given example above, you can get the last prices of the GBPUSD.

Response

An example response given below when you make an API request.

Please login to make an API request

{
  "symbol":"GBPUSD",
  "ask":1.36305,
  "bid":1.36292,
  "timestamp":1609875979000
}

Forex Last Trade

You can get the last trade price for a symbol with this endpoint.

https://api.finage.co.uk/last/trade/forex/{ symbol }?apikey=YOUR_API_KEY


Params

  • symbol
    = Forex symbol that you want to get the last trade price

Queries

  • apikey
    = Your API key

https://api.finage.co.uk/last/trade/forex/GBPUSD?apikey=YOUR_API_KEY


With the given example above, you can get the last trade price of the GBPUSD.

Response

An example response given below when you make an API request.

Please login to make an API request

{
  "symbol": "GBPUSD",
  "price": 1.37,
  "timestamp": 1618001940
}

Historical Forex Tick Data

You can get the last quote for a symbol with this endpoint.

https://api.finage.co.uk/history/ticks/forex/{ symbol }/{ date }?limit={ limit }&apiKey=YOUR_API_KEY


Params

  • symbol
    = Forex symbol that you want to get prices
  • date
    = Date for the tick data. [YYYY-MM-dd]

Queries

  • apikey
    = Your API key
  • limit
    = Tick limit. Default is 10. Maximum allowed limit is 5000.
  • tso
    = Timestamp offset for pagination.

https://api.finage.co.uk/history/ticks/forex/gbpusd/2021-01-04?limit=50&tso=1609718400000&apiKey=YOUR_API_KEY


With the given example above, you can get the ticks of the GBPUSD.

Response

An example response given below when you make an API request.

Please login to make an API request

{
  "symbol":"GBPUSD",
  "date":"2021-01-04",
  "ticks":[
    {
      "b":1.36805,
      "a":1.3682,
      "t":1609718400000
    },
    ...
  ]
}

Params

  • symbol
    = Forex symbol
  • date
    = Date of the ticks
  • a= Ask price
  • b = Bid price
  • t
    = Timestamp [ms].

Forex Aggregates

With the Forex Aggregates API, you can get the tick bars of the forex symbol.

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


Params

  • symbol
    = Forex symbol
  • multiply
    = Time multiplier
  • time
    = Size of the time. [minute, hour, day, week, month, quarter, year]
  • from = Start date
  • to = End date

Queries

  • apikey
    = Your API key
  • limit
    = Limit of the results. Default is 100, maximum allowed limit is 50000. Please set a limit if you are using the API in the production.
  • sort
    = You 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.
  • dbt_filter
    = Daily-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.
  • st = Start time in UTC. (Eg. 17:30)
  • et
    = End time in UTC. (Eg. 17:45)

https://api.finage.co.uk/agg/forex/GBPUSD/1/day/2021-01-01/2021-01-05?apikey=YOUR_API_KEY&st=10:00&et=13:30


You can get the tick bars of the GBPUSD with the given example above.

Response



Please login to make an API request

{
  "symbol":"GBPUSD",
  "totalResults":4,
  "results":[
    {
      "v":254,
      "o":1.3642,
      "c":1.3667,
      "h":1.3677,
      "l":1.3642,
      "t":1609477200000
    },
    ...
  ]}
  • Parameters
    • symbol
      = Forex symbol
    • totalResults
      = Total result size
    • o
      = Open price
    • h
      = High price
    • l
      = Low price
    • c
      = Close price
    • v
      = Volume
    • t
      = Timestamp [ms]

Forex Previous Close

With the Forex Previous Close API, you can get the previous day's last tick bar of the forex market.

https://api.finage.co.uk/agg/forex/prev-close/{ symbol }?apikey=YOUR_API_KEY


Params

  • symbol
    = Symbol of the forex
  • unadjusted
    = Unadjust the prices. Default is true.

Queries

  • apikey
    = Your API key

https://api.finage.co.uk/agg/forex/prev-close/GBPUSD?apikey=YOUR_API_KEY


You can get the previous day's last tick bar of the GBPUSD with the given example above.

Response



Please login to make an API request

{
  "symbol": "GBPUSD",
  "totalResults": 1,
  "results": [
    {
      "o": 1.40456,
      "h": 1.41105,
      "l": 1.4034,
      "c": 1.40948,
      "v": 103566,
      "t": 1621036799999
    }
  ]
}
  • Parameters
    • symbol
      = Symbol of the forex
    • totalResults
      = Total result size
    • o
      = Open price
    • h
      = High price
    • l
      = Low price
    • c
      = Close price
    • v
      = Volume
    • t
      = Timestamp [ms]

Forex Currency Converter API

With this endpoint, you can convert the currencies with the real-time prices.

https://api.finage.co.uk/convert/forex/{ from }/{ to }/{ amount }?apikey=YOUR_API_KEY


Params

  • from = "From" symbol of the currency.
  • to = "To" symbol of the currency.
  • amount
    = The amount to convert.

Queries

  • apikey
    = Your API key

https://api.finage.co.uk/convert/forex/GBP/USD/3?apikey=YOUR_API_KEY


With the given example above, you can get the converted price value.

Response

An example response given below when you make an API request.

Please login to make an API request

{
  "from": "GBP",
  "to": "USD",
  "amount": 3,
  "value": 4.2285,
  "timestamp": 1621027210000
}



Request a consultation

Blog

Payments: Innovations in Transactions

The rate at which innovations are being developed is higher than ever before. There is always something new popping up, for example, the Neo Banking niche. This constant change produces a lot of competition. The way payments are made has completely changed from the simple point of sale to more con

The Role of Drones in Trading and Finance in 2024

Ever since the introduction of drones, they have become more sophisticated. Their usage has extended far beyond their intended purpose of capturing aerial images. Now this technology is available in so many industries from agriculture to logistics. The use has also extended to the financial sector

Read more

Please note that all data provided under Finage and on this website, including the prices displayed on the ticker and charts pages, are not necessarily real-time or accurate. They are strictly intended for informational purposes and should not be relied upon for investing or trading decisions. Redistribution of the information displayed on or provided by Finage is strictly prohibited. Please be aware that the data types offered are not sourced directly or indirectly from any exchanges, but rather from over-the-counter, peer-to-peer, and market makers. Therefore, the prices may not be accurate and could differ from the actual market prices. We want to emphasize that we are not liable for any trading or investing losses that you may incur. By using the data, charts, or any related information, you accept all responsibility for any risks involved. Finage will not accept any liability for losses or damages arising from the use of our data or related services. By accessing our website or using our services, all users/visitors are deemed to have accepted these conditions.

Finage LTD 2024

Copyright