Skip to main content

Integration

This section explains how to connect a client to MetaFlux. Pick the page that matches your starting point.

Starting points​

Starting pointPage
No code yet, and you want to try the APIQuickstart
A working key, and you want to place real ordersPlacing orders
An existing Hyperliquid bot or toolMigrating from HL
A new TypeScript or browser projectTypeScript SDK
A new Rust serviceRust SDK
Any other language (Python, Go and others)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++ and others), implement the EIP-712 typed-data signature as typed-data signing describes. That page documents every step with worked examples. The wire format is small, so a hand-written client is a good choice for less common stacks.

Network endpoints​

The networks page is the full reference for each network.

The gateway (https://api.<net>.mtf.exchange) is the one public entry point.

PathServesPurpose
POST /info · POST /exchange · GET /wsMTF-nativeNative snake_case surface
POST /evmEVM JSON-RPCEVM sidechain RPC
POST /faucetFaucetTestnet faucet

Production deployments terminate TLS at the gateway and put a CDN in front of it. The node is not internet-facing by design. It sits behind the gateway. If you run the node yourself, it serves the same native surface at http://localhost:8080, and raw EVM RPC at http://localhost:8545.

Common patterns​

  • Maker bot. Agent-signed, persistent quoting, a risk-watcher sidecar, and ALO orders for the guaranteed-maker tier.
  • Liquidation watcher. A WS subscriber on notifications (yellow_card) and account_state. It adds margin before T1.
  • TWAP wrapper. It submits twap_order and watches user_twap_slice_fills and user_twap_history for slice telemetry. It can cancel by hand during the run.
  • Vault manager. VaultDeploy once, then agent-signed orders for the vault address on each rebalance.
  • Institutional custody. A multi-sig master, one agent per host, and multi-sig wrapping for high-value flows.