All Projects → jmfernandes → Robin_stocks

jmfernandes / Robin_stocks

Licence: mit
This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Robin stocks

Quant
Codera Quant is a Java framework for algorithmic trading strategies development, execution and backtesting via Interactive Brokers TWS API or other brokers API
Stars: ✭ 104 (-89.25%)
Mutual labels:  trading-api, trading, quantitative-finance, trading-algorithms
Algotrading
Algorithmic trading framework for cryptocurrencies.
Stars: ✭ 249 (-74.25%)
Mutual labels:  cryptocurrency, trading-api, trading, trading-algorithms
Kelp
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges
Stars: ✭ 580 (-40.02%)
Mutual labels:  cryptocurrency, trading-api, trading, trading-algorithms
Sumzerotrading
A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
Stars: ✭ 128 (-86.76%)
Mutual labels:  trading-api, trading, stock-market, trading-algorithms
korbit-python
Korbit API wrapper for Python
Stars: ✭ 17 (-98.24%)
Mutual labels:  trading, trading-api, trading-algorithms
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (-76.53%)
Mutual labels:  trading, trading-algorithms, quantitative-finance
Awesome Ai In Finance
🔬 A curated list of awesome machine learning strategies & tools in financial market.
Stars: ✭ 910 (-5.89%)
Mutual labels:  cryptocurrency, stock-market, quantitative-finance
51bitquant
51bitquant Python数字货币量化交易视频 CCXT框架 爬取交易所数据 比特币量化交易 交易机器人51bitquant tradingbot cryptocurrency quantitative trading btc trading
Stars: ✭ 284 (-70.63%)
Mutual labels:  cryptocurrency, trading, quantitative-finance
Machine Learning And Ai In Trading
Applying Machine Learning and AI Algorithms applied to Trading for better performance and low Std.
Stars: ✭ 258 (-73.32%)
Mutual labels:  trading, quantitative-finance, trading-algorithms
Coinbase Pro Trading Toolkit
DEPRECATED — The Coinbase Pro trading toolkit
Stars: ✭ 817 (-15.51%)
Mutual labels:  cryptocurrency, trading, trading-algorithms
Quantdom
Python-based framework for backtesting trading strategies & analyzing financial markets [GUI ]
Stars: ✭ 449 (-53.57%)
Mutual labels:  trading, stock-market, quantitative-finance
TradingView-Machine-Learning-GUI
Let Python optimize the best stop loss and take profits for your TradingView strategy.
Stars: ✭ 396 (-59.05%)
Mutual labels:  trading, stock-market, trading-algorithms
cira
Cira algorithmic trading made easy. A Façade library for simpler interaction with alpaca-trade-API from Alpaca Markets.
Stars: ✭ 21 (-97.83%)
Mutual labels:  trading, stock-market, quantitative-finance
Exchange Core
Ultra-fast matching engine written in Java based on LMAX Disruptor, Eclipse Collections, Real Logic Agrona, OpenHFT, LZ4 Java, and Adaptive Radix Trees.
Stars: ✭ 801 (-17.17%)
Mutual labels:  cryptocurrency, trading-api, stock-market
FAIG
Fully Automated IG Trading
Stars: ✭ 134 (-86.14%)
Mutual labels:  trading-api, stock-market, trading-algorithms
Tai
A composable, real time, market data and trade execution toolkit. Built with Elixir, runs on the Erlang virtual machine
Stars: ✭ 264 (-72.7%)
Mutual labels:  cryptocurrency, trading, quantitative-finance
Stocksharp
Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).
Stars: ✭ 4,601 (+375.8%)
Mutual labels:  cryptocurrency, trading, quantitative-finance
Bxbot
A simple Bitcoin trading bot written in Java.
Stars: ✭ 515 (-46.74%)
Mutual labels:  cryptocurrency, trading-api, trading
Socktrader
🚀 Websocket based trading bot for 💰cryptocurrencies 📈
Stars: ✭ 152 (-84.28%)
Mutual labels:  cryptocurrency, trading, trading-algorithms
Stock.indicators
Stock indicator technical analysis library package for .NET. Send in historical price quotes and get back desired technical indicators. Nothing more. It can be used in any market analysis software using standard OHLCV price quotes for equities, commodities, forex, cryptocurrencies, and others. We had private trading algorithms, machine learning, and charting systems in mind when originally creating this community library. Current indicators include: Accumulation/Distribution Line (ADL), Aroon Oscillator, Arnaud Legoux Moving Average (ALMA), Average Directional Index (ADX), Average True Range (ATR), Awesome Oscillator (AO), Balance of Power (BOP), Beta Coefficient, Bollinger Bands®, Chaikin Money Flow (CMF), Chaikin Oscillator, Chandelier Exit, Choppiness Index (CHOP), Commodity Channel Index (CCI), ConnorsRSI, Correlation Coefficient, Donchian Channels, Double Exponential Moving Average (DEMA), Elder-ray Index, Exponential Moving Average (EMA), Force Index, Fractal Chaos Bands (FCB), Gator Oscillator, Heikin-Ashi, Hull Moving Average (HMA), Ichimoku Cloud, Kaufman's Adaptive Moving Average (KAMA), KDJ Index, Keltner Channels, Momentum Oscillator, Money Flow Index (MFI), MESA Adaptive Moving Averages (MAMA), Moving Average Convergence/Divergence (MACD), Moving Average Envelopes, On-balance Volume (OBV), Parabolic SAR (stop and reverse), Percentage Volume Oscillator (PVO), Pivot Points and Rolling Pivot Points, Price Channels, Price (Comparative) Relative Strength (PRS), Price Momentum Oscillator (PMO), Rate of Change (ROC), Relative Strength Index (RSI), R-Squared (Coefficient of Determination), Simple Moving Average (SMA), Slope and Linear Regression, Smoothed Moving Average (SMMA), Standard Deviation, Stoller Average Range Channel (STARC) Bands, Stochastic Oscillator, Stochastic RSI, SuperTrend, Tillson T3 Moving Average, Triple Exponential Moving Average (TEMA), Triple EMA Oscillator (TRIX), True Strength Index (TSI), Ulcer Index, Ultimate Oscillator, Volume Simple Moving Average, Volume Weighted Average Price (VWAP), Vortex Indicator (VI), Weighted Moving Average (WMA), Williams %R, Williams Alligator, Williams Fractal, and Zig Zag.
Stars: ✭ 157 (-83.76%)
Mutual labels:  cryptocurrency, stock-market, quantitative-finance

.. image:: docs/source/_static/pics/title.PNG

Robin-Stocks API Library

This library provides a pure python interface to interact with the Robinhood API, Gemini API, and TD Ameritrade API. The code is simple to use, easy to understand, and easy to modify. With this library you can view information on stocks, options, and crypto-currencies in real time, create your own robo-investor or trading algorithm, and improve your programming skills.

To join our Slack channel where you can discuss trading and coding, click the link https://join.slack.com/t/robin-stocks/shared_invite/zt-7up2htza-wNSil5YDa3zrAglFFSxRIA

Supported APIs

The supported APIs are Robinhood, Gemini, and TD Ameritrade. For more information about how to use the different APIs, visit the README documents for Robinhood Documentation, Gemini Documentation, and TDA Documentation_.

Below are examples on how to call each of those modules.

import robin_stocks.robinhood as rh import robin_stocks.gemini as gem import robin_stocks.tda as tda

Here are some example calls

gem.get_pubticker("btcusd") # gets ticker information for Bitcoin from Gemini rh.get_all_open_crypto_orders() # gets all cypto orders from Robinhood tda.get_price_history("tsla") # get price history from TD Ameritrade

Contributing

If you would like to contribute to this project, follow our contributing guidelines Here <https://github.com/jmfernandes/robin_stocks/blob/master/contributing.md>_.

Automatic Testing ^^^^^^^^^^^^^^^^^

If you are contributing to this project and would like to use automatic testing for your changes, you will need to install pytest and pytest-dotenv. To do this type into terminal or command prompt:

pip install pytest pip install pytest-dotenv

You will also need to fill out all the fields in .test.env. I recommend that you rename the file as .env once you are done adding in all your personal information. After that, you can simply run:

pytest

to run all the tests. If you would like to run specific tests or run all the tests in a specific class then type:

pytest tests/test_robinhood.py -k test_name_apple # runs only the 1 test pytest tests/test_gemini.py -k TestTrades # runs every test in TestTrades but nothing else

Finally, if you would like the API calls to print out to terminal, then add the -s flag to any of the above pytest calls.

Installing

There is no need to download these files directly. This project is published on PyPi, so it can be installed by typing into terminal (on Mac) or into command prompt (on PC):

pip install robin_stocks

Also be sure that Python 3 is installed. If you need to install python you can download it from Python.org <https://www.python.org/downloads/>. Pip is the package installer for python, and is automatically installed when you install python. To learn more about Pip, you can go to PyPi.org <https://pypi.org/project/pip/>.

If you would like to be able to make changes to the package yourself, clone the repository onto your computer by typing into terminal or command prompt:

git clone https://github.com/jmfernandes/robin_stocks.git cd robin_stocks

Now that you have cd into the repository you can type

pip install .

and this will install whatever you changed in the local files. This will allow you to make changes and experiment with your own code.

List of Functions and Example Usage

For a complete list of all Robinhood API functions and what the different parameters mean, go to robin-stocks.com Robinhood Page <http://www.robin-stocks.com/en/latest/robinhood.html>. If you would like to see some example code and instructions on how to set up two-factor authorization for Robinhood, go to the Robinhood Documentation.

For a complete list of all TD Ameritrade API functions and what the different parameters mean, go to robin-stocks.com TDA Page <http://www.robin-stocks.com/en/latest/tda.html>. For detailed instructions on how to generate API keys for TD Ameritrade and how to use the API, go to the TDA Documentation.

For a complete list of all Gemini API functions and what the different parameters mean, go to robin-stocks.com Gemeni Page <http://www.robin-stocks.com/en/latest/gemini.html>. For detailed instructions on how to generate API keys for Gemini and how to use both the private and public API, go to the Gemini Documentation.

.. _Robinhood Documentation: Robinhood.rst .. _Gemini Documentation: gemini.rst .. _TDA Documentation: tda.rst

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].