@@ -15,14 +15,14 @@ cdef void trade_default_listener(int event_type,
1515 dxf_const_string_t symbol_name,
1616 const dxf_event_data_t* data,
1717 int data_count, void * user_data) nogil:
18- cdef dxf_trade_t* trades = < dxf_trade_t* > data
18+ cdef dxf_trade_t* trades = < dxf_trade_t* > data
1919 with gil:
2020 py_data = < object > user_data
2121
2222 for i in range (data_count):
2323 py_data.safe_append([unicode_from_dxf_const_string_t(symbol_name),
2424 trades[i].price,
25- trades[i].exchange_code,
25+ unicode_from_dxf_const_string_t( & trades[i].exchange_code) ,
2626 trades[i].size,
2727 trades[i].tick,
2828 trades[i].change,
@@ -44,17 +44,17 @@ cdef void quote_default_listener(int event_type,
4444 for i in range (data_count):
4545 py_data.safe_append([unicode_from_dxf_const_string_t(symbol_name),
4646 quotes[i].bid_time,
47- quotes[i].bid_exchange_code,
47+ unicode_from_dxf_const_string_t( & quotes[i].bid_exchange_code) ,
4848 quotes[i].bid_price,
4949 quotes[i].bid_size,
5050 quotes[i].ask_time,
51- quotes[i].ask_exchange_code,
51+ unicode_from_dxf_const_string_t( & quotes[i].ask_exchange_code) ,
5252 quotes[i].ask_price,
5353 quotes[i].ask_size,
5454 < int > quotes[i].scope])
5555
5656SUMMARY_COLUMNS = [' Symbol' , ' DayId' , ' DayHighPrice' , ' DayLowPrice' , ' DayClosePrice' , ' PrevDayId' , ' PrevDayClosePrice' ,
57- ' PrevDayVolume' , ' OpenInterest' ]
57+ ' PrevDayVolume' , ' OpenInterest' , ' ExchangeCode ' ]
5858cdef void summary_default_listener(int event_type, dxf_const_string_t symbol_name,
5959 const dxf_event_data_t* data, int data_count, void * user_data) nogil:
6060 cdef dxf_summary_t* summary = < dxf_summary_t* > data
@@ -70,7 +70,8 @@ cdef void summary_default_listener(int event_type, dxf_const_string_t symbol_nam
7070 summary[i].prev_day_id,
7171 summary[i].prev_day_close_price,
7272 summary[i].prev_day_volume,
73- summary[i].open_interest])
73+ summary[i].open_interest,
74+ unicode_from_dxf_const_string_t(& summary[i].exchange_code)])
7475
7576PROFILE_COLUMNS = [' Symbol' , ' Beta' , ' EPS' , ' DivFreq' , ' ExdDivAmount' , ' ExdDivDate' , ' 52HighPrice' , ' 52LowPrice' ,
7677 ' Shares' , ' Description' , ' RawFlags' , ' StatusReason' ]
@@ -112,7 +113,7 @@ cdef void time_and_sale_default_listener(int event_type,
112113 tns[i].event_flags,
113114 tns[i].index,
114115 tns[i].time,
115- tns[i].exchange_code,
116+ unicode_from_dxf_const_string_t( & tns[i].exchange_code) ,
116117 tns[i].price,
117118 tns[i].size,
118119 tns[i].bid_price,
@@ -177,7 +178,7 @@ cdef void order_default_listener(int event_type,
177178 order[i].count,
178179 order[i].scope,
179180 order[i].side,
180- order[i].exchange_code,
181+ unicode_from_dxf_const_string_t( & order[i].exchange_code) ,
181182 unicode_from_dxf_const_string_t(order[i].market_maker),
182183 unicode_from_dxf_const_string_t(order[i].spread_symbol)])
183184
0 commit comments