Files
Alexandre Catarino da1bade3fa Add Interactive Brokers KRX future fees (#9655)
KOSPI 200 (KM) futures were added in #9585, but the Interactive Brokers
fee model had no entry for Market.KRX, so its future fee lookup threw
'unexpected future Market krx'. The transaction handler surfaced it as
'Error executing margin models' and invalidated the order before it
reached the brokerage, making every KRX future order fail regardless of
the account permissions or the market state.

IB charges Korea Exchange futures a flat percentage of the trade value
that already includes the exchange, regulatory, clearing and carrying
fees, unlike the per contract fees of the other supported markets, so
the fee is computed from the security price and its contract multiplier
and returned in the contract quote currency.

Also add the KRW currency string and its display symbol.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-05 10:59:29 -03:00
..
2026-06-26 12:29:03 -05:00
2024-07-10 14:17:27 -03:00
2024-01-05 16:57:19 -03:00

QuantConnect Testing

Before starting any testing, follow the installation instructions to get LEAN running C# algorithms in your machine. For any Python related tests please ensure you have followed the setup as described here.

If the above installation, build, and initial run was successful than we can move forward to testing.

Visual Studio:

Locating Tests

  • Open Visual Studios
  • Open Test Explorer ("Test" > "Test Explorer")
  • The list should populate itself as it reads all the tests it found during the build process. If not, press "Run All Tests" and let VS find all of the tests.
  • From here select the tests you would like to run and begin running them.

Failed Test Logs

  • On a failed test, check the test for information by clicking on the desired test and selecting "Open Additional Output"
  • This will show the stack trace and where the code failed to meet the testing requirements.

Common Problems

Having .NetFramework issues with testing?

Missing dependencies for Python Algorithm?

  • Use pip or conda to install the module.