Forums

ig trading api 403 forbidden

hi guys, been using pythonanywhere (hacker account) for some weeks now for a small trading bot via the IG api (https://labs.ig.com/rest-trading-api-guide). Last few attempts to access the API I have received the following error. The bot works fine when I run the code elsewhere. Any ideas?

trading_ig.rest.IGException: HTTP error: 403 <HTML><HEAD> <TITLE>Access Denied</TITLE> </HEAD><BODY> <H1>Access Denied</H1>

You don't have permission to access "http://api.ig.com/gateway/deal/session" on this server.<P>

That's coming from the server that you tried to access and is indicating that you are not authenticated with it. That is not something we can help with.

ok - thx. appreciated.