Skip to content

JoeButler99/PyFXCM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

PyFXCM aims to create a usable Python interface to the ForexConnect C++ API.

The plan is to model many of the available methods from the ForexConnect C++ API into small modular classes and make them available to Python code by using Boost::Python to compile into a Python module.

Requirements

  • libyaml development files (for the test config)

Installation

If your running an Ubuntu based version of Linux you should be able to collect and place the required files just by running ./ubuntu_setup.sh

For other systems, the required steps are shown below.

Example Installation

# Get all the include files
tar zxvf ForexConnectAPI-1.3.1-Linux-x86_64.tar.gz
cd ForexConnectAPI-1.3.1-Linux-x86_64/
cp -a include/* <ProjectDirectory>;/PyFXCM/include/
cp -a samples/cpp/sample_tools/include/* <ProjectDirectory>/PyFXCM/include/

# Build and copy the shared libraries

s cp -L lib/*.so ;/PyFXCM/lib/ cd samples/cpp/sample_tools/ ./fxbuild.sh cp lib/libsample_tools.so ;/PyFXCM/lib/

# Install the libyaml libraries
sudo apt-get install libyaml-dev

# Optional - But recommended
cd <ProjectDirectory>;/PyFXCM/lib/
sudo cp *.so /usr/lib

# Test build
make clean test

Configuration

  • If you want to run the tests, you'll need to copy the config/config.yaml.example to config/config.yaml. You are able to specify a demo account for both the required logins.

Todo

There are plenty of ways to help out, testing is always welcome

  • configure script (Or an overhaul to the build system)
  • Test for memory leaks - It's not yet been throw valgrind much.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published