Skip to main content

TradeMux

Python SDK for TradeMux, a unified trading API for MetaTrader (MT4/MT5) and OANDA.

Docs: https://docs.trademux.io

Install

pip install trademux

Quickstart (MetaTrader)

from trademux import MTClient

client = MTClient(api_key="sb_tmux_...")
print(client.get_server_status())
# {"status": "ok"}

order = client.buy_market("EURUSD", 0.01, sl=1.0900, tp=1.1100, comment="tmx demo")
print(order)

print(client.get_account_info())
print(client.get_balance())
print(client.get_equity())

Make sure the MT4/MT5 EA is running and connected to the same API key.

Quickstart (OANDA)

from trademux import OandaClient

client = OandaClient(
    api_key="sb_tmux_...",
    oanda_api_key="oanda_pat_...",
)

print(client.get_server_status())
# {"status": "ok"}

order = client.buy_market("EURUSD", 0.01, sl=1.0900, tp=1.1100, comment="tmx demo")
print(order)

print(client.get_account_info())
print(client.get_balance())
print(client.get_equity())

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trademux-0.1.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trademux-0.1.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file trademux-0.1.3.tar.gz.

File metadata

  • Download URL: trademux-0.1.3.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for trademux-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1a58044d7e3b5e1e99a344973402808bcdcf71f7a9f0b453e9ffa47bd6819ba6
MD5 04e5bd4efa9d8f09d8a9f068fefa7021
BLAKE2b-256 db5421f7e6a8eb2791a5c83a28180c5d2da56f1700f575b15068e403cd057791

See more details on using hashes here.

File details

Details for the file trademux-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: trademux-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for trademux-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 761572e1a7554637715019669e97fc162105b871f3266e15d5dec3a3a08b13c4
MD5 1f820db2fb671baf2de5e797df47ef79
BLAKE2b-256 92d5fe2a5852a4750dad6009972f1a9d602471e7c64b34dbfa9082992f4c0a1b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page