bsc-dex-spread

v0.1.0
io.github.donnywin85/bsc-dex-spread Checked 2 days ago Published 5 months ago

Cross-DEX price & spread for PancakeSwap v2+v3 on BSC via x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_dex_spread BSC cross-DEX price & spread

Real-time cross-DEX price & spread for PancakeSwap v2+v3 on BSC. Params: pair=SYM/SYM (e.g. WBNB/USDC), optional fee=v3 tier. Returns per-venue prices, best buy/sell, gross cross-DEX spread (bps), liquidity, and block number. Costs $0.01 USDC per call on Base mainnet (eip155:8453), paid automatically from the wallet in EVM_PRIVATE_KEY.

ParameterTypeDescription
pair *stringToken pair as SYM/SYM; first symbol is the USD-priceable side (e.g. WBNB/USDC, WBNB/USDT, CAKE/WBNB).
feestringOptional PancakeSwap v3 fee tier to restrict the v3 probe (e.g. 100, 500, 2500, 10000). Omit to probe all v3 tiers + v2.