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

Crypto Last Trade API

You can get the prices in Real-Time with this endpoint.

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


Params

  • symbol = Crypto symbol that you want to get price

Queries

  • apikey = Your API key

https://api.finage.co.uk/last/crypto/btcusd?apikey=YOUR_API_KEY


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

Response

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

Please login to make an API request

{
  "symbol": "BTCUSD",
  "price": 56385.08,
  "timestamp": 1620757059440
}

Crypto Last Quote API

You can get the last quote prices in Real-Time with this endpoint.

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


Params

  • symbol = Crypto symbol that you want to get price

Queries

  • apikey = Your API key

https://api.finage.co.uk/last/quote/crypto/btcusd?apikey=YOUR_API_KEY


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

Response

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

Please login to make an API request

{
  "symbol": "BTCUSD",
  "ask": 56385.07,
  "asize": 0.075349,
  "bid": 56385.06,
  "bsize": 0.36976,
  "timestamp": 1620757064667
}

Crypto Aggregates API

With the Crypto Market Aggregates API, you can get the tick bars of the crypto market.

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


Params

  • symbol = Symbol of the crypto
  • multiply = Time multiplier [1, 3, 5, 15, 30]
  • time = Size of the time. [minute, hour, day, week, month]
  • from = Start date
  • to = End date

Queries

  • apikey = Your API key
  • limit = Limit of the results. Default is 500, maximum allowed limit is 10000. 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/crypto/BTCUSD/1/day/2020-02-05/2020-02-07?apikey=YOUR_API_KEY


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

Response



Please login to make an API request

{
  "symbol":"BTCUSD",
  "totalResults":3,
  "results":[
    { "o":9164.33,"h":9775,"l":9142.52,"c":9613.82,"v":54480.149862462065,"t":1580860800000 },
    { "o":9613.91,"h":9863.39,"l":9520,"c":9763.01,"v":61112.15618754777,"t":1580947200000 },
    { "o":9763.01,"h":9885,"l":9683.9,"c":9805.2,"v":45132.69009042265,"t":1581033600000 }
  ]
}

Parameters

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

Crypto Previous Close API

With the Crypto Previous Close endpoint, you can get the previous day's last tick bar of the crypto market.

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


Params

  • symbol = Symbol of the crypto

Queries

  • apikey = Your API key

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


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

Response



Please login to make an API request

{
  "symbol": "BTCUSD",
  "totalResults": 1,
  "results": [
    {
      "o": 55816.14,
      "h": 56850,
      "l": 54370,
      "c": 56672.24,
      "v": 57725.397404,
      "t": 1620691200000
    }
  ]
}

Parameters

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

Crypto Converter API

You can convert crypto by using this API. (eg. BTC to ETH, USD to DOGE, SHIB to BTC etc.)

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


Params

  • from = "From" symbol of the crypto (eg. BTC).
  • to = "To" symbol of the currency (eg. SHIB).
  • amount = The amount to convert.

Queries

  • apikey = Your API key

https://api.finage.co.uk/convert/crypto/BTC/SHIB/2?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": "BTC",
  "to": "SHIB",
  "amount": 2,
  "value": 1960784313.72549,
  "timestamp": 1635946933092
}

Crypto Snapshot API

Crypto Snapshot API will give you access to all available crypto with one single API request. You can get the latest trades, quotes or both of them with one request.

https://api.finage.co.uk/snapshot/crypto?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/crypto?quotes=true&trades=true&symbols=BTCUSD,DOGEUSD&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": "BTCUSD",
      "a": 44361.36,
      "b": 44356.82,
      "asz": 0.00043,
      "bsz": 0.19834,
      "t": 1644505310197
    },
    {
      "s": "DOGEUSD",
      "a": 0.1548,
      "b": 0.1547,
      "asz": 133376,
      "bsz": 138504,
      "t": 1644505310197
    }
  ],
  "lastTrades": [
    {
      "s": "BTCUSD",
      "p": 44447.81,
      "sz": 0.1,
      "t": 1644505310197
    },
    {
      "s": "DOGEUSD",
      "p": 0.1550595,
      "sz": 136211.88,
      "t": 1644505310197
    }
  ]
}

Parameters

  • s = Crypto 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

The Role of Widgets in Financial Markets

Widgets have been around for some time. Despite this, they only became popular a few years ago. They are great tools to take your website to another level. The main purpose is to improve personalized features, allowing customers to have a smooth experience when browsing through your website. There

What Are Real-time APIs?

The digital age in which we live is one where one of the most valuable assets available to you is data and because the world is fast-moving, everything is best delivered in real-time, for example by using real-time stock data API. The various pieces of technology and innovations being created, there

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