psemdel / py-trading-bot

Trading-bot in python using django, vertorbt lib and interactive-brokers
MIT License
141 stars 34 forks source link

Currency conversion issue #33

Closed psemdel closed 10 months ago

psemdel commented 11 months ago

I introduced a function to handle currency conversion. Source: https://ib-insync.readthedocs.io/recipes.html#minimum-price-increments https://ibkrcampus.com/ibkr-quant-news/an-introduction-to-tws-api-with-jupyter-notebooks/

But somehow, the IB API returns me "nan" when trying to retrieve the price. No idea if the problem is on my side (authorization) or on IB side (the API to Idealpro is down).