New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@parlayx/sdk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parlayx/sdk

Official TypeScript client for the ParlayX public API.

npmnpm
Version
1.4.2
Version published
Maintainers
1
Created
Source

@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.

FAQs

Package last updated on 17 Sep 2026

Related posts