robin-stocks


Namerobin-stocks JSON
Version 3.0.6 PyPI version JSON
download
home_pagehttps://github.com/jmfernandes/robin_stocks
SummaryA Python wrapper around the Robinhood API
upload_time2023-08-07 02:54:19
maintainer
docs_urlNone
authorJosh Fernandes
requires_python>=3.9
licenseMIT
keywords robinhood robin stocks finance app stocks options trading investing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jmfernandes/robin_stocks",
    "name": "robin-stocks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "robinhood,robin stocks,finance app,stocks,options,trading,investing",
    "author": "Josh Fernandes",
    "author_email": "joshfernandes@mac.com",
    "download_url": "https://files.pythonhosted.org/packages/c1/63/83ea00b59ef19fffc3ff7d61259ec1d4a512ac4f4bc70155b128f97cb5da/robin_stocks-3.0.6.tar.gz",
    "platform": null,
    "description": ".. image:: docs/source/_static/pics/title.PNG\n\nRobin-Stocks API Library\n========================\nThis library provides a pure python interface to interact with the Robinhood API, Gemini API,\nand TD Ameritrade API. The code is simple to use, easy to understand, and easy to modify.\nWith this library you can view information on stocks, options, and crypto-currencies in real time, \ncreate your own robo-investor or trading algorithm, and improve your programming skills.\n\nTo 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\n\nSupported APIs\n==============\nThe supported APIs are Robinhood, Gemini, and TD Ameritrade. For more information about how to use the different APIs, visit the README\ndocuments for `Robinhood Documentation`_, `Gemini Documentation`_, and `TDA Documentation`_.\n\nBelow are examples on how to call each of those modules.\n\n>>> import robin_stocks.robinhood as rh\n>>> import robin_stocks.gemini as gem\n>>> import robin_stocks.tda as tda\n>>> # Here are some example calls\n>>> gem.get_pubticker(\"btcusd\") # gets ticker information for Bitcoin from Gemini\n>>> rh.get_all_open_crypto_orders() # gets all cypto orders from Robinhood\n>>> tda.get_price_history(\"tsla\") # get price history from TD Ameritrade \n\nContributing\n============\nIf you would like to contribute to this project, follow our contributing guidelines `Here <https://github.com/jmfernandes/robin_stocks/blob/master/contributing.md>`_.\n\nAutomatic Testing\n^^^^^^^^^^^^^^^^^\n\nIf 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:\n\n>>> pip install pytest\n>>> pip install pytest-dotenv\n\nYou 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:\n\n>>> pytest\n\nto run all the tests. If you would like to run specific tests or run all the tests in a specific class then type:\n\n>>> pytest tests/test_robinhood.py -k test_name_apple # runs only the 1 test\n>>> pytest tests/test_gemini.py -k TestTrades # runs every test in TestTrades but nothing else\n\nFinally, if you would like the API calls to print out to terminal, then add the -s flag to any of the above pytest calls.\n\n\nInstalling\n========================\nThere is no need to download these files directly. This project is published on PyPi,\nso it can be installed by typing into terminal (on Mac) or into command prompt (on PC):\n\n>>> pip install robin_stocks\n\nAlso 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/>`_.\nPip 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/>`_.\n\nIf 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:\n\n>>> git clone https://github.com/jmfernandes/robin_stocks.git\n>>> cd robin_stocks\n\nNow that you have cd into the repository you can type\n\n>>> pip install .\n\nand this will install whatever you changed in the local files. This will allow you to make changes and experiment with your own code.\n\nList of Functions and Example Usage\n===================================\n\nFor a complete list of all Robinhood API functions and what the different parameters mean, \ngo to `robin-stocks.com Robinhood Page <http://www.robin-stocks.com/en/latest/robinhood.html>`_. If you would like to\nsee some example code and instructions on how to set up two-factor authorization for Robinhood,\ngo to the `Robinhood Documentation`_.\n\nFor a complete list of all TD Ameritrade API functions and what the different parameters mean, \ngo to `robin-stocks.com TDA Page <http://www.robin-stocks.com/en/latest/tda.html>`_. For detailed instructions on \nhow to generate API keys for TD Ameritrade and how to use the API, go to the `TDA Documentation`_.\n\nFor a complete list of all Gemini API functions and what the different parameters mean, \ngo to `robin-stocks.com Gemeni Page <http://www.robin-stocks.com/en/latest/gemini.html>`_. For detailed instructions on \nhow to generate API keys for Gemini and how to use both the private and public API, go to the `Gemini Documentation`_.\n\n.. _Robinhood Documentation: Robinhood.rst\n.. _Gemini Documentation: gemini.rst\n.. _TDA Documentation: tda.rst\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python wrapper around the Robinhood API",
    "version": "3.0.6",
    "project_urls": {
        "Homepage": "https://github.com/jmfernandes/robin_stocks"
    },
    "split_keywords": [
        "robinhood",
        "robin stocks",
        "finance app",
        "stocks",
        "options",
        "trading",
        "investing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ac94ee7e993d9cdf79b72f44eab2b764783e9aafb33a9a089a0fb0a85ce0a24",
                "md5": "ba2f73c5e6506821d9b068ec0cec4441",
                "sha256": "ea0290134962fce60f17566bf52ac4d078835e917d68bdd82168ac27062d2916"
            },
            "downloads": -1,
            "filename": "robin_stocks-3.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ba2f73c5e6506821d9b068ec0cec4441",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 132991,
            "upload_time": "2023-08-07T02:54:17",
            "upload_time_iso_8601": "2023-08-07T02:54:17.380441Z",
            "url": "https://files.pythonhosted.org/packages/0a/c9/4ee7e993d9cdf79b72f44eab2b764783e9aafb33a9a089a0fb0a85ce0a24/robin_stocks-3.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c16383ea00b59ef19fffc3ff7d61259ec1d4a512ac4f4bc70155b128f97cb5da",
                "md5": "8780200475b7c824e926d65f3e32410b",
                "sha256": "3a2ad4b3b5183f70529d8b7e2609accd0a719a4166a1e2cd72932e5de1cf8dc6"
            },
            "downloads": -1,
            "filename": "robin_stocks-3.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "8780200475b7c824e926d65f3e32410b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 66777,
            "upload_time": "2023-08-07T02:54:19",
            "upload_time_iso_8601": "2023-08-07T02:54:19.224435Z",
            "url": "https://files.pythonhosted.org/packages/c1/63/83ea00b59ef19fffc3ff7d61259ec1d4a512ac4f4bc70155b128f97cb5da/robin_stocks-3.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-07 02:54:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jmfernandes",
    "github_project": "robin_stocks",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "robin-stocks"
}
        
Elapsed time: 0.11301s