Skip to content

Commit 962413f

Browse files
committed
[EN-1450] exchange code for quote & summary corrected
1 parent 4ea17bf commit 962413f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dxfeed/core/listeners/listener.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ 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])
@@ -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

7576
PROFILE_COLUMNS = ['Symbol', 'Beta', 'EPS', 'DivFreq', 'ExdDivAmount', 'ExdDivDate', '52HighPrice', '52LowPrice',
7677
'Shares', 'Description', 'RawFlags', 'StatusReason']

0 commit comments

Comments
 (0)