QuantConnect / Lean.Brokerages.InteractiveBrokers

InteractiveBrokers Brokerage Plugin
Apache License 2.0
27 stars 17 forks source link

Use combo order leg actual direction to compute fill price sign #58

Closed jhonabreul closed 1 year ago

jhonabreul commented 1 year ago

Description

When building an order fill event, the order leg actual direction (using both the group and the leg quantities) needed to be used in order to determine the fill quantity sign.

Related Issue

Depends on https://github.com/QuantConnect/Lean/pull/7066

Motivation and Context

Requires Documentation Change

How Has This Been Tested?

Unit tests, live deployments.

Types of changes

Checklist: