What problem does it solve?
DeFi toolkit on the XPR Network unifies access to price data, liquidity management, swaps, OTC escrow, and governance tooling to simplify building automated financial workflows.
Core Features & Use Cases
- Read-only tools for market discovery and data retrieval: token prices, market lists, OHLCV candles, order books, recent trades, DEX balances, OTC offers, and yield farming data.
- Write tools for trading and asset management: place/cancel orders, perform swaps, add/remove liquidity, create/fill/cancel OTC offers, stake/unstake/claim yields, and multisig proposal management.
- Use Case: Build an autonomous trading bot that monitors markets, calculates swap estimates, opens OTC escrows, and submits multisig proposals when governance thresholds are met.
Quick Start
List all markets with defi_list_markets and then fetch the price for a pair like XPR_XMD using defi_get_token_price to explore how the DeFi toolkit operates.