Skip to content

ImmediateExecutionModel.py feature enhancement request #9231

@johnweak2904-boop

Description

@johnweak2904-boop

Expected Behavior

In live cash account, when rebalance the holdings (portfolio with 100% holding + 0% cash) including sell order and buy order. The order should be first execute the sell order and then buy order.

if execute not in that order, the broker will report not enough cash error

Actual Behavior

The order execution does not do sell order first, then buy order.

Potential Solution

Execute sell order first, upon completion, execute buy order

Checklist

  • [Y] I have completely filled out this template
  • [Y] I have confirmed that this issue exists on the current master branch
  • [Y] I have confirmed that this is not a duplicate issue by searching issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions