Skip to content

Commit 4ea17bf

Browse files
committed
[EN-1450] exchange code for trades corrected
1 parent 6bdc3c2 commit 4ea17bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dxfeed/core/listeners/listener.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

0 commit comments

Comments
 (0)