Coding A Bitcoin Trading Bot Using Python (robin_stocks)

Published: 07 March 2021
on channel: Benjamin Carlson
4,202
82

In this python automation tutorial video, we use python and robin_stocks to interact with the Robinhood api and build a bitcoin (BTC) trading bot. In this video we login, logout, buy BTC, and place a limit sell order!

The strategy we use is:
➡ Buy $10 of BTC
➡ Set limit order for $10 higher
➡ Once sold, repeat!

Goal is small BTC gains which will add up if bot is run 24/7 (maybe deploy to pythonanywhere?)

➡ Get a free stock: https://join.robinhood.com/benjamc1993
➡ robin_stocks docs: https://robin-stocks.readthedocs.io/e...
➡ robin_stocks GitHub: https://github.com/jmfernandes/robin_...
➡ Get $10 BTC free! (coinbase) https://www.coinbase.com/join/carlso_8kg

Disclaimer: This video is for educational purposes and is not trading advice! If not careful, this bot WILL convert all of your cash to bitcoin.

Pre-reqs for this video:
➡ Be familiar with python
➡ Know what virtual environments are and how to use them -    • Virtualenv Python Tutorial  
➡ Basic knowledge of api's

Methods we use:
login()
logout()
order_buy_crypto_by_price()
get_all_crypto_orders()
order_sell_crypto_limit()

(0:00) Introduction
(0:28) Starting files - venv, secrets.py
(0:50) Installing robin_stocks
(1:38) Logging in - with 2 factor sms authentication
(3:23) Logging out
(3:38) Testing login and logout
(4:09) Buying the BTC
(6:18) Set limit sell dynamically
(12:09) Testing the bot!
(13:00) Conclusion + next steps

Gear: https://benjamincarlson.io/gear

Like my videos and want to support me? Consider sponsoring me on GitHub: https://github.com/sponsors/bjcarlson42

CONTACT: [email protected]

Connect with me:
Website: https://benjamincarlson.io
Twitter:   / bjmncrlsn  
Github: https://github.com/bjcarlson42
LinkedIn:   / bjcarlson42  
Medium:   / benjamincarlson  
Newsletter: https://buttondown.email/benjamincarlson


On this page of the site you can watch the video online Coding A Bitcoin Trading Bot Using Python (robin_stocks) with a duration of hours minute second in good quality, which was uploaded by the user Benjamin Carlson 07 March 2021, share the link with friends and acquaintances, this video has already been watched 4,202 times on youtube and it was liked by 82 viewers. Enjoy your viewing!