diff --git a/ibkr/option_order.py b/ibkr/option_order.py new file mode 100644 index 0000000..a832ddc --- /dev/null +++ b/ibkr/option_order.py @@ -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) \ No newline at end of file