Skip to content
프로젝트

소개

Robinhood를 사용해 주식을 거래하는 명령줄 셸

비즈니스 및 금융

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Robinhood Shell

Robinhood Shell is a command line shell for trading stocks using Robinhood.

Robinhood Shell

Commands Supported

  • l : Lists your current portfolio
  • b <symbol> <quantity> <price> : Submits a limit order to buy stocks of at
  • s <symbol> <quantity> <price> : Submits a limit order to sell stocks of at
  • q <symbol> : Get quote (current price) for symbol
  • q <symbol> <call/put> <strike_price> <(optional) expiration_date YYYY-mm-dd> : Get quote for option, all expiration dates if none specified
  • o : Lists all open orders
  • c <id> : Cancel an open order identified by [ of a open order can be got from output of o]
  • bye : Exit the shell

Setup

If you don't have a Robinhood account, sign up for Robinhood. It is a free stock trading platform. Use my referral link to sign up and get one free stock :)

Before you begin, make sure you have Python3 installed. Robinhood shell only works with python3. Some of the functionality is broken on python2.7

  1. Download Robinhood Shell by downloading the zip file (link) OR by using git
git clone https://github.com/anilshanbhag/RobinhoodShell.git

cd RobinhoodShell
  1. Install the dependencies
pip install -r requirements.txt
  1. Create and save your username/password in the config file
cp config.py.sample config.py
# Edit config.py - replace username/password with your real username/password
# Set CHALLENGE_TYPE = 'sms' or 'email' depending on how you want to do 2FA

You are good to go. Start the shell by

chmod +x shell.py
./shell.py

Credits

The shell builds on Robinhood Python API wrapper by Jamonek

Disclaimer

Robinhood Shell is not associated with the Robinhood app or endorsed by it.

관련 프로젝트 살펴보기

불러오는 중…