Learn how to setup Python connectivity with a broker, fetch financial instruments and get a quick hands-on at placing simple orders. Also, learn about querying margins and calculating brokerage and government taxes.
- Setting up Python connectivity with the Broker
- Querying a list of Instruments
- Fetching an instrument
- Querying a list of Exchanges
- Querying a list of Segments
- Variety Types, Product Types and Order Types
- Placing a simple REGULAR order
- Placing a simple BRACKET order
- Placing a simple INTRADAY order
- Placing a simple DELIVERY order
- Querying Margins and Funds
- Calculating the Brokerage charged
- Calculating the government taxes charged
[Click here to VIEW Chapter 2 Jupyter Notebook on nbviewer]
[Click here to RUN Chapter 2 Jupyter Notebook in the cloud using binder. No installation needed on your end.]
- Python 3.7+
- Additional Python Packages required for this chapter can be installed as follows -
$ source <virtualenv> # optional, if you use a virtualenv
$ cd <path-to-this-folder>
$ pip install -r requirements.txt