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

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!

主站蜘蛛池模板: 大同市| 湾仔区| 房产| 综艺| 民勤县| 福州市| 丹东市| 芒康县| 常山县| 桦甸市| 平凉市| 金乡县| 如东县| 卢龙县| 故城县| 西乌珠穆沁旗| 通城县| 游戏| 察隅县| 黔南| 平顶山市| 宁阳县| 刚察县| 长治县| 防城港市| 芦山县| 肇东市| 满洲里市| 松原市| 迁安市| 岢岚县| 瑞丽市| 枣阳市| 鹤壁市| 梁山县| 会理县| 铜鼓县| 凭祥市| 紫阳县| 禄劝| 浙江省|