Stream Stock Data

Arshya Sharifian
Analytics Vidhya
Published in
5 min readApr 19, 2020

--

Photo by Austin Distel on Unsplash

If you want to build some machine learning models to predict stock prices, what better way than by streaming live stock data. Using historical data is usually a good way to get started, but for the more “hardcore” data scientist/machine learning engineer trying to build the most robust models getting the right data is key. In this tutorial we will stream stock prices using the Python library robin_stocks. Since getting stock prices rarely is enough to build models, survey the other functions available in the robin_stocks library to build the “best” model. After this tutorial, you may consider building a bot with the model you built and see how much money it would gain (or lose). Now lets roll up our sleeves and get our keyboard dirty #dataengineering #python #stocks.

Outline:

  1. Robin_Stocks API Configuration
  2. Provision Oracle Cloud Database (ATP)
  3. APEX RESTful Services
  4. Streaming Stock Prices
  5. Conclusion

Robin_Stocks API Configuration:

Robin_Stocks is a python library for interacting with the Robinhood API. Use of this library assumes you already have a Robinhood account. If so, you can use python scripts that can execute stock trades, get stock prices, and a variety of other functions inherent in your Robinhood…

--

--