I'm looking for free APIs for Financial Trading or simply to track Markets (currency exchange, ETFs, Funds, Gold value). Is it something publicly available or are they all bounded to a price?
Alpaca API lets you trade stocks with a commission free API. They have a REST API and you can also receive data over websockets via their polygon.io integration if you have a brokerage account.<p>Tradier lets you trade stocks and options. Tradier option trading is commission free if you have a subscription, otherwise there is a small commission per trade. They have an API for market data over REST API and websockets.<p>TD Ameritrade has an API and tda-api python package makes it easier to use, but not easy to paper trade with it for testing.<p>You can also use an unofficial Robinhood package like robin_stocks, but Robinhood doesn't officially support any of this.<p>Interactive Brokers supports the most instruments, including many currencies, futures, etc, but you will pay a small monthly fee for historical and real time data, plus commissions. I recommend the ib_insync package to make their API easier to use.<p>Self promo: I have a YouTube channel that is focused on this topic:<p><a href="https://youtube.com/c/parttimelarry" rel="nofollow">https://youtube.com/c/parttimelarry</a>
There are plenty of free data feeds, basically any exchange with a free account will offer you a lot of data for free, near real time. Some via REST calls, some via websocket. Some might also offer some daily numbers or hourly numbers going back a few months/years. A lot of that said data will be market-maker data, meaning it may diverge in time from the real exchange information.<p>I'm no expert but if you want REALLY up to date information with many ticks per second, you'll have to pay.<p>As for <i>trading</i>, you're either paying fees or paying by the <i>spread</i> (difference) between buy/sell.<p>There is no free lunch.
AlphaVantage has a free tier but there's a limit on request per min.
<a href="https://www.alphavantage.co/documentation/" rel="nofollow">https://www.alphavantage.co/documentation/</a>
Think or Swim from TD Ameritrade is effectively free (you need an account with money in it, but you aren't charged to access it or the API). When/if you want to make trades you can as well.