Ask HN: What stock trading API do you use or recommend?
I am thinking of playing with stocks (small amounts just for fun). But I do want to do real money. What are some of the stock trading APIs that folks here at HN recommend ? Ideally I would create an application that can place orders for the stocks that are pre-selected and mostly do buy/sell. I guess the idea is that I want to play with my own custom algorithm for fun to see if I can make some money through my stocks using some type of automated way (not talking about HFT or anything too serious).
12 comments
[ 0.29 ms ] story [ 45.3 ms ] threadInteractive Brokers has an advanced API as well.
https://iextrading.com/developer/
To research and backtest strategies, check out the Quantopian community. You can perform your analysis right in an IPython Notebook and share it with really smart people.
https://www.quantopian.com/notebooks/survey
Will Robinhood ever release an "official" API for commission-free algo trading? They may have their hands full with all the inexperienced options traders getting their first margin calls last week. In the meantime there's plenty of room for competition:
Alpaca | Algo Trading Commission Free With REST API
https://alpaca.markets/
Best of luck and research your risks before using real money ;)
Most of my code is written in Python, so I only use the C++ part to place orders. Everything else is done with Python.
The 2 main advantages that I see with MetaTrader is that:
- I can change brokers without having to rewrite anything or learn a new API. I just need to enter the server + login information in MetaTrader. At least in my country, almost all brokers have MetaTrader support.
- I can run and store the code locally. If you use something like quantopian.com, the code is run and stored in their servers. This brings a series of limitations like outdated/missing libraries or slow backtesting since they have to limit CPU/memory resources.
[1] https://www.metatrader5.com/
For trading I prefer https://www.motifinvesting.com/ which lets me name a given strategy, purchase up to 30 stocks, and they will track returns. It is manual, not API driven but the returns tracking and public track record is worth it for me.
We also wrote up articles wrt market data and any algo-trading related applications here as well!
Algo trading application list https://hackernoon.com/9-great-tools-for-algo-trading-e0938a...
Data vendors list https://blog.alpaca.markets/blog/2018/7/24/data-data-data-11...