Add option order type
This commit is contained in:
parent
46ca62ac73
commit
6d41d7c9e4
7
ibkr/option_order.py
Normal file
7
ibkr/option_order.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user