ig-python / trading-ig

A lightweight Python wrapper for the IG Markets API
https://trading-ig.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
308 stars 196 forks source link

expand_columns() returning nan instead of None. #278

Closed oliverpolden closed 1 year ago

oliverpolden commented 1 year ago

IG returns data with "None" e.g. limitLevel: None.

I've found that fetch_open_positions() now returns nan when a limitLevel comes in as None.

I've seen: na_action='ignore'. Changing that to na_action=None doesn't appear to fix it.

Strangely, other fields, trailingStep for example, do end up as None.

bug-or-feature commented 1 year ago

https://trading-ig.readthedocs.io/en/latest/faq.html#what-if-i-have-a-problem