{"repo":"MaxxRK/firstrade-api","free":true,"listed":false,"github":"https://github.com/MaxxRK/firstrade-api","clone":"git clone https://github.com/MaxxRK/firstrade-api.git","description":"A reverse engineered api to work with the Firstrade broker.","language":"Python","stars":131,"topics":["api","package","packages","python","stocks"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"firstrade-api A reverse-engineered python API to interact with the Firstrade Trading platform. This is not an official api! This api's functionality may change at any time. This api provides a means of buying and selling stocks through Firstrade. It uses the Session class from requests to get authorization cookies. The rest is done with reverse engineered requests to Firstrade's API. In order to use Fractional shares you must accept the agreement on the website before using it in this API. --- Contribution Please feel free to contribute to this project. If you find any bugs, please open an issue. Disclaimer I am not a financial advisor and not affiliated with Firstrade in any way. Use this tool at your own risk. I am not responsible for any losses or damages you may incur by using this project. This tool is provided as-is with no warranty. Setup Install using pypi: Quickstart The code in test.py will: - Login and print account info. - Get a quote for 'INTC' and print out the information - Place a dry run market order for 'INTC' on the first account in the account numbers list - Print out the order confirmation - Contains a cancel order example - Get OHLC data - Get an option Dates, Quotes, and Greeks - Place a dry run option order - List watchlists, create one, add a symbol to it then delete it --- Implemented Features - [x] Login (With all 2FA methods now supported!) - [x] Get Quotes - [x] Get OHLC (timestamp, open, high, low, close, volume) - [x] Get Account Data - [x] Plac","default_branch":null,"files":null,"tree":[],"storefront":"/r/MaxxRK","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MaxxRK/firstrade-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}