View Full Version : ForexConnect API with Python
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 ?
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)
benhamjonerugs
02-13-2017,
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.
Indeed very interesting Tomas,
I ve tried to install it but i cant find a way
bcashmaster89erugs
02-16-2017,
There are just source codes freely available for compilation and/or customization, so no installation package (yet...).
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.