Add option order type

This commit is contained in:
moshferatu 2024-02-19 12:04:48 -08:00
parent 46ca62ac73
commit 6d41d7c9e4

7
ibkr/option_order.py Normal file
View File

@ -0,0 +1,7 @@
from ib_insync import Trade
class OptionOrder:
def __init__(self, trade_result: Trade):
self.limit_price = trade_result.order.lmtPrice
self.fill_price = abs(trade_result.orderStatus.avgFillPrice)