NexusFi: Find Your Edge


Home Menu

 





Is there a free Forex API that offers historical/websocket connection


Discussion in Platforms and Indicators

Updated
    1. trending_up 6,217 views
    2. thumb_up 7 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

Howdy.

I have built a few crypto apps, and there are plenty of free APIs that allow both historical data via HTTP requests and websocket streaming.

I want to build an app for FX, and am having a hard time finding one for FX.

Just wondering if anyone has actually used one that works?

THanks,
FP


Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
April CPI Preview: +3.7% YoY Expected at 8:30 AM ET -- C …
Traders Hideout
US Navy Blockade of Hormuz Starts Today -- Oil Surges 8p …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Cboe Files for Near 24x5 Equities Trading -- December 20 …
Traders Hideout
Third Circuit Backs Kalshi in Landmark Ruling -- Predict …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


forrestang View Post
I have built a few crypto apps, and there are plenty of free APIs that allow both historical data via HTTP requests and websocket streaming.

I want to build an app for FX, and am having a hard time finding one for FX.

@forrestang,

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."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

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.
Reply With Quote
Thanked by:
  #3 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060


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.

General structure is in place and functioning.


2025-10-16_111223


Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

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.

FP


Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060


forrestang View Post
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.

FP

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.


Started this thread Reply With Quote
Thanked by:




Last Updated on October 17, 2025


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts