trading-ig
trading-ig copied to clipboard
Exception: error.security.account-token-invalid
Greetings World!
I was testing my simple code:
buy = ig_service.create_open_position(epic='IX.D.DAX.DAILY.IP', direction='BUY') print(buy)
and the error appeared: Exception: error.security.account-token-invalid
My requests using ig_service.fetch_open_positions() and ig_service.fetch_accounts() worked fine so I don't think the token is the problem?
Or am I wrong gentlemen?
Any guidance is much appreciated.
Kind regards