DEFI_COPILOT
API Reference

Data Sources

All price and yield data comes directly from Stellar mainnet for accuracy — regardless of which network is configured for payments.

DataSourceNetwork
Yield APYBlend Finance smart contracts (Soroban)Mainnet (on-chain)
Swap quotesSDEX Orderbook + Stellar DEX pathfinder + AMM poolMainnet (real quotes)
XLM priceStellar Horizon trade aggregationsMainnet (real prices)
Orderbook spreadStellar Horizon order bookMainnet
24h volumeStellar Horizon trade aggregationsMainnet
Paymentsx402 protocol + local facilitatorTestnet or Mainnet

Blend Finance

APY data is fetched directly from Blend Finance smart contracts on Stellar mainnet via Soroban RPC. Two pools are monitored and compared on every request:

Fixed V2~9.47% USDC
CAJJZSGMMM3PD7N33TAPHGBUGTB43OC73HVIK2L2G6BNGGGYOSSYBXBD
YieldBlox V2~0.07% USDC
CCCCIQSDILITHMM7PBSLVDT5MISSY7R26MNZXCX4H7J5JQ5FPIYOGYFS

Soroban RPC

ENDPOINT
https://soroban-rpc.creit.tech/
Provider: Creit Tech · Network: Stellar Mainnet

Stellar Horizon

All swap quotes, XLM price, volume, and spread data are fetched from Stellar's public Horizon API on mainnet. This ensures prices reflect real market conditions regardless of payment network.

HORIZON ENDPOINT
https://horizon.stellar.org

Swap quote sources

Every call to /defi/swap/best fetches quotes from all three sources simultaneously and returns the best output:

01
SDEX Orderbook
Direct orderbook matching — best for liquid pairs. Typically lowest slippage.
02
Stellar DEX pathfinder
Multi-hop path payments through intermediate assets.
03
AMM pool
Automated market maker liquidity pools on Stellar.