Show HN: Stock Option Trading Application in Racket
github.com
github.com
* IEX Cloud - https://iexcloud.io/docs/api/#deep - Live order book data straight from IEX. This is free and I don't think you even need an account at iexcloud.io to use it.
* AlphaVantage - https://www.alphavantage.co/documentation/ - I think this is request/reply, but there is no 15 minute delay from what I can tell.
I don't use IEX's DEEP endpoint, but I do use IEX for daily historical prices, among other things. Here's the project that the option trading application uses for daily prices: https://github.com/evdubs/iex-stocks.
With respect to the option trading application, it doesn't use live prices. Analysis is done offline and, upon order submission, a stock entry price is set so that the option orders don't activate until the live stock price has risen/fallen to the conditional entry price. This is one mechanism that allows the application to be careful and not be filled for an order when the stock has already moved against us. So, there is reliance that the broker (IBKR in this application) is properly handling our order and its special parameters.
If you care to take a look again at algo trading, I think you might find it useful to investigate more "offline" strategies that don't require you to be constantly plugged into ever-changing market data. You might even find that it's easier to find an "edge" as a retail investor by doing this rather than being on the lower-latency side of things.