Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Chapter 2: Stock Markets: Primer on Trading

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.

List of Recipes in this chapter

  1. Setting up Python connectivity with the Broker
  2. Querying a list of Instruments
  3. Fetching an instrument
  4. Querying a list of Exchanges
  5. Querying a list of Segments
  6. Variety Types, Product Types and Order Types
  7. Placing a simple REGULAR order
  8. Placing a simple BRACKET order
  9. Placing a simple INTRADAY order
  10. Placing a simple DELIVERY order
  11. Querying Margins and Funds
  12. Calculating the Brokerage charged
  13. 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.]

Requirements

  • 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