Now available — Python SDK v1.0.5

MT5 Integration
Without the Complexity

Stop wrestling with MT5. Tonpo gives your platform a clean API to execute trades, stream live prices, and manage accounts at scale.

# Install the SDK pip install tonpo   # Place a trade in 4 lines async with TonpoClient.for_user(config, api_key) as client: await client.place_market_buy("EURUSD", volume=0.10, sl=1.0800)

Everything you need to build

A complete toolkit for connecting your application to MetaTrader 5 — no MT5 expertise required.

REST API

Clean, predictable JSON API for account management, order placement, and position tracking. Works with any language.

📡

WebSocket

Real-time tick data, position updates, and order confirmations over a persistent WebSocket connection.

🐍

Python SDK

Official async Python client. Context managers, typed models, auto-reconnect, and a price cache built in.

🔐

Secure by Design

MT5 credentials encrypted at rest. API key authentication. TLS on all connections. Your data stays yours.

From credentials to live trades in minutes

Tonpo handles the MT5 connection layer so you can focus on your product.

1

Create a user

One API call creates a Tonpo user and returns an API key. No registration form needed.

2

Provision MT5 account

Pass MT5 credentials once. Tonpo encrypts and stores them — you never touch them again.

3

Wait for active status

Tonpo connects to the broker and signals when the account is live and ready to trade.

4

Trade via API

Place orders, stream prices, read positions — all through clean REST and WebSocket calls.

5

Scale freely

Add more accounts, more users, more symbols. The architecture handles the load.

quickstart.py
# 1. Create user async with TonpoClient.admin(config) as c: user = await c.create_user() # 2. Provision MT5 account async with TonpoClient.for_user(config, user.api_key) as c: acct = await c.create_account( "12345678", "password", "ICMarkets-Demo" ) # 3. Wait until live await c.wait_for_active(acct.account_id) # 4. Execute a trade info = await c.get_account_info() result = await c.place_market_buy( "EURUSD", volume=0.10, sl=1.0800, tp=1.0950, )

Built for builders

Whether you're automating your own trades or powering a platform for thousands of users.

🤖 Trading Bots

Build fully automated trading systems that receive signals, calculate risk, and execute on MT5 — without ever touching a terminal.

  • Signal-to-order execution pipeline
  • Python SDK with async support
  • Real-time position and P&L tracking
  • Multi-account management from one key
  • WebSocket for instant fill confirmations

🏢 Fintech Platforms

Embed MT5 trading into your SaaS, copy trading platform, or prop firm dashboard without building MT5 infrastructure yourself.

  • REST API works with any backend stack
  • Per-user account isolation
  • Subscription-based access control
  • TradingView webhook integration
  • Audit logs and trade history

Start free, scale as you grow

All plans include full API access. No hidden fees, no per-trade charges.

Free
$0
Forever free
  • 1 MT5 account
  • 10 trades / day
  • REST API access
  • Python SDK
  • WebSocket streams
  • Multiple TPs
  • Webhook integration
Get Started
Basic
$9/mo
Billed monthly
  • 1 MT5 account
  • 50 trades / day
  • REST API access
  • Python SDK
  • WebSocket streams
  • Multiple TPs
  • Webhook integration
Get Started
Enterprise
Custom
Contact us
  • Unlimited accounts
  • Unlimited trades
  • REST API access
  • Python SDK
  • WebSocket streams
  • Multiple TPs
  • Webhook integration
Contact Sales

Built for developers who ship

🏗️

No MT5 expertise needed

You deal with clean JSON, not MQL5. Tonpo abstracts all MT5 complexity behind predictable API calls.

🔒

Credentials never leave the gateway

MT5 passwords are encrypted at rest and never returned in API responses. Your users' credentials stay safe.

Sub-100ms order execution

The gateway sits close to your broker. Orders go from API call to broker confirmation in under 100ms.

📦

SDK that just works

Async Python client with typed models, auto-reconnect WebSocket, and full coverage of the REST API.

Ready to stop wrestling with MT5?

Start free. Connect your first account in under 5 minutes.