{"id":17133617,"url":"https://github.com/neka-nat/python-forexconnect","last_synced_at":"2025-07-28T19:36:33.107Z","repository":{"id":75431742,"uuid":"44014879","full_name":"neka-nat/python-forexconnect","owner":"neka-nat","description":"Python binding of forexconnect api","archived":false,"fork":false,"pushed_at":"2018-02-15T15:00:29.000Z","size":3453,"stargazers_count":39,"open_issues_count":3,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T13:51:25.380Z","etag":null,"topics":["forex-trading","python-bindings"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neka-nat.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-10-10T14:57:23.000Z","updated_at":"2024-12-10T09:52:44.000Z","dependencies_parsed_at":"2023-06-06T11:46:09.115Z","dependency_job_id":null,"html_url":"https://github.com/neka-nat/python-forexconnect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neka-nat%2Fpython-forexconnect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neka-nat%2Fpython-forexconnect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neka-nat%2Fpython-forexconnect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neka-nat%2Fpython-forexconnect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neka-nat","download_url":"https://codeload.github.com/neka-nat/python-forexconnect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245003273,"owners_count":20545585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forex-trading","python-bindings"],"created_at":"2024-10-14T19:42:37.017Z","updated_at":"2025-03-22T18:33:24.183Z","avatar_url":"https://github.com/neka-nat.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"python-forexconnect\n===================\n\n.. image:: https://travis-ci.org/neka-nat/python-forexconnect.svg?branch=master\n    :target: https://travis-ci.org/neka-nat/python-forexconnect\n\nAbout\n------\nThis library is a Python binding of Forexconnect API\nusing boost.python.\n\nBuild\n-----\n\nFirst, install the required packages.\n\n    $ sudo apt-get install build-essential cmake libboost-log-dev libboost-date-time-dev libboost-python-dev\n\nAnd then, download \"ForexConnectAPI-1.4.1\" from http://www.fxcodebase.com/wiki/index.php/Download\nand set environment \"FOREXCONNECT_ROOT\" which is the path ForexConnectAPI installed.\n\n    $ wget http://fxcodebase.com/bin/forexconnect/1.4.1/ForexConnectAPI-1.4.1-Linux-x86_64.tar.gz\n\n    $ tar xvf ForexConnectAPI-1.4.1-Linux-x86_64.tar.gz\n\n    $ export FOREXCONNECT_ROOT=$(pwd)/ForexConnectAPI-1.4.1-Linux-x86_64\n\n    $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/ForexConnectAPI-1.4.1-Linux-x86_64/lib\n\nNext, clone this repository.\n\n    $ git clone https://github.com/neka-nat/python-forexconnect.git\n\nBuild and install.\n\n    $ cd python-forexconnect\n\n    $ mkdir build\n\n    $ cd build\n\n    $ cmake .. -DDEFAULT_FOREX_URL=\"http://\u003cYour forexconnect URL\u003e\"\n\n    $ make install\n\n\nUsage\n------\n\nThis tutorial is simple trading using python-forexconnect.\nFirst, give FXCM account username, password and type (\"Real\" or \"Demo\") to login.\nNext, send query to open position and get the position list which you have.\nFinally, close the opened position and logout.\n\n::\n\n   \u003e\u003e import forexconnect\n   \u003e\u003e cl = forexconnect.ForexConnectClient(\"usrname\", \"pass\", \"Real\")\n   \u003e\u003e cl.open_position(\"EUR/JPY\", forexconnect.BUY, 1)\n   \u003e\u003e ti = cl.get_trades()\n   \u003e\u003e cl.close_position(ti[0].trade_id)\n   \u003e\u003e cl.logout()\n\nRequirements\n-------------\n\n* boost 1.54\n* ForexConnectAPI 1.4.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneka-nat%2Fpython-forexconnect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneka-nat%2Fpython-forexconnect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneka-nat%2Fpython-forexconnect/lists"}