execution
¤
Execution
¤
Execution(
id: str,
exchange: Exchange,
data: DataFeed,
size: float,
price: float,
at: float,
order_id: str | None = None,
order: Order | None = None,
position_id: str | None = None,
position: Position | None = None,
**kwargs
)
Bases: BaseTransaction
Execution
Source code in lettrade/exchange/execution.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
merge
¤
merge(other: Execution)
Merge to keep object handler but not overwrite for Strategy using when Strategy want to store object and object will be automatic update directly
Source code in lettrade/exchange/execution.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|