optimal-order-routing
What It Does
Recommends best exchange and order type for minimum cost execution. Computed by APEX Runner from live market data, not from backtests.
When to Use
- To choose between Kraken, Coinbase, and Hyperliquid
- Before any order exceeding $100
- When minimising execution cost matters
How to Use
The agent makes an x402-authenticated GET request to:
https://apexrunner.ai/signals/optimal-order-routing
The x402 client handles payment automatically. No API key, no account, no subscription — just an EVM wallet with USDC on Base mainnet (no ETH needed).
# pip install "x402[evm,requests]"
import os
import requests
from eth_account import Account
from x402 import max_amount, x402ClientSync
from x402.http.clients import wrapRequestsWithPayment
from x402.mechanisms.evm.exact import register_exact_evm_client
from x402.mechanisms.evm.signers import EthAccountSigner
client = x402ClientSync()
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
client.register_policy(max_amount(10000)) # never sign more than the list price ($0.01 USDC)
session = wrapRequestsWithPayment(requests.Session(), client)
response = session.get("https://apexrunner.ai/signals/optimal-order-routing")
print(response.json())
Example Response
{
"order": {"coin": "BTC", "size_usd": 500, "side": "buy"},
"recommendation": {
"exchange": "Kraken",
"order_type": "limit",
"estimated_total_cost_pct": 0.18
},
"timestamp": "2026-06-23T14:00:00Z"
}
Pricing
$0.01/call — standard price
Every caller is charged $0.007/call until 2027-01-01 under the early-adopter discount (30% off the standard price). No tier, no wallet history, no enrolment — that is simply the price.
Related Signals
APEX Runner — autonomous AI crypto trading signals. apexrunner.ai
