@@ -52,6 +52,8 @@ cdef class TradingCommand(Command):
52
52
The commands ID.
53
53
ts_init : uint64_t
54
54
UNIX timestamp (nanoseconds) when the object was initialized.
55
+ params : dict[str, object], optional
56
+ Additional parameters for the command.
55
57
56
58
Warnings
57
59
--------
@@ -66,13 +68,15 @@ cdef class TradingCommand(Command):
66
68
InstrumentId instrument_id not None ,
67
69
UUID4 command_id not None ,
68
70
uint64_t ts_init ,
71
+ dict[str , object] params: dict | None = None ,
69
72
):
70
73
super ().__init__(command_id, ts_init)
71
74
72
75
self .client_id = client_id
73
76
self .trader_id = trader_id
74
77
self .strategy_id = strategy_id
75
78
self .instrument_id = instrument_id
79
+ self .params = params
76
80
77
81
78
82
cdef class SubmitOrder(TradingCommand):
@@ -95,6 +99,8 @@ cdef class SubmitOrder(TradingCommand):
95
99
The position ID for the command.
96
100
client_id : ClientId, optional
97
101
The execution client ID for the command.
102
+ params : dict[str, object], optional
103
+ Additional parameters for the command.
98
104
99
105
References
100
106
----------
@@ -110,6 +116,7 @@ cdef class SubmitOrder(TradingCommand):
110
116
uint64_t ts_init ,
111
117
PositionId position_id: PositionId | None = None ,
112
118
ClientId client_id = None ,
119
+ dict[str , object] params: dict | None = None ,
113
120
):
114
121
super ().__init__(
115
122
client_id = client_id,
@@ -118,6 +125,7 @@ cdef class SubmitOrder(TradingCommand):
118
125
instrument_id = order.instrument_id,
119
126
command_id = command_id,
120
127
ts_init = ts_init,
128
+ params = params,
121
129
)
122
130
123
131
self .order = order
@@ -229,6 +237,8 @@ cdef class SubmitOrderList(TradingCommand):
229
237
The position ID for the command.
230
238
client_id : ClientId, optional
231
239
The execution client ID for the command.
240
+ params : dict[str, object], optional
241
+ Additional parameters for the command.
232
242
233
243
References
234
244
----------
@@ -244,6 +254,7 @@ cdef class SubmitOrderList(TradingCommand):
244
254
uint64_t ts_init ,
245
255
PositionId position_id: PositionId | None = None ,
246
256
ClientId client_id = None ,
257
+ dict[str , object] params: dict | None = None ,
247
258
):
248
259
super ().__init__(
249
260
client_id = client_id,
@@ -252,6 +263,7 @@ cdef class SubmitOrderList(TradingCommand):
252
263
instrument_id = order_list.instrument_id,
253
264
command_id = command_id,
254
265
ts_init = ts_init,
266
+ params = params,
255
267
)
256
268
257
269
self .order_list = order_list
@@ -372,6 +384,8 @@ cdef class ModifyOrder(TradingCommand):
372
384
UNIX timestamp (nanoseconds) when the object was initialized.
373
385
client_id : ClientId, optional
374
386
The execution client ID for the command.
387
+ params : dict[str, object], optional
388
+ Additional parameters for the command.
375
389
376
390
References
377
391
----------
@@ -391,6 +405,7 @@ cdef class ModifyOrder(TradingCommand):
391
405
UUID4 command_id not None ,
392
406
uint64_t ts_init ,
393
407
ClientId client_id = None ,
408
+ dict[str , object] params: dict | None = None ,
394
409
):
395
410
super ().__init__(
396
411
client_id = client_id,
@@ -399,6 +414,7 @@ cdef class ModifyOrder(TradingCommand):
399
414
instrument_id = instrument_id,
400
415
command_id = command_id,
401
416
ts_init = ts_init,
417
+ params = params,
402
418
)
403
419
404
420
self .client_order_id = client_order_id
@@ -526,6 +542,8 @@ cdef class CancelOrder(TradingCommand):
526
542
UNIX timestamp (nanoseconds) when the object was initialized.
527
543
client_id : ClientId, optional
528
544
The execution client ID for the command.
545
+ params : dict[str, object], optional
546
+ Additional parameters for the command.
529
547
530
548
References
531
549
----------
@@ -542,6 +560,7 @@ cdef class CancelOrder(TradingCommand):
542
560
UUID4 command_id not None ,
543
561
uint64_t ts_init ,
544
562
ClientId client_id = None ,
563
+ dict[str , object] params: dict | None = None ,
545
564
):
546
565
if client_id is None :
547
566
client_id = ClientId(instrument_id.venue.value)
@@ -552,6 +571,7 @@ cdef class CancelOrder(TradingCommand):
552
571
instrument_id = instrument_id,
553
572
command_id = command_id,
554
573
ts_init = ts_init,
574
+ params = params,
555
575
)
556
576
557
577
self .client_order_id = client_order_id
@@ -659,6 +679,8 @@ cdef class CancelAllOrders(TradingCommand):
659
679
UNIX timestamp (nanoseconds) when the object was initialized.
660
680
client_id : ClientId, optional
661
681
The execution client ID for the command.
682
+ params : dict[str, object], optional
683
+ Additional parameters for the command.
662
684
"""
663
685
664
686
def __init__ (
@@ -670,6 +692,7 @@ cdef class CancelAllOrders(TradingCommand):
670
692
UUID4 command_id not None ,
671
693
uint64_t ts_init ,
672
694
ClientId client_id = None ,
695
+ dict[str , object] params: dict | None = None ,
673
696
):
674
697
super ().__init__(
675
698
client_id = client_id,
@@ -678,6 +701,7 @@ cdef class CancelAllOrders(TradingCommand):
678
701
instrument_id = instrument_id,
679
702
command_id = command_id,
680
703
ts_init = ts_init,
704
+ params = params,
681
705
)
682
706
683
707
self .order_side = order_side
@@ -779,6 +803,8 @@ cdef class BatchCancelOrders(TradingCommand):
779
803
UNIX timestamp (nanoseconds) when the object was initialized.
780
804
client_id : ClientId, optional
781
805
The execution client ID for the command.
806
+ params : dict[str, object], optional
807
+ Additional parameters for the command.
782
808
783
809
Raises
784
810
------
@@ -797,6 +823,7 @@ cdef class BatchCancelOrders(TradingCommand):
797
823
UUID4 command_id not None ,
798
824
uint64_t ts_init ,
799
825
ClientId client_id = None ,
826
+ dict[str , object] params: dict | None = None ,
800
827
):
801
828
Condition.not_empty(cancels, " cancels" )
802
829
Condition.list_type(cancels, CancelOrder, " cancels" )
@@ -807,6 +834,7 @@ cdef class BatchCancelOrders(TradingCommand):
807
834
instrument_id = instrument_id,
808
835
command_id = command_id,
809
836
ts_init = ts_init,
837
+ params = params,
810
838
)
811
839
812
840
self .cancels = cancels
@@ -910,6 +938,8 @@ cdef class QueryOrder(TradingCommand):
910
938
UNIX timestamp (nanoseconds) when the object was initialized.
911
939
client_id : ClientId, optional
912
940
The execution client ID for the command.
941
+ params : dict[str, object], optional
942
+ Additional parameters for the command.
913
943
"""
914
944
915
945
def __init__ (
@@ -922,6 +952,7 @@ cdef class QueryOrder(TradingCommand):
922
952
UUID4 command_id not None ,
923
953
uint64_t ts_init ,
924
954
ClientId client_id = None ,
955
+ dict[str , object] params: dict | None = None ,
925
956
):
926
957
if client_id is None :
927
958
client_id = ClientId(instrument_id.venue.value)
@@ -932,6 +963,7 @@ cdef class QueryOrder(TradingCommand):
932
963
instrument_id = instrument_id,
933
964
command_id = command_id,
934
965
ts_init = ts_init,
966
+ params = params,
935
967
)
936
968
937
969
self .client_order_id = client_order_id
0 commit comments