Skip to main content

Integration

How to connect a client to MetaFlux. Pick the path that matches your starting point.

Starting points

If you're starting from…Go to
Nothing — just want to try itQuickstart
A working key, now placing real ordersPlacing orders
An existing HL bot / toolMigrating from HL
Greenfield TypeScript / browserTypeScript SDK
Greenfield Rust serviceRust SDK
Anything else (Python, Go, …)Typed-data signing — implement the EIP-712 typed-data signature yourself

Topics

SDKs

LanguageStatusPackage
TypeScript / JavaScriptpreview@metaflux-dex/client
Rustpreviewmetaflux-client

For other languages (Python, Go, Java, C++ …), implement the EIP-712 typed-data signature per typed-data signing — every step is documented with worked examples. The wire is small enough that a hand-rolled client is the right call for niche stacks.

Network endpoints

See networks for the full per-network reference.

The gateway (https://api.<net>.mtf.exchange) is the single public front door.

PathServesPurpose
POST /info · POST /exchange · GET /wsMTF-nativeNative snake_case surface
POST /evmEVM JSON-RPCEVM sidechain RPC
POST /faucetFaucettestnet test tap

Production deployments terminate TLS at the gateway and front it with a CDN; the node is intentionally not internet-facing — it sits behind the gateway. Running the node yourself, the same native surface is served directly at http://localhost:8080 (raw EVM RPC at http://localhost:8545).

Common patterns

  • Maker bot — agent-signed, persistent quoting, risk-watcher sidecar, ALO orders for guaranteed-maker tier
  • Liquidation watcher — WS subscriber on notifications (yellow_card) + account_state; fires top-ups before T1
  • TWAP wrapper — submits twap_order, watches user_twap_slice_fills + user_twap_history for slice telemetry, optional manual cancel mid-run
  • Vault managerVaultDeploy once, then agent-signed Orders for the vault address as you re-balance
  • Institutional custody — multi-sig master + per-host agents + multi-sig wrapping for high-value flows