Closed carterjfulcher closed 2 years ago
One solution to this problem is just to use the broker object directly retrieved from broker.orders()
. It seems PyAlly does not support cancelling or creating/fetching an order object by ID. Which is unfortunate if you store your orders by id instead of the object.
The http 500 is most likely transient. Please retry. As for the the cancelling by order id. It looks like that is the current code path. Can you please explain more, give a reference to code, or show what you are trying to do?
@carterjfulcher bump
@carterjfulcher bump
I am trying to cancel an order by ID.
I have setup the order to be cancelled as such:
I originally attempted to submit this by simply doing
broker.submit(cxl, preview=False)
, however this presented me with the following server error:Afterwards, I checked the preview and received:
Lastly, I also checked
str(cxl)
and got:I'm using v1.1.1 on Ubuntu. Does anyone have an ideas on this?