Back

Docs /

Getting Started

Gzip Compression

U.S Stocks

Forex

Crypto

CFD Indices

CFD ETFS

UK Stock Market

Indian Market

Canada Market

Russian Market

Bonds

Fundamentals

Stock Last Quote

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

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


Params

  • symbol = stock symbol that you want to get prices

Queries

  • apikey = Your API key
  • ts = Timestamp type. Default is ms (Millisecond). You can use ns for nanosecond timestamp.

https://api.finage.co.uk/last/stock/AAPL?apikey=YOUR_API_KEY


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

Response

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

Please login to make an API request

{
  "symbol":"AAPL",
  "ask":118.55,
  "bid":118.53,
  "asize":3,
  "bsize":1,
  "timestamp":1604710766331
  }

Parameters

  • symbol = Symbol of the stock
  • ask = Ask Price
  • bid = Bid Price
  • bsize = Bid size [lots]
  • asize = Ask size [lots]
  • timestamp = Last update (Defult is ms)

Multiple Stock Last Quotes

You can get the last quote for multiple symbols with this endpoint.

https://api.finage.co.uk/last/stocks/?symbols={ SYMBOL1, SYMBOL2, ... }&apikey=YOUR_API_KEY


Queries

  • symbols = Multiple stock symbols seperated with commas. You can call up to 100 symbols in one request. Please note that calling one symbol always will give you more faster responses.
  • apikey = Your API key
  • ts = Timestamp type. Default is ms (Millisecond). You can use ns for nanosecond timestamp.

https://api.finage.co.uk/last/stocks/?symbols=AAPL,TSLA,GOGL&apikey=YOUR_API_KEY


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

Response

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

Please login to make an API request

{
  [
    {
      symbol: "AAPL",
      ask: 136.64,
      bid: 136.63,
      asize: 20,
      bsize: 8,
      timestamp: 1612799228260,
    },
    {
      symbol: "TSLA",
      ask: 869.37,
      bid: 869.1,
      asize: 1,
      bsize: 1,
      timestamp: 1612799228580,
    },
    {
      symbol: "GOGL",
      ask: 5.15,
      bid: 5.14,
      asize: 10,
      bsize: 44,
      timestamp: 1612799214069,
    },
  ];
}

Parameters

  • symbol = Symbol of the stock
  • ask = Ask Price
  • bid = Bid Price
  • bsize = Bid size [lots]
  • asize = Ask size [lots]
  • timestamp = Last update (Defult is ms)
It's that simple to use the last price API for the stocks.

Stock Last Trade

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

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


Params

  • symbol = Stock symbol that you want to get prices

Queries

  • apikey = Your API key
  • dp_filter = You can filter the dark pools by setting this query as true. You will receive dp parameter in your responses to filter the dark pools. Default is false.
  • ts = Timestamp type. Default is ms (Millisecond). You can use ns for nanosecond timestamp.

https://api.finage.co.uk/last/trade/stock/AAPL?apikey=YOUR_API_KEY


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

Response

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

Please login to make an API request

{
  "symbol": "AAPL",
  "price": 131.99,
  "size": 5,
  "timestamp": 1608847193770
}

Parameters

  • symbol = Symbol of the stock
  • price = Last Price
  • size = Size of the last trade
  • timestamp = Last update (Defult is ms)

Multiple Stock Last Trades

You can get the last trades for multiple symbols with this endpoint.

https://api.finage.co.uk/last/trade/stocks?symbols={ symbols }&apikey=YOUR_API_KEY


Queries

  • symbols = Multiple stock symbols seperated with commas. You can call up to 100 symbols in one request. Please note that calling one symbol always will give you more faster responses.
  • apikey = Your API key
  • ts = Timestamp type. Default is ms (Millisecond). You can use ns for nanosecond timestamp.

https://api.finage.co.uk/last/trade/stocks?symbols=AAPL,TSLA,AMZN&apikey=YOUR_API_KEY


With the given example above, you can get the last prices of the AAPL, TSLA and AMZN.

Response

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

Please login to make an API request

[
  {
    symbol: "AAPL",
    price: 154.093,
    size: 70,
    timestamp: 1630677535003,
  },
  {
    symbol: "TSLA",
    price: 731.32,
    size: 10,
    timestamp: 1630677534830,
  },
  {
    symbol: "AMZN",
    price: 3447.74,
    size: 1,
    timestamp: 1630677534954,
  },
];

Parameters

  • symbol = Symbol of the stock
  • price = Last Price
  • size = Size of the last trade
  • timestamp = Last update (Defult is ms)

Stock Market Aggregates API

With the Stock Market Aggregates endpoint, you can get the OHLCV bars of the stock market.

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


Params

  • symbol = Symbol of the stock
  • 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
  • unadjusted = Unadjust the prices. Default is true.
  • 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/stock/AAPL/1/day/2020-02-05/2020-02-07?apikey=YOUR_API_KEY


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

Response



Please login to make an API request

{
  "symbol":"AAPL",
  "totalResults":3,
  "results":[
  { "o":80.88,"h":81.19,"l":79.7375,"c":80.3625,"v":118746872,"t":1580878800000 },
  { "o":80.6425,"h":81.305,"l":80.0662,"c":81.3025,"v":105392140,"t":1580965200000 },
  { "o":80.5925,"h":80.85,"l":79.5,"c":80.0075,"v":117684048,"t":1581051600000 }
]
}

Parameters

  • symbol = Symbol of the stock
  • totalResults = Total result size
  • o = Open price
  • h = High price
  • l = Low price
  • c = Close price
  • v = Volume
  • t = Timestamp [ms]

Stock Market Previous Close

With the Stock Market Previous Close API, you can get the historiacal end of day data and also previous day's last tick bar of the stock market.

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


Params

  • symbol = Symbol of the stock

Queries

  • apikey = Your API key
  • unadjusted = Unadjust the prices. Default is true.
  • date = Requested date (YYYY-MM-dd)

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


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

Response



Please login to make an API request

{
  "symbol": "AAPL",
  "totalResults": 1,
  "results": [
    {
      "o": 124.81,
      "h": 125.71,
      "l": 121.84,
      "c": 122.06,
      "v": 112966340,
      "t": 1614805200000
    }
  ]
}

Parameters

  • symbol = Symbol of the stock
  • totalResults = Total result size
  • o = Open price
  • h = High price
  • l = Low price
  • c = Close price
  • v = Volume
  • t = Timestamp [ms]

Stock Snapshot API

Stock Snapshot API will give you access to all U.S Market with one single API request. You can get the latest trades, quotes or both of them with one request.
Snapshot might not be available if the market is closed for a while.

https://api.finage.co.uk/snapshot/stock?apikey=YOUR_API_KEY


Queries

  • quotes = Enable or disable last quotes. Default is true.
  • trades = Enable or disable last trades. Default is false.
  • symbols = You can get the data from specific symbols by using this query. If you leave it empty, you will get the all available last data. (Separate symbols with commas.)
  • apikey = Your API key

https://api.finage.co.uk/snapshot/stock?quotes=true&trades=true&symbols=AAPL,TSLA&apikey=YOUR_API_KEY

📌 You can enable Gzip compression to obtain the best performance in your application. Check out the pros of the Gzip Compression.

Response



Please login to make an API request

{
  "totalResults": 2,
  "lastQuotes": [
    {
      "s": "AAPL",
      "a": 158.91,
      "b": 158.9,
      "asz": 1,
      "bsz": 1,
      "t": 1643228002555941
    },
    {
      "s": "TSLA",
      "a": 923.94,
      "b": 922.25,
      "asz": 1,
      "bsz": 2,
      "t": 1643228002555043
    }
  ],
  "lastTrades": [
    {
      "s": "AAPL",
      "p": 158.91,
      "sz": 100,
      "t": 1643228002555941
    },
    {
      "s": "TSLA",
      "p": 923.4,
      "sz": 200,
      "t": 1643228002555043
    }
  ]
}

Parameters

  • s = Stock symbol
  • p = Last trade price
  • a = Last ask price
  • b = Last bid price
  • asz = Ask size
  • bsz = Bid size
  • sz = Trade size
  • t = Timestamp (microseconds)
  • totalResults = Total incoming symbol number.




Request a consultation

Blog

From Arbitrage to Hedging: How DEX Data Transforms Crypto Trading

The cryptocurrency market thrives on innovation and volatility, offering traders opportunities to profit from price movements and market inefficiencies. Decentralized exchanges (DEXs) have become a critical part of this ecosystem, providing real-time data and enabling strategies like arbitrage and

Why ESG Data Matters in Identifying Future-Focused ETFs

As the investment landscape shifts toward sustainability, environmental, social, and governance (ESG) factors are increasingly influencing investor decisions and portfolio strategies. Exchange-traded funds (ETFs) have emerged as a convenient and impactful way for investors to align their financial

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