Skip to main content

Module contracts

Module contracts 

Source
Expand description

Contract parsing utilities for Interactive Brokers adapter.

Structs§

ConfiguredContract
A configured IB contract with optional per-contract chain-building settings.

Functions§

contract_to_json_value
Convert an IB contract into JSON metadata suitable for instrument info["contract"].
contract_to_params
parse_configured_contract_from_json
Parse a configured IB contract with strict field and enum validation.
parse_contract_from_json
Parse IB contract from JSON dictionary.
parse_contracts_from_json_array
Parse multiple IB contracts from JSON array.