API Integration
Trade Idea
Discover ready-to-trade baskets and pairs across venues.
Pear surfaces ready-to-trade baskets and pairs so you can seed ideas instead of building every basket by hand.
Endpoints
| Endpoint | Returns |
|---|---|
GET /markets/baskets | Selector-ready baskets: pre-built / materialized baskets plus generated 1-long / 1-short pairs, enriched with live market data. |
GET /markets | Market groups for a venue (actives, movers, highlighted). |
GET /saved-baskets | Your saved basket templates (create / update / delete via POST / PATCH / DELETE /saved-baskets). |
Baskets are venue-aware, each leg maps to an instrument on a connected exchange (Hyperliquid, Binance, Bybit, OKX, or Lighter). Resolve the tradeable instruments with GET /instruments, and current pricing with GET /prices and GET /funding.
Weights
Each leg carries a weight within its side. A basket's direction (not its absolute price) is what you trade, see Weighted Price Ratio.
Narrative baskets (agents)
Agent Pear's narrative baskets, thematic long/short ideas generated from market signals, are available to LLM agents through the Orchard MCP (discover_assets, list_baskets).