发布

  • 17865 c24860acd2

    Cache cross-zero unsupported-order-type set in brokerage models (#9551)

    frostbyte_neo 发布于 2026-06-19 20:37:45 +00:00 | 66 次提交 在此版本后已推送到 master

    TastytradeBrokerageModel and TradeStationBrokerageModel declared
    NotSupportedCrossZeroOrderTypes as an expression-bodied property, allocating a
    new constant HashSet on every CanSubmitOrder call (used per order in
    BrokerageExtensions.ValidateCrossZeroOrder). Make it a static readonly field,
    built once, matching the existing BrokerageExtensions.DefaultNotSupportedCrossZeroOrderTypes
    pattern. Set contents are unchanged, so cross-zero validation behavior is identical.

    Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

    下载附件