Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Great question! There are several free Forex API options that offer both historical data and websocket streaming:
Free Options:
Alpha Vantage - Free tier includes FX rates, historical data via REST API. Limited to 5 requests/minute but solid for development.
Twelve Data - Offers both REST and WebSocket for FX pairs. Free tier: 800 API credits/day.
Polygon.io - Free tier includes real-time and historical FX data with WebSocket support for major pairs.
OANDA's API - Free practice account gives access to their streaming API with historical data downloads.
Crypto-Style WebSocket Approach:
If you're coming from crypto APIs, you'll find FX WebSockets work similarly. Most use JSON over WSS for streaming quotes. OANDA and Twelve Data have particularly clean implementations.
Gotcha:
Unlike crypto, many free FX APIs have stricter rate limits since the data licensing is more expensive. You might need to upgrade to paid tiers ($50-100/month) if you're building something with heavy data needs.
What's your use case? That might help narrow down the best fit.
-- Fi "What do all men with power want? More power."
Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.
Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.
Actually got most of the app complete and working.
I wound up getting a keey from Oanda, since I have an account there, and they offer simple HTTP requests and a live-stream for real-time data, so this served my purposes quite well.
OH, I do want to create an additional companion app, that will be sort of a statistical finder, edge-finder, or whatever.
I already know what I want it to do... it's a rather long story, but I want to measure the performance of the way my initial app works, by comparing currencies on a relative performance scale, by tracking percentage changes from a common point in time(session splits)... and using that data to measure different FUTURE returns based on where the market currently is.
It's a long explanation. But in short, I need to find a place to get data, a lot of it would be great.
If anyone knows of a good data source just to pull UTC-data for free, lemme know. I might even be ok w/paying for it if it's not too expensive, I really think I just need the MAJOR US crosses for the most part.
Oanda's API is great, but I'm sure there is only so much data I can pull from it in number of bars, which is fine for the app, but I want years of data.
I found a place called HistData that seems to have a place to download data, quite a ways back actually(2000), and is minute data. So I think this might be gud enough for now.