Closed alekna closed 7 years ago
Native data types seems to be broken in 3.0.12. It is returning str instead of float.
3.0.12
str
float
Sample code:
for msg_type, msg in response.parts(): if msg.type == 'PRICE': print('Bid {}\tAsk {}'.format( type(msg.bids[0].price), type(msg.asks[0].price), ))
Returns:
Bid <class 'str'> Ask <class 'str'> Bid <class 'str'> Ask <class 'str'>
Used to return float in 3.0.11
3.0.11
Just leave it as it is. I'll cast data myself. After some thinking process it doesn't seem such a bad idea to me anymore.
Native data types seems to be broken in
3.0.12
. It is returningstr
instead offloat
.Sample code:
Returns:
Used to return
float
in3.0.11