@parlayx/sdk
Official TypeScript client for the ParlayX public API, a single trading interface over aggregated prediction markets.
Documentation
Full guides, authentication, and API reference live at docs.parlayx.com.
Install
npm install @parlayx/sdk
Requires Node.js 20 or newer. Requests are signed with Ed25519 via node:crypto,
so the client does not run in browsers or edge runtimes.
Usage
Requests are signed with your Ed25519 key. Pass the key id and the private key
seed; the client signs every request for you.
import { createClient } from "@parlayx/sdk";
const client = createClient({
keyId: process.env.PARLAYX_KEY_ID!,
privateKeyHex: process.env.PARLAYX_PRIVATE_KEY_HEX!,
});
const { podId } = await client.whoami();
const { competitions } = await client.listCompetitions({ sport: "spt_baseball" });
const { events } = await client.listEvents({ competitionId: competitions[0].id });
const { orderId } = await client.kalshi.submitOrder({
ticker: "KXMLBGAME-26SEP01-NYY",
side: "YES",
action: "BUY",
count: 10,
priceCents: 45,
timeInForce: { type: "GTC" },
});
Venue methods live under client.polymarket and client.kalshi.
License
MIT. See LICENSE.