Skip to Content
Python Algorithmic Trading Cookbook
book

Python Algorithmic Trading Cookbook

by Pushpak Dagade
August 2020
Beginner to intermediate content levelBeginner to intermediate
542 pages
10h 50m
English
Packt Publishing
Content preview from Python Algorithmic Trading Cookbook
Placing Regular Orders on the Exchange

This chapter introduces various types of regular orders that can be placed on exchanges via the broker APIs. The recipes include code on placing 16 types of orders, querying their statuses, and exiting completed orders. These recipes will be a fundamental part of your algorithmic trading strategies. Understanding all of the types of orders and knowing which one to place for the given requirement is crucial for building a successful trading strategy.

Every order has multiple attributes, as described in the following list:

  • Order transaction type: This attribute simply defines whether the order is a BUY transaction or a SELL transaction. Possible values, obviously, can be one of BUY or SELL.
  • Order type ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for Algorithmic Trading Cookbook

Python for Algorithmic Trading Cookbook

Jason Strimpel
Python Cookbook, 3rd Edition

Python Cookbook, 3rd Edition

David Beazley, Brian K. Jones

Publisher Resources

ISBN: 9781838989354Supplemental Content