Build a Real-Time Crypto Trading Bot in under 100 Lines of Code

184 Views
Published
In this video, I show you how to use Python to receive cryptocurrency price data over websockets, how to apply TA-Lib indicators to completed candlesticks, and how to programmatically execute Ethereum orders based on these indicators using the python-binance package. As we have shown in previous videos, this is not a winning strategy. We have already backtested the RSI indicator on its own on short timeframes, and have discussed what can go wrong. In this video, we allow this trading bot to run overnight without knowing what will happen. We demonstrate that the results are essentially a coinflip -- the first trade makes a quarter, and the second one loses it. Nonetheless, we successfully build an automated trading bot that uses websockets, TA-Lib, and the Binance API. We must iterate and tweak our strategy until we find a combination that works for our personal goals and timeframe.

If you like this video and want to support the channel:

Sign up for Binance:

https://www.binance.us/?ref=35201287

Sign up for TradingView:

https://tradingview.go2cloud.org/SH4Gl

Source Code:

https://github.com/hackingthemarkets/binance-tutorials

For more tutorials, subscribe to this channel and follow me:

Twitter: https://twitter.com/PartTimeLarry
Website: https://hackingthemarkets.com
Books: https://www.amazon.com/shop/parttimelarry
Category
Crypto Trading
Tags
Be the first to comment