QuantConnect / Lean.Brokerages.InteractiveBrokers

InteractiveBrokers Brokerage Plugin
Apache License 2.0
31 stars 20 forks source link

Adds Mapping to ETH Futures #107

Closed AlexCatarino closed 5 months ago

AlexCatarino commented 5 months ago

Description

ETHUSDRR represents CME ETH: https://www.interactivebrokers.com/en/trading/margin-futures-fops.php

Fixes GetContractMultiplier GetContractMultiplier was rounding the contract multiplier incorrectly, leading to an unsuccessful contract details request. E.g. LBR multiplier is 27.5 and was converted to "28" instead of "27.5". Instead of rounding all multipliers above 1, we will only round them if the decimal part is zero.

Tested locally

Motivation and Context

Missing mappings. Bug fixing.

Types of changes

Checklist: