All Projects → neka-nat → python-forexconnect

neka-nat / python-forexconnect

Licence: other
Python binding of forexconnect api

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
CMake
9771 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to python-forexconnect

Sequence-to-Sequence-Learning-of-Financial-Time-Series-in-Algorithmic-Trading
My bachelor's thesis—analyzing the application of LSTM-based RNNs on financial markets. 🤓
Stars: ✭ 64 (+93.94%)
Mutual labels:  forex-trading
MT5-TradingToolCrypto
All the tradingtools: crypto integration to metatrader including cryptobridgepro, crypto charts, paymentbot, indicators, robots are located here. Just download the zip folder, drag and drop into Metatrader 5 directory
Stars: ✭ 70 (+112.12%)
Mutual labels:  forex-trading
xapi-node
xStation5 Trading API for NodeJS/JS
Stars: ✭ 36 (+9.09%)
Mutual labels:  forex-trading
ForEx
Using ML to create a ForEx trader to invest my personal finances to get rid of student debt
Stars: ✭ 17 (-48.48%)
Mutual labels:  forex-trading
hurtrade
An Open Source Forex Trading Platform
Stars: ✭ 22 (-33.33%)
Mutual labels:  forex-trading
fhub
Python client for Finnhub API
Stars: ✭ 31 (-6.06%)
Mutual labels:  forex-trading
binaryapi
Binary.com & Deriv.com API for Python
Stars: ✭ 32 (-3.03%)
Mutual labels:  forex-trading
ROandaAPI
R Code API for Forex Trading with OANDA Broker
Stars: ✭ 22 (-33.33%)
Mutual labels:  forex-trading
oanda api
A ruby client for the Oanda REST API.
Stars: ✭ 35 (+6.06%)
Mutual labels:  forex-trading
Forex-and-Stock-Python-Pattern-Recognizer
A machine learning program that is able to recognize patterns inside Forex or stock data
Stars: ✭ 134 (+306.06%)
Mutual labels:  forex-trading
Median-and-Turbo-Renko-indicator-bundle
MQL5 header file for 'Median and Turbo renko indicator bundle' available for MT5 via MQL5 Market. The file lets you easily create a Renko EA in MT5 using the Median Renko indicator.
Stars: ✭ 68 (+106.06%)
Mutual labels:  forex-trading
robinhood.tools
📈🤑💰 Advanced trading tools and resources for Robinhood Web.
Stars: ✭ 27 (-18.18%)
Mutual labels:  forex-trading
Metatrader
Expert advisors, scripts, indicators and code libraries for Metatrader.
Stars: ✭ 99 (+200%)
Mutual labels:  forex-trading

python-forexconnect

https://travis-ci.org/neka-nat/python-forexconnect.svg?branch=master

About

This library is a Python binding of Forexconnect API using boost.python.

Build

First, install the required packages.

$ sudo apt-get install build-essential cmake libboost-log-dev libboost-date-time-dev libboost-python-dev

And then, download "ForexConnectAPI-1.4.1" from http://www.fxcodebase.com/wiki/index.php/Download and set environment "FOREXCONNECT_ROOT" which is the path ForexConnectAPI installed.

$ wget http://fxcodebase.com/bin/forexconnect/1.4.1/ForexConnectAPI-1.4.1-Linux-x86_64.tar.gz

$ tar xvf ForexConnectAPI-1.4.1-Linux-x86_64.tar.gz

$ export FOREXCONNECT_ROOT=$(pwd)/ForexConnectAPI-1.4.1-Linux-x86_64

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/ForexConnectAPI-1.4.1-Linux-x86_64/lib

Next, clone this repository.

$ git clone https://github.com/neka-nat/python-forexconnect.git

Build and install.

$ cd python-forexconnect

$ mkdir build

$ cd build

$ cmake .. -DDEFAULT_FOREX_URL="http://<Your forexconnect URL>"

$ make install

Usage

This tutorial is simple trading using python-forexconnect. First, give FXCM account username, password and type ("Real" or "Demo") to login. Next, send query to open position and get the position list which you have. Finally, close the opened position and logout.

>> import forexconnect
>> cl = forexconnect.ForexConnectClient("usrname", "pass", "Real")
>> cl.open_position("EUR/JPY", forexconnect.BUY, 1)
>> ti = cl.get_trades()
>> cl.close_position(ti[0].trade_id)
>> cl.logout()

Requirements

  • boost 1.54
  • ForexConnectAPI 1.4.1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].