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

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!

主站蜘蛛池模板: 德兴市| 长乐市| 松桃| 察哈| 木里| 石城县| 永福县| 安丘市| 伊川县| 晋江市| 马关县| 扬中市| 安庆市| 黎川县| 郑州市| 揭东县| 宕昌县| 宾川县| 大埔县| 钟山县| 双流县| 泸水县| 北流市| 蓬安县| 荥经县| 大竹县| 崇州市| 沂南县| 青岛市| 东山县| 维西| 枞阳县| 怀仁县| 汉中市| 舞阳县| 德化县| 师宗县| 威远县| 朔州市| 柳州市| 肇东市|