-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDTCProtocol.GPBV3.proto
1488 lines (1194 loc) · 35.4 KB
/
DTCProtocol.GPBV3.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
syntax = "proto3";
package DTC_PB;
//============================================================================
// DTC protocol version
enum DTCVersion
{
DTC_VERSION_UNSET = 0;
CURRENT_VERSION = 8;
}
//============================================================================
// All messages are preceded by the following 4-byte little-endian binary
// header on the wire:
//
// uint16 Size; // size of the entire message including this 4-byte header
// uint16 Type; // DTC message type - see DTCProtocol.h
//
//
// Note: DateTime fields have three different types based on the field type:
//
// * sfixed64 - standard UNIX Date-Time
// * sfixed32 - 4-byte UNIX Date-Time value used in messages where compactness is an important consideration. Or where only the Date is needed.
// * double - UNIX Date-Time value with fractional portion for milliseconds
//
//============================================================================
//----Message types----
enum DTCMessageType
{
MESSAGE_TYPE_UNSET = 0;
// Authentication and connection monitoring
LOGON_REQUEST = 1;
LOGON_RESPONSE = 2;
HEARTBEAT = 3;
LOGOFF = 5;
ENCODING_REQUEST = 6;
ENCODING_RESPONSE = 7;
// Market data
MARKET_DATA_REQUEST = 101;
MARKET_DATA_REJECT = 103;
MARKET_DATA_SNAPSHOT = 104;
MARKET_DATA_SNAPSHOT_INT = 125;
MARKET_DATA_UPDATE_TRADE = 107;
MARKET_DATA_UPDATE_TRADE_COMPACT = 112;
MARKET_DATA_UPDATE_TRADE_INT = 126;
MARKET_DATA_UPDATE_LAST_TRADE_SNAPSHOT = 134;
MARKET_DATA_UPDATE_BID_ASK = 108;
MARKET_DATA_UPDATE_BID_ASK_COMPACT = 117;
MARKET_DATA_UPDATE_BID_ASK_INT = 127;
MARKET_DATA_UPDATE_SESSION_OPEN = 120;
MARKET_DATA_UPDATE_SESSION_OPEN_INT = 128;
MARKET_DATA_UPDATE_SESSION_HIGH = 114;
MARKET_DATA_UPDATE_SESSION_HIGH_INT = 129;
MARKET_DATA_UPDATE_SESSION_LOW = 115;
MARKET_DATA_UPDATE_SESSION_LOW_INT = 130;
MARKET_DATA_UPDATE_SESSION_VOLUME = 113;
MARKET_DATA_UPDATE_OPEN_INTEREST = 124;
MARKET_DATA_UPDATE_SESSION_SETTLEMENT = 119;
MARKET_DATA_UPDATE_SESSION_SETTLEMENT_INT = 131;
MARKET_DATA_UPDATE_SESSION_NUM_TRADES = 135;
MARKET_DATA_UPDATE_TRADING_SESSION_DATE = 136;
MARKET_DEPTH_REQUEST = 102;
MARKET_DEPTH_REJECT = 121;
MARKET_DEPTH_SNAPSHOT_LEVEL = 122;
MARKET_DEPTH_SNAPSHOT_LEVEL_INT = 132;
MARKET_DEPTH_UPDATE_LEVEL = 106;
MARKET_DEPTH_UPDATE_LEVEL_COMPACT = 118;
MARKET_DEPTH_UPDATE_LEVEL_INT = 133;
MARKET_DEPTH_FULL_UPDATE_10 = 123;
MARKET_DEPTH_FULL_UPDATE_20 = 105;
MARKET_DATA_FEED_STATUS = 100;
MARKET_DATA_FEED_SYMBOL_STATUS = 116;
// Order entry and modification
SUBMIT_NEW_SINGLE_ORDER = 208;
SUBMIT_NEW_SINGLE_ORDER_INT = 206;
SUBMIT_NEW_OCO_ORDER = 201;
SUBMIT_NEW_OCO_ORDER_INT = 207;
CANCEL_ORDER = 203;
CANCEL_REPLACE_ORDER = 204;
CANCEL_REPLACE_ORDER_INT = 205;
// Trading related
OPEN_ORDERS_REQUEST = 300;
OPEN_ORDERS_REJECT = 302;
ORDER_UPDATE = 301;
HISTORICAL_ORDER_FILLS_REQUEST = 303;
HISTORICAL_ORDER_FILL_RESPONSE = 304;
HISTORICAL_ORDER_FILLS_REJECT = 308;
CURRENT_POSITIONS_REQUEST = 305;
CURRENT_POSITIONS_REJECT = 307;
POSITION_UPDATE = 306;
// Account list
TRADE_ACCOUNTS_REQUEST = 400;
TRADE_ACCOUNT_RESPONSE = 401;
// Symbol discovery and security definitions
EXCHANGE_LIST_REQUEST = 500;
EXCHANGE_LIST_RESPONSE = 501;
SYMBOLS_FOR_EXCHANGE_REQUEST = 502;
UNDERLYING_SYMBOLS_FOR_EXCHANGE_REQUEST = 503;
SYMBOLS_FOR_UNDERLYING_REQUEST = 504;
SECURITY_DEFINITION_FOR_SYMBOL_REQUEST = 506;
SECURITY_DEFINITION_RESPONSE = 507;
SYMBOL_SEARCH_REQUEST = 508;
SECURITY_DEFINITION_REJECT = 509;
// Account balance
ACCOUNT_BALANCE_REQUEST = 601;
ACCOUNT_BALANCE_REJECT = 602;
ACCOUNT_BALANCE_UPDATE = 600;
// Logging
USER_MESSAGE = 700;
GENERAL_LOG_MESSAGE = 701;
// Historical price data
HISTORICAL_PRICE_DATA_REQUEST= 800;
HISTORICAL_PRICE_DATA_RESPONSE_HEADER = 801;
HISTORICAL_PRICE_DATA_REJECT = 802;
HISTORICAL_PRICE_DATA_RECORD_RESPONSE = 803;
HISTORICAL_PRICE_DATA_TICK_RECORD_RESPONSE = 804;
HISTORICAL_PRICE_DATA_RECORD_RESPONSE_INT = 805;
HISTORICAL_PRICE_DATA_TICK_RECORD_RESPONSE_INT = 806;
}
//============================================================================
enum EncodingEnum
{
BINARY_ENCODING = 0;
BINARY_WITH_VARIABLE_LENGTH_STRINGS = 1;
JSON_ENCODING = 2;
JSON_COMPACT_ENCODING = 3;
PROTOCOL_BUFFERS = 4;
}
//============================================================================
enum LogonStatusEnum
{
LOGON_STATUS_UNSET = 0;
LOGON_SUCCESS = 1;
LOGON_ERROR = 2;
LOGON_ERROR_NO_RECONNECT = 3;
LOGON_RECONNECT_NEW_ADDRESS = 4;
}
//============================================================================
enum MessageSupportedEnum
{
MESSAGE_UNSUPPORTED = 0;
MESSAGE_SUPPORTED = 1;
}
//============================================================================
enum TradeModeEnum
{
TRADE_MODE_UNSET= 0;
TRADE_MODE_DEMO = 1;
TRADE_MODE_SIMULATED = 2;
TRADE_MODE_LIVE = 3;
}
//============================================================================
enum RequestActionEnum
{
REQUEST_ACTION_UNSET = 0;
SUBSCRIBE = 1;
UNSUBSCRIBE = 2;
SNAPSHOT = 3;
}
/*==========================================================================*/
enum UnbundledTradeIndicatorEnum
{
UNBUNDLED_TRADE_NONE = 0;
FIRST_SUB_TRADE_OF_UNBUNDLED_TRADE = 1;
LAST_SUB_TRADE_OF_UNBUNDLED_TRADE = 2;
};
//============================================================================
enum OrderStatusEnum
{
ORDER_STATUS_UNSPECIFIED = 0;
ORDER_STATUS_ORDER_SENT = 1;
ORDER_STATUS_PENDING_OPEN = 2;
ORDER_STATUS_PENDING_CHILD = 3;
ORDER_STATUS_OPEN = 4;
ORDER_STATUS_PENDING_CANCEL_REPLACE = 5;
ORDER_STATUS_PENDING_CANCEL = 6;
ORDER_STATUS_FILLED = 7;
ORDER_STATUS_CANCELED = 8;
ORDER_STATUS_REJECTED = 9;
ORDER_STATUS_PARTIALLY_FILLED = 10;
}
//============================================================================
enum OrderUpdateReasonEnum
{
ORDER_UPDATE_REASON_UNSET = 0;
OPEN_ORDERS_REQUEST_RESPONSE = 1;
NEW_ORDER_ACCEPTED = 2;
GENERAL_ORDER_UPDATE = 3;
ORDER_FILLED = 4;
ORDER_FILLED_PARTIALLY = 5;
ORDER_CANCELED = 6;
ORDER_CANCEL_REPLACE_COMPLETE = 7;
NEW_ORDER_REJECTED = 8;
ORDER_CANCEL_REJECTED = 9;
ORDER_CANCEL_REPLACE_REJECTED = 10;
}
//============================================================================
enum AtBidOrAskEnum
{
BID_ASK_UNSET = 0;
AT_BID = 1;
AT_ASK = 2;
}
//============================================================================
enum AtBidOrAskEnum8
{
BID_ASK_UNSET_8 = 0;
AT_BID_8 = 1;
AT_ASK_8 = 2;
}
//============================================================================
enum MarketDepthUpdateTypeEnum
{
DEPTH_UNSET = 0;
MARKET_DEPTH_INSERT_UPDATE_LEVEL = 1; // Insert or update depth at the given price level
MARKET_DEPTH_DELETE_LEVEL = 2; // Delete depth at the given price level
}
//============================================================================
enum OrderTypeEnum
{
ORDER_TYPE_UNSET = 0;
ORDER_TYPE_MARKET = 1;
ORDER_TYPE_LIMIT = 2;
ORDER_TYPE_STOP = 3;
ORDER_TYPE_STOP_LIMIT = 4;
ORDER_TYPE_MARKET_IF_TOUCHED = 5;
ORDER_TYPE_LIMIT_IF_TOUCHED = 6;
}
//============================================================================
enum TimeInForceEnum
{
TIF_UNSET = 0;
TIF_DAY = 1;
TIF_GOOD_TILL_CANCELED = 2;
TIF_GOOD_TILL_DATE_TIME = 3;
TIF_IMMEDIATE_OR_CANCEL = 4;
TIF_ALL_OR_NONE = 5;
TIF_FILL_OR_KILL = 6;
}
//============================================================================
enum BuySellEnum
{
BUY_SELL_UNSET = 0;
BUY = 1;
SELL = 2;
}
//============================================================================
enum OpenCloseTradeEnum
{
TRADE_UNSET = 0;
TRADE_OPEN = 1;
TRADE_CLOSE = 2;
}
//============================================================================
enum PartialFillHandlingEnum
{
PARTIAL_FILL_UNSET = 0;
PARTIAL_FILL_HANDLING_REDUCE_QUANTITY = 1;
PARTIAL_FILL_HANDLING_IMMEDIATE_CANCEL = 2;
}
//============================================================================
enum MarketDataFeedStatusEnum
{
MARKET_DATA_FEED_STATUS_UNSET = 0;
MARKET_DATA_FEED_UNAVAILABLE = 1;
MARKET_DATA_FEED_AVAILABLE = 2;
}
//============================================================================
enum PriceDisplayFormatEnum
{
PRICE_DISPLAY_FORMAT_DECIMAL_0 = 0;
PRICE_DISPLAY_FORMAT_DECIMAL_1 = 1;
PRICE_DISPLAY_FORMAT_DECIMAL_2 = 2;
PRICE_DISPLAY_FORMAT_DECIMAL_3 = 3;
PRICE_DISPLAY_FORMAT_DECIMAL_4 = 4;
PRICE_DISPLAY_FORMAT_DECIMAL_5 = 5;
PRICE_DISPLAY_FORMAT_DECIMAL_6 = 6;
PRICE_DISPLAY_FORMAT_DECIMAL_7 = 7;
PRICE_DISPLAY_FORMAT_DECIMAL_8 = 8;
PRICE_DISPLAY_FORMAT_DECIMAL_9 = 9;
PRICE_DISPLAY_FORMAT_DENOMINATOR_256 = 356;
PRICE_DISPLAY_FORMAT_DENOMINATOR_128 = 228;
PRICE_DISPLAY_FORMAT_DENOMINATOR_64 = 164;
PRICE_DISPLAY_FORMAT_DENOMINATOR_32_QUARTERS = 136;
PRICE_DISPLAY_FORMAT_DENOMINATOR_32_HALVES = 134;
PRICE_DISPLAY_FORMAT_DENOMINATOR_32 = 132;
PRICE_DISPLAY_FORMAT_DENOMINATOR_16 = 116;
PRICE_DISPLAY_FORMAT_DENOMINATOR_8 = 108;
PRICE_DISPLAY_FORMAT_DENOMINATOR_4 = 104;
PRICE_DISPLAY_FORMAT_DENOMINATOR_2 = 102;
PRICE_DISPLAY_FORMAT_UNSET = -1;
}
//============================================================================
enum SecurityTypeEnum
{
SECURITY_TYPE_UNSET = 0;
SECURITY_TYPE_FUTURE = 1;
SECURITY_TYPE_STOCK = 2;
SECURITY_TYPE_FOREX = 3;
SECURITY_TYPE_INDEX = 4;
SECURITY_TYPE_FUTURES_STRATEGY = 5;
SECURITY_TYPE_FUTURES_OPTION = 7;
SECURITY_TYPE_STOCK_OPTION = 6;
SECURITY_TYPE_INDEX_OPTION = 8;
SECURITY_TYPE_BOND = 9;
SECURITY_TYPE_MUTUAL_FUND = 10;
}
//============================================================================
enum PutCallEnum
{
PC_UNSET = 0;
PC_CALL = 1;
PC_PUT = 2;
}
//============================================================================
enum SearchTypeEnum
{
SEARCH_TYPE_UNSET = 0;
SEARCH_TYPE_BY_SYMBOL = 1;
SEARCH_TYPE_BY_DESCRIPTION = 2;
}
//============================================================================
enum HistoricalDataIntervalEnum
{
INTERVAL_TICK = 0;
INTERVAL_1_SECOND = 1;
INTERVAL_2_SECONDS = 2;
INTERVAL_4_SECONDS = 4;
INTERVAL_5_SECONDS = 5;
INTERVAL_10_SECONDS = 10;
INTERVAL_30_SECONDS = 30;
INTERVAL_1_MINUTE = 60;
INTERVAL_1_DAY = 86400;
INTERVAL_1_WEEK = 604800;
}
//============================================================================
enum HistoricalPriceDataRejectReasonCodeEnum
{
HPDR_UNSET = 0;
HPDR_UNABLE_TO_SERVE_DATA_RETRY_LATER = 1;
HPDR_UNABLE_TO_SERVE_DATA_DO_NOT_RETRY = 2;
HPDR_DATA_REQUEST_OUTSIDE_BOUNDS_OF_AVAILABLE_DATA = 3;
HPDR_GENERAL_REJECT_ERROR = 4;
}
//============================================================================
message EncodingRequest
{
int32 ProtocolVersion = 1;
EncodingEnum Encoding = 2;
string ProtocolType = 3;
}
//============================================================================
message EncodingResponse
{
int32 ProtocolVersion = 1;
EncodingEnum Encoding = 2;
string ProtocolType = 3;
}
//============================================================================
message LogonRequest
{
int32 ProtocolVersion = 1;
string Username = 2;
string Password = 3;
string GeneralTextData = 4;
int32 Integer_1 = 5;
int32 Integer_2 = 6;
int32 HeartbeatIntervalInSeconds = 7;
TradeModeEnum TradeMode = 8;
string TradeAccount = 9;
string HardwareIdentifier = 10;
string ClientName = 11;
}
//============================================================================
message LogonResponse
{
int32 ProtocolVersion = 1;
LogonStatusEnum Result = 2;
string ResultText = 3;
string ReconnectAddress = 4;
int32 Integer_1 = 5;
string ServerName = 6;
uint32 MarketDepthUpdatesBestBidAndAsk = 7;
uint32 TradingIsSupported = 8;
uint32 OCOOrdersSupported = 9;
uint32 OrderCancelReplaceSupported = 10;
string SymbolExchangeDelimiter = 11;
uint32 SecurityDefinitionsSupported = 12;
uint32 HistoricalPriceDataSupported = 13;
uint32 ResubscribeWhenMarketDataFeedAvailable = 14;
uint32 MarketDepthIsSupported = 15;
uint32 OneHistoricalPriceDataRequestPerConnection = 16;
uint32 BracketOrdersSupported = 17;
uint32 UseIntegerPriceOrderMessages = 18;
uint32 UsesMultiplePositionsPerSymbolAndTradeAccount = 19;
uint32 MarketDataSupported = 20;
}
//============================================================================
message Logoff
{
string Reason = 1;
uint32 DoNotReconnect = 2;
}
//============================================================================
message Heartbeat
{
uint32 NumDroppedMessages = 1;
sfixed64 CurrentDateTime = 2;
}
//============================================================================
message MarketDataFeedStatus
{
MarketDataFeedStatusEnum Status = 1;
}
//============================================================================
message MarketDataFeedSymbolStatus
{
uint32 SymbolID = 1;
MarketDataFeedStatusEnum Status = 2;
}
//============================================================================
message MarketDataRequest
{
RequestActionEnum RequestAction = 1;
uint32 SymbolID = 2;
string Symbol = 3;
string Exchange = 4;
}
//============================================================================
message MarketDepthRequest
{
RequestActionEnum RequestAction = 1;
uint32 SymbolID = 2;
string Symbol = 3;
string Exchange = 4;
int32 NumLevels = 5;
}
//============================================================================
message MarketDataReject
{
uint32 SymbolID = 1;
string RejectText = 2;
}
//============================================================================
message MarketDataSnapshot
{
uint32 SymbolID = 1;
double SessionSettlementPrice = 2;
double SessionOpenPrice = 3;
double SessionHighPrice = 4;
double SessionLowPrice = 5;
double SessionVolume = 6;
uint32 SessionNumTrades = 7;
uint32 OpenInterest = 8;
double BidPrice = 9;
double AskPrice = 10;
double AskQuantity = 11;
double BidQuantity = 12;
double LastTradePrice = 13;
double LastTradeVolume = 14;
double LastTradeDateTime = 15;
double BidAskDateTime = 16;
uint32 SessionSettlementDateTime = 17;
uint32 TradingSessionDate = 18;
}
//============================================================================
message MarketDataSnapshot_Int
{
uint32 SymbolID = 1;
int32 SessionSettlementPrice = 2;
int32 SessionOpenPrice = 3;
int32 SessionHighPrice = 4;
int32 SessionLowPrice = 5;
int32 SessionVolume = 6;
uint32 SessionNumTrades = 7;
uint32 OpenInterest = 8;
int32 BidPrice = 9;
int32 AskPrice = 10;
int32 AskQuantity = 11;
int32 BidQuantity = 12;
int32 LastTradePrice = 13;
int32 LastTradeVolume = 14;
double LastTradeDateTime = 15;
double BidAskDateTime = 16;
uint32 SessionSettlementDateTime = 17;
uint32 TradingSessionDate = 18;
}
//============================================================================
message DepthEntry
{
double Price = 1;
float Quantity = 12;
}
//============================================================================
message MarketDepthFullUpdate20
{
uint32 SymbolID = 1;
repeated DepthEntry BidDepth = 2;
repeated DepthEntry AskDepth = 3;
}
//============================================================================
message MarketDepthFullUpdate10
{
uint32 SymbolID = 1;
repeated DepthEntry BidDepth = 2;
repeated DepthEntry AskDepth = 3;
}
//============================================================================
message MarketDepthSnapshotLevel
{
uint32 SymbolID = 1;
AtBidOrAskEnum Side = 2;
double Price = 3;
double Quantity = 4;
uint32 Level = 5;
uint32 IsFirstMessageInBatch = 6;
uint32 IsLastMessageInBatch = 7;
double DateTime = 8;
uint32 NumOrders = 9;
}
//============================================================================
message MarketDepthSnapshotLevel_Int
{
uint32 SymbolID = 1;
AtBidOrAskEnum Side = 2;
int32 Price = 3;
int32 Quantity = 4;
uint32 Level = 5;
uint32 IsFirstMessageInBatch = 6;
uint32 IsLastMessageInBatch = 7;
double DateTime = 8;
uint32 NumOrders = 9;
}
//============================================================================
message MarketDepthUpdateLevel
{
uint32 SymbolID = 1;
AtBidOrAskEnum Side = 2;
double Price = 3;
double Quantity = 4;
MarketDepthUpdateTypeEnum UpdateType = 5;
double DateTime = 6;
uint32 NumOrders = 7;
}
//============================================================================
message MarketDepthUpdateLevel_Int
{
uint32 SymbolID = 1;
AtBidOrAskEnum Side = 2;
int32 Price = 3;
int32 Quantity = 4;
MarketDepthUpdateTypeEnum UpdateType = 5;
double DateTime = 6;
uint32 NumOrders = 7;
}
//============================================================================
message MarketDepthUpdateLevelCompact
{
uint32 SymbolID = 1;
AtBidOrAskEnum Side = 2;
float Price = 3;
float Quantity = 4;
MarketDepthUpdateTypeEnum UpdateType = 5;
uint32 DateTime = 6;
uint32 NumOrders = 7;
}
//============================================================================
message MarketDataUpdateSessionSettlement
{
uint32 SymbolID = 1;
double Price = 2;
uint32 DateTime = 3;
}
//============================================================================
message MarketDataUpdateSessionSettlement_Int
{
uint32 SymbolID = 1;
int32 Price = 2;
int32 DateTime = 3;
}
//============================================================================
message MarketDataUpdateSessionOpen
{
uint32 SymbolID = 1;
double Price = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateSessionOpen_Int
{
uint32 SymbolID = 1;
int32 Price = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateSessionNumTrades
{
uint32 SymbolID = 1;
int32 NumTrades = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateTradingSessionDate
{
uint32 SymbolID = 1;
uint32 Date = 2;
}
//============================================================================
message MarketDepthReject
{
uint32 SymbolID = 1;
string RejectText = 2;
}
//============================================================================
message MarketDataUpdateTrade
{
uint32 SymbolID = 1;
AtBidOrAskEnum AtBidOrAsk = 2;
double Price = 3;
double Volume = 4;
double DateTime = 5;
}
//============================================================================
message MarketDataUpdateTrade_Int
{
uint32 SymbolID = 1;
AtBidOrAskEnum AtBidOrAsk = 2;
int32 Price = 3;
int32 Volume = 4;
double DateTime = 5;
}
//============================================================================
message MarketDataUpdateTradeWithUnbundledIndicator
{
uint32 SymbolID = 1;
AtBidOrAskEnum8 AtBidOrAsk = 2;
UnbundledTradeIndicatorEnum UnbundledTradeIndicator = 3;
double Price = 4;
uint32 Volume = 5;
double DateTime = 6;
}
//============================================================================
message MarketDataUpdateBidAsk
{
uint32 SymbolID = 1;
double BidPrice = 2;
float BidQuantity = 3;
double AskPrice = 4;
float AskQuantity = 5;
sfixed32 DateTime = 6;
}
//============================================================================
message MarketDataUpdateBidAsk_Int
{
uint32 SymbolID = 1;
int32 BidPrice = 2;
int32 BidQuantity = 3;
int32 AskPrice = 4;
int32 AskQuantity = 5;
sfixed32 DateTime = 6;
}
//============================================================================
message MarketDataUpdateBidAskCompact
{
float BidPrice = 1;
float BidQuantity = 2;
float AskPrice = 3;
float AskQuantity = 4;
sfixed32 DateTime = 5;
uint32 SymbolID = 6;
}
//============================================================================
message MarketDataUpdateTradeCompact
{
float Price = 1;
float Volume = 2;
sfixed32 DateTime = 3;
uint32 SymbolID = 4;
AtBidOrAskEnum AtBidOrAsk = 5;
}
//============================================================================
message MarketDataUpdateSessionVolume
{
uint32 SymbolID = 1;
double Volume = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateOpenInterest
{
uint32 SymbolID = 1;
uint32 OpenInterest = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateSessionHigh
{
uint32 SymbolID = 1;
double Price = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateSessionHigh_Int
{
uint32 SymbolID = 1;
int32 Price = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateSessionLow
{
uint32 SymbolID = 1;
double Price = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateSessionLow_Int
{
uint32 SymbolID = 1;
int32 Price = 2;
uint32 TradingSessionDate = 3;
}
//============================================================================
message MarketDataUpdateLastTradeSnapshot
{
uint32 SymbolID = 1;
double LastTradePrice = 2;
double LastTradeVolume = 3;
double LastTradeDateTime = 4;
}
//============================================================================
message SubmitNewSingleOrder
{
string Symbol = 1;
string Exchange = 2;
string TradeAccount = 3;
string ClientOrderID = 4;
OrderTypeEnum OrderType = 5;
BuySellEnum BuySell = 6;
double Price1 = 7;
double Price2 = 8;
double Quantity = 9;
TimeInForceEnum TimeInForce = 10;
sfixed64 GoodTillDateTime = 11;
uint32 IsAutomatedOrder = 12;
uint32 IsParentOrder = 13;
string FreeFormText = 14;
OpenCloseTradeEnum OpenOrClose = 15;
}
//============================================================================
message SubmitNewSingleOrderInt
{
string Symbol = 1;
string Exchange = 2;
string TradeAccount = 3;
string ClientOrderID = 4;
OrderTypeEnum OrderType = 5;
BuySellEnum BuySell = 6;
int64 Price1 = 7;
int64 Price2 = 8;
float Divisor = 9;
int64 Quantity = 10;
TimeInForceEnum TimeInForce = 11;
sfixed64 GoodTillDateTime = 12;
uint32 IsAutomatedOrder = 13;
uint32 IsParentOrder = 14;
string FreeFormText = 15;
OpenCloseTradeEnum OpenOrClose = 16;
}
//============================================================================
message CancelReplaceOrder
{
string ServerOrderID = 1;
string ClientOrderID = 2;
double Price1 = 3;
double Price2 = 4;
double Quantity = 5;
uint32 Price1IsSet = 6;
uint32 Price2IsSet = 7;
TimeInForceEnum TimeInForce = 9;
uint64 GoodTillDateTime = 10;
uint32 UpdatePrice1OffsetToParent = 11;
}
//============================================================================
message CancelReplaceOrderInt
{
string ServerOrderID = 1;
string ClientOrderID = 2;
int64 Price1 = 3;
int64 Price2 = 4;
float Divisor = 5;
int64 Quantity = 6;
uint32 Price1IsSet = 7;
uint32 Price2IsSet = 8;
TimeInForceEnum TimeInForce = 10;
uint64 GoodTillDateTime = 11;
uint32 UpdatePrice1OffsetToParent = 12;
}
//============================================================================
message CancelOrder
{
string ServerOrderID = 1;
string ClientOrderID = 2;
}
//============================================================================
message SubmitNewOCOOrder
{
string Symbol = 1;
string Exchange = 2;
string ClientOrderID_1 = 3;
OrderTypeEnum OrderType_1 = 4;
BuySellEnum BuySell_1 = 5;
double Price1_1 = 6;
double Price2_1 = 7;
double Quantity_1 = 8;
string ClientOrderID_2 = 9;
OrderTypeEnum OrderType_2 = 10;
BuySellEnum BuySell_2 = 11;
double Price1_2 = 12;
double Price2_2 = 13;
double Quantity_2 = 14;
TimeInForceEnum TimeInForce = 15;
sfixed64 GoodTillDateTime = 16;
string TradeAccount = 17;
uint32 IsAutomatedOrder = 18;
string ParentTriggerClientOrderID = 19;
string FreeFormText = 20;
OpenCloseTradeEnum OpenOrClose = 21;
PartialFillHandlingEnum PartialFillHandling = 22;
}
//============================================================================
message SubmitNewOCOOrderInt
{
string Symbol = 1;
string Exchange = 2;
string ClientOrderID_1 = 3;
OrderTypeEnum OrderType_1 = 4;
BuySellEnum BuySell_1 = 5;
int64 Price1_1 = 6;
int64 Price2_1 = 7;