Forums

fxcmpy 'Can not connect to FXCM Server' Error

Hi,

I'm trying to connect to the FXCM API via the Python module fxcmpy. After running:

import fxcmpy
TOKEN  = 'hidden'
con = fxcmpy.fxcmpy(access_token=TOKEN, log_level='error', server='demo', log_file='log.txt')

I get the error

ServerError: Can not connect to FXCM Server.

The most recent version of fxcmpy is installed (and its requirement of socketio).

The code works on my own machine so the issue can only be with pythonanywhere.

Any help would be appreciated! Thanks.

Do you get any extra data? A traceback of some kind?