Skip to content

Invalid Orders being thrown #6

Description

@bl3e967

A bunch of orders are invalid with error code -7 (Rejected by broker).
This is most likely because the algorithm is buying assets without consideration of remaining cash.

Change from using MarketOrder method to SetHoldings method (example):
self.SetHoldings([PortfolioTarget("SPY", 0.8), PortfolioTarget("IBM", 0.2)])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

R&DRequires research and developmentbugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions