itsjafer / schwab-api

A python library for placing trades on Charles Schwab
MIT License
201 stars 64 forks source link

OrderManagementSystem in cancel_order_v2() seems to take value 1 #60

Closed jawatech closed 2 months ago

jawatech commented 3 months ago

Hi, cancel_order_v2 doesn't work until I changed OrderManagementSystem to be 1. Does anyone have similar problem?

afkhudson commented 3 months ago

it should be whatever ordermanagementsystem the order you are trying to cancel is. I do orders_v2 to read it first

itsjafer commented 2 months ago

Hi @jawatech, I updated cancel_order_v2() to accept an argument to change the value of order_management_system (default 2) in v0.4.2