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

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!

主站蜘蛛池模板: 河北省| 芜湖市| 都江堰市| 皮山县| 康马县| 寿光市| 化德县| 阿合奇县| 巴东县| 勃利县| 于田县| 隆安县| 旌德县| 丹寨县| 民权县| 清镇市| 秀山| 辉县市| 都安| 曲阳县| 高淳县| 临澧县| 贺州市| 澄迈县| 铜川市| 华阴市| 清丰县| 滕州市| 鄂州市| 九龙县| 台东县| 新晃| 图木舒克市| 涟水县| 台中市| 洛南县| 威海市| 修武县| 固阳县| 商南县| 卫辉市|