@@ -31,7 +31,7 @@ cdef void trade_default_listener(int event_type,
31
31
events[i] = TradeTuple(symbol = unicode_from_dxf_const_string_t(symbol_name),
32
32
sequence = trades[i].sequence,
33
33
price = trades[i].price,
34
- exchange_code = unicode_from_dxf_const_string_t(& trades[i].exchange_code),
34
+ exchange_code = unicode_from_dxf_const_string_t(& trades[i].exchange_code, size = 1 ),
35
35
size = trades[i].size,
36
36
tick = trades[i].tick,
37
37
change = trades[i].change,
@@ -66,11 +66,11 @@ cdef void quote_default_listener(int event_type,
66
66
time = quotes[i].time,
67
67
time_nanos = quotes[i].time_nanos,
68
68
bid_time = quotes[i].bid_time,
69
- bid_exchange_code = unicode_from_dxf_const_string_t(& quotes[i].bid_exchange_code),
69
+ bid_exchange_code = unicode_from_dxf_const_string_t(& quotes[i].bid_exchange_code, size = 1 ),
70
70
bid_price = quotes[i].bid_price,
71
71
bid_size = quotes[i].bid_size,
72
72
ask_time = quotes[i].ask_time,
73
- ask_exchange_code = unicode_from_dxf_const_string_t(& quotes[i].ask_exchange_code),
73
+ ask_exchange_code = unicode_from_dxf_const_string_t(& quotes[i].ask_exchange_code, size = 1 ),
74
74
ask_price = quotes[i].ask_price,
75
75
ask_size = quotes[i].ask_size,
76
76
scope = < int > quotes[i].scope)
@@ -102,7 +102,7 @@ cdef void summary_default_listener(int event_type, dxf_const_string_t symbol_nam
102
102
prev_day_volume = summary[i].prev_day_volume,
103
103
open_interest = summary[i].open_interest,
104
104
raw_flags = summary[i].raw_flags,
105
- exchange_code = unicode_from_dxf_const_string_t(& summary[i].exchange_code),
105
+ exchange_code = unicode_from_dxf_const_string_t(& summary[i].exchange_code, size = 1 ),
106
106
day_close_price_type = summary[i].day_close_price_type,
107
107
prev_day_close_price_type = summary[i].prev_day_close_price_type,
108
108
scope = summary[i].scope)
@@ -166,7 +166,7 @@ cdef void time_and_sale_default_listener(int event_type,
166
166
event_flags = tns[i].event_flags,
167
167
index = tns[i].index,
168
168
time = tns[i].time,
169
- exchange_code = unicode_from_dxf_const_string_t(& tns[i].exchange_code),
169
+ exchange_code = unicode_from_dxf_const_string_t(& tns[i].exchange_code, size = 1 ),
170
170
price = tns[i].price,
171
171
size = tns[i].size,
172
172
bid_price = tns[i].bid_price,
0 commit comments