xntltd / python-http-api

GNU General Public License v3.0
4 stars 7 forks source link

Problem with timestamp conversion on Windows #9

Open Iliamish opened 2 years ago

Iliamish commented 2 years ago

https://github.com/xntltd/python-http-api/blob/8a6cc08fd01b7337a476d178b432bc0b95854a51/src/xnt/models/http_jto.py#L77

api_client.get_ohlc(symbol='AAPL.NASDAQ', duration=3600) throw OSError: [Errno 22] Invalid argument on Windows

That exception are not catch on line 86 except ValueError: and program crashes.

Change to except (ValueError, OSError): fix problem

xntltd commented 2 years ago

Hello there, is issue still persist? If so please provide full traceback