Get real-time conversion rates and historical forex data for 50+ currency pairs with a single API, built for developers who are innovating with financial data.
curl --header 'Accept: text/event-stream' https://cloud-sse.iexapis.com/stable/forex\?symbols\=USDCAD\&token\={your_token}
{
symbol: "USDCAD",
rate: 1.31,
timestamp: 1288282222000
}
GET https://cloud.iexapis.com/stable/fx/convert?symbols=USDJPY,USDCAD&amount=100&token={your_token}
[
{
symbol: "USDJPY",
rate: 112.274,
timestamp: 1581925834555,
amount: 11401.88870935745
},
{
symbol: "USDCAD",
rate: 1.337,
timestamp: 1645557921467,
amount: 132.466
}
]
GET /stock/PG/quote
{
symbol: "PG",
companyName: "Procter & Gamble Co.",
primaryExchange: "New York Stock Exchange",
calculationPrice: "close",
open: 118.13,
openTime: 1573050758786,
close: 121.35,
closeTime: 1573074113456,
high: 120.81,
low: 118.59,
latestPrice: 121.35,
latestSource: "Close",
latestTime: "November 6, 2019",
latestUpdate: 1573074113456,
latestVolume: 6736703,
iexRealtimePrice: 120.31,
iexRealtimeSize: 100,
iexLastUpdated: 1573073985821,
delayedPrice: 121.35,
delayedPriceTime: 1573074600009,
extendedPrice: 120.49,
extendedChange: 0.17,
extendedChangePercent: 0.00141,
extendedPriceTime: 1573075200102,
previousClose: 119.6,
previousVolume: 9239611,
change: 1.43,
changePercent: 0.01193,
volume: 6736703,
iexMarketPercent: 0.08732466243943147,
iexVolume: 588283,
avgTotalVolume: 6770494,
iexBidPrice: 0,
iexBidSize: 0,
iexAskPrice: 0,
iexAskSize: 0,
marketCap: 300055219200,
peRatio: 75.72,
week52High: 123.77,
week52Low: 86.72,
ytdChange: 0.314523,
lastTradeTime: 1573073999444,
isUSMarketOpen: false
}
GET /stock/AAPL/estimates
{
symbol: "AAPL",
estimates: [
consensusEPS: 4.57,
announceTime: "AMC",
numberOfEstimates: 36,
reportDate: "2020-02-04",
fiscalPeriod: "Q4 2019",
fiscalEndDate: "2019-12-31"
]
}
Forex data on IEX Cloud is sourced from 360T Group, an independent, globally established trading venue that also serves as Deutsche Borse Group’s FX unit. 360T maintains a state-of-the-art multi-bank portal for foreign exchange, cash and money market products, and forex/interest rate derivatives. 360T is trusted by thousands of corporate treasuries, commercial private banks, and asset managers globally.