Skip to content

_place_limit_order in order_services assumes all orders will be successful #1

@djflux

Description

@djflux

The order assignment linked below assumes that the order_response from Line 204 is always a success_response when this isn't always the case.

An error_response from a 'success': False could also result. A couple of responses could be (among others):

INSUFFICIENT_FUND
INVALID_LIMIT_PRICE_POST_ONLY

Modify _place_limit_order to take into account a non-successful order placement.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingupstream_prAn upstream PR has been submitted to resolve.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions