发布

  • 17206 546afd2a61

    Async orders in execution models (#8872)

    frostbyte_neo 发布于 2025-07-21 17:11:03 +00:00 | 414 次提交 在此版本后已推送到 master

    • Changed default async to true and passed target.Tag

    • Make execution models place orders asynchronously if specified

    • Add unit tests

    • Execution model default to asynchronous orders.

    Also, minor fixes for tickets remaining fill quantity potential race conditions

    • Add SecurityHolding.UnrealizedQuantity property

    It gets the holding quantity the security will have once all open orders are filled.
    Added for thread safety reasons when execution models place asynchronous orders and need to calculate the actual quantity needed to reach the target of there are open orders

    • Some cleanup

    • Adjust projected holdings quantity on splits

    • Minor fix

    • More changes and cleanup

    • Minor fix

    • Improvements for thread safety

    • Add IOrderProvider.GetProjectedHoldings to get projected holdings atomically

    • Minor unit tests fix

    • Add ProjectedHoldings DTO class

    • Address peer review


    Co-authored-by: arthiondaena arthiondaena@gmail.com

    下载附件