API Documentation
Connect your own bots and scripts to PolyYard market data and the relayer engine.
All endpoints take a JSON body and return JSON. Base URL: https://polyyard.base44.app/functions
Orders are non-custodial: your bot signs each order with its own wallet key, and the relayer submits it with the 50 bps PolyYard fee applied. PolyYard never holds your keys.
Please keep to about 1 request per second per endpoint. Responses are cached for a few seconds.
POST/fetchVenueData
{ "venue": "hyperliquid", "action": "markets" | "book" | "candles", "symbol": "BTC", "interval": "1h" }Venues: kalshi, hyperliquid, polymarket (candles only). Intervals: 1m, 5m, 15m, 1h, 4h, 1d.
POST/fetchMarkets
{ "limit": 40, "sort": "trending", "category": "politics" }Use { "q": "bitcoin" } to search.
POST/fetchOrderBook
{ "tokenId": "<clob token id>" }Returns bids and asks for one Polymarket outcome.
POST/getFeeConfig
{}Current fee rates and the fee splitter address.
