tg12 / FAIG

Fully Automated IG Trading
149 stars 59 forks source link

KeyError: 'CST' #32

Closed loziobrown closed 4 years ago

loziobrown commented 4 years ago

Hi, i've a problem in execution of the script.

python faig.py Traceback (most recent call last): File "faig.py", line 9, in api = API() File "/mnt/c/Users/brunettig/Git/FAIG/ig.py", line 27, in init d = super().session() File "/mnt/c/Users/brunettig/Git/FAIG/igclient.py", line 26, in wrap return f(*args, **kwargs) File "/mnt/c/Users/brunettig/Git/FAIG/igclient.py", line 73, in session self.auth[h] = headers_json[h] KeyError: 'CST'

tg12 commented 4 years ago

This is the most common error. It is a problem with your IG Index API key. Most common you are using a DEMO account key with a LIVE account or visa versa. For further reading please view.

https://labs.ig.com/

https://www.ig.com/uk/trading-platforms/trading-apis/how-to-use-ig-api#rest

https://labs.ig.com/faq