akapur / pyiqfeed

Python LIbrary for reading DTN's IQFeed
GNU General Public License v2.0
172 stars 109 forks source link

read_tick_direction Conversion Question #35

Closed bryaan closed 5 years ago

bryaan commented 5 years ago

I am getting the tick direction field as a string in my C# version, and I am wondering how python could convert a string to an int if the string is not an integer representation?

akapur commented 5 years ago

The code for thee function read_tick_direction in field_readers.py is fairly straightforward. It's 8 lines of code including comments.