官术网_书友最值得收藏!

Stock Markets - Primer on Trading

When building algorithmic trading systems, it is essential to have an account open with a modern broker that provides APIs for placing and querying trades programmatically. This allows us to control the broking account, which is conventionally operated manually using the broker's website, using our Python script, which would be part of our larger algorithmic trading system. This chapter demonstrates various essential recipes that introduce the essential broker API calls needed for developing a complete algorithmic trading system.

This chapter covers the following recipes:

  • 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
  • Knowing other attributes supported by the broker
  • Placing a simple REGULAR order
  • Placing a simple BRACKET order
  • Placing a simple DELIVERY order
  • Placing a simple INTRADAY order
  • Querying margins and funds
  • Calculating the brokerage charged
  • Calculating the government taxes charged

Let's get started!

主站蜘蛛池模板: 灵川县| 平阴县| 鲁山县| 苏州市| 任丘市| 新田县| 冷水江市| 高雄县| 皋兰县| 白银市| 确山县| 凌源市| 六枝特区| 林州市| 雷山县| 磴口县| 海原县| 句容市| 临沧市| 屏边| 沅江市| 贡嘎县| 卢龙县| 新化县| 汤阴县| 南城县| 万全县| 富锦市| 汪清县| 金溪县| 津南区| 全椒县| 兴化市| 乌兰县| 黄龙县| 贵阳市| 湛江市| 长治县| 濮阳市| 磐安县| 呼伦贝尔市|