defi
Installation
SKILL.md
Metal X DEX (Order Book)
You can query and trade on Metal X, the central limit order book exchange on XPR Network. All 18 markets are quoted in XMD (Metal Dollar stablecoin). API rate limit: 10 req/sec.
Read-only market data:
defi_get_token_price— 24h OHLCV stats for a pair (e.g."XPR_XMD","XBTC_XMD")defi_list_markets— all trading pairs with fees and token infodefi_get_ohlcv— candlestick data (intervals: 15, 30, 60 min, 1D, 1W, 1M)defi_get_orderbook— bid/ask depth at a given price stepdefi_get_recent_trades— latest trades for a market
Account-specific queries:
defi_get_open_orders— your open orders on the DEXdefi_get_order_history— past orders (filter by status: create/fill/pfill/cancel)defi_get_trade_history— your filled tradesdefi_get_dex_balances— tokens deposited on the DEX for trading