CFD ETF Last Price
You can get the last price for a symbol with this endpoint.
https://api.finage.co.uk/last/etf/{ symbol }?apikey=YOUR_API_KEY
Params
-
symbol
= ETF symbol that you want to get prices
Queries
https://api.finage.co.uk/last/etf/QQQ?apikey=YOUR_API_KEY
With the given example above, you can get the last prices of the QQQ.
Response
An example response given below when you make an API request.
Please login to make an API request
{
"symbol": "QQQ",
"price": 319.1413,
"timestamp": 1614717768911
}
Params
-
symbol
Symbol of the ETF
-
price
Last price of the ETF
-
timestamp
Last update [ms]
CFD ETF Market Aggregates API
With the CFD ETF Market Aggregates API, you can get the tick bars of the ETF (Exchange Traded Fund) market.
https://api.finage.co.uk/agg/etf/{ symbol }/{ time }/{ from }/{ to }?apikey=YOUR_API_KEY
Params
-
symbol
Symbol of the ETF
-
time
Size of the time. [1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month]
-
from
Start date [yyyy-MM-dd]
-
to
End date [yyyy-MM-dd]
Queries
-
apikey
= Your API key
-
limit
Limit of the results. Default is 100, maximum allowed limit is 5000. 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.
-
date_format
You can change the format of the date in the results. ts is timestamp, dt is datetime. [Default is dt]
-
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/etf/qqq/1day/2021-02-05/2021-03-02?apikey=YOUR_API_KEY
You can get the tick bars of the QQQ with the given example above.
Response
Please login to make an API request
{
"symbol": "QQQ",
"totalResults": 16,
"results": [
{ "o": "331.22000", "h": "332.40250", "l": "329.53000", "c": "331.48001","v": "20774820", "t": "2021-02-05" },
{ "o": "333.10001", "h": "333.73999", "l": "331.41010", "c": "333.59000", "v": "18421116", "t": "2021-02-08" },
{ "o": "332.66000", "h": "334.79990", "l": "332.65381", "c": "333.48999", "v": "16706362", "t": "2021-02-09" },
...
]
}
Parameters
-
symbol
Symbol of the ETF
-
totalResults
Total result size
-
o
Open price
-
h
High price
-
l
Low price
-
c
Close price
-
v
Volume
-
t
Timestamp [ms]
CFD ETF Previous Close API
With the ETF Previous Close API, you can get the previous day's last tick bar of the ETF market.
https://api.finage.co.uk/agg/etf/prev-close/{ symbol }?apikey=YOUR_API_KEY
Params
-
symbol
= Symbol of the ETF
Queries
https://api.finage.co.uk/agg/etf/prev-close/qqq?apikey=YOUR_API_KEY
You can get the previous day's last tick bar of the QQQ with the given example above.
Response
An example response given below when you make an API request.
Please login to make an API request
{
"symbol": "QQQ",
"totalResults": 1,
"results": [
{
"o": 364.84,
"h": 365.48001,
"l": 362.22,
"c": 362.98001,
"v": 34110963,
"t": 1626220800000
}
]
}
Params
-
symbol-
= Symbol of the ETF
-
totalResults-
= Total result size
-
o-
= Open price
-
h-
= High price
-
l-
= Low price
-
c-
= Close price
-
v-
= Volume
-
t-
= Timestamp [ms]