Skip to content

Commit

Permalink
Roll back the reverse of strict symbology
Browse files Browse the repository at this point in the history
Signed-off-by: DracheShiki <[email protected]>
  • Loading branch information
DracheShiki committed Apr 23, 2024
1 parent 510ddb1 commit 7662cc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def ib_contract_to_instrument_id_strict_symbology(contract: IBContract) -> Instr
venue = "IBCMDTY"
else:
symbol = f"{contract.localSymbol}={contract.secType}"
venue = (contract.primaryExchange or contract.exchange).replace("/", ".")
venue = (contract.primaryExchange or contract.exchange).replace(".", "/")
return InstrumentId.from_str(f"{symbol}.{venue}")


Expand Down

0 comments on commit 7662cc4

Please sign in to comment.