@noyanetwork/parlay-sdk
v0.0.11
Published
TypeScript SDK for the Parlay router — cross-venue prediction-market intelligence.
Readme
@noyanetwork/parlay-sdk
TypeScript SDK for the Parlay router — cross-venue prediction-market intelligence.
import { Router, Polymarket, Kalshi } from "@noyanetwork/parlay-sdk";
const router = new Router({ apiKey: process.env.PARLAY_API_KEY });
const markets = await router.fetchMarkets({ query: "bitcoin", limit: 10 });
const matches = await router.fetchMarketMatches({ marketId: markets[0].marketId });
const arb = await router.fetchArbitrage({ minSpread: 0.05 });Configuration
The SDK reads from constructor options first, then env vars:
| Option | Env var | Description |
| ---------------- | ---------------- | ------------------------------------------------------------ |
| apiKey | PARLAY_API_KEY | Bearer token sent to the Parlay router. |
| baseUrl | PARLAY_BASE_URL| Override the router endpoint (defaults to the hosted Parlay).|
