MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / position

Method position

packages/ibkr/ref/samples/Python/Testbed/Program.py:676–681  ·  view source on GitHub ↗
(self, account: str, contract: Contract, position: Decimal,
                 avgCost: float)

Source from the content-addressed store, hash-verified

674 @iswrapper
675 # ! [position]
676 def position(self, account: str, contract: Contract, position: Decimal,
677 avgCost: float):
678 super().position(account, contract, position, avgCost)
679 print("Position.", "Account:", account, "Symbol:", contract.symbol, "SecType:",
680 contract.secType, "Currency:", contract.currency,
681 "Position:", decimalMaxString(position), "Avg cost:", floatMaxString(avgCost))
682 # ! [position]
683
684 @iswrapper

Callers

nothing calls this directly

Calls 3

decimalMaxStringFunction · 0.90
positionMethod · 0.65
floatMaxStringFunction · 0.50

Tested by

no test coverage detected