Skip to content

JavaScript and TypeScript SDK 0.4.1

Choose a tag to compare

@JacobiusMakes JacobiusMakes released this 26 Nov 22:48
2c787cc

Install the compiled ParlayAPI SDK in a Node.js 18+ project with one command.

npm install https://github.com/JacobiusMakes/parlay-api-js/releases/download/v0.4.1/parlay-api-0.4.1.tgz

Try a local calculation immediately.

node --input-type=module -e 'import { devig } from "parlay-api"; console.log(devig(-110, -110))'

The expected output is [ 0.5, 0.5 ]. The package includes ES modules, CommonJS and TypeScript declarations for both import styles. It has zero runtime dependencies.

To request your first synthetic odds board, follow the sandbox example. Before polling live data, estimate your request volume.