PDA

View Full Version : ForexConnect API with Python



aqaqayi
08-05-2016,
Hello,

I try to make an API application for the FXCM API but have issues to import
the CPP dlls for use in Python.
Do you have a Python example in how the CPP Dlls will be imported into
Python ?

arkeyuhejapej
08-08-2016,
Hi Frank,

1) If you want a quality API in Python, you can write your own wrapper:


for C++ there is boost.python: http://www.boost.org/doc/libs/1_38_0...doc/index.html (http://www.boost.org/doc/libs/1_38_0/libs/python/doc/index.html);
for C (you will need our C wrapper: win32 (http://fxcodebase.com/bin/forexconnect/1.2.2/ForexConnectAPI-1.2.2-win32-C.exe) or win64 (http://fxcodebase.com/bin/forexconnect/1.2.2/ForexConnectAPI-1.2.2-win64-COM.exe)): http://docs.python.org/2/extending/extending.html or SWIG http://www.swig.org/. SWIG is a C-wrapper generator.



2) Another variant. Here is an example of the user who uses Python through COM Dll: http://fxcodebase.com/code/viewtopic...&t=7611#p16973 (http://fxcodebase.com/code/viewtopic.php?f=37&t=7611#p16973)

If you know how to work through COM-wrapper, you can download it from here:

http://fxcodebase.com/bin/forexconne...-win32-COM.exe (http://fxcodebase.com/bin/forexconnect/1.2.2/ForexConnectAPI-1.2.2-win32-COM.exe)
http://fxcodebase.com/bin/forexconne...-win64-COM.exe (http://fxcodebase.com/bin/forexconnect/1.2.2/ForexConnectAPI-1.2.2-win64-COM.exe)

asonisgeyo
08-09-2016,
I've started open source project some time ago see link below. It's still not complete, but maybe someone could find the project useful.
It's boost.python C++ wrapper around FXCM's library, with test in Python.

atojihadahaca
08-09-2016,
Indeed very interesting Tomas,

I ve tried to install it but i cant find a way

awikuvakumije
08-10-2016,
There are just source codes freely available for compilation and/or customization, so no installation package (yet...).