Skip to content

Kraken API SDK ​

@siebly/kraken-api provides JavaScript and TypeScript clients for Kraken Spot and Futures REST APIs and WebSockets. Read market data, query accounts and manage orders with typed requests and responses.

Start with a public price request, then add account access and streaming updates to your application. The SDK manages request signing, WebSocket connections and resubscriptions.

JavaScript & TypeScript · v1.1.10 · MIT license

Installation ​

TypeScript definitions are included.

Install the npm package with your preferred tool:

sh
npm install @siebly/kraken-api
sh
pnpm add @siebly/kraken-api
sh
yarn add @siebly/kraken-api
sh
bun add @siebly/kraken-api
sh
deno add npm:@siebly/kraken-api
text
Package: @siebly/kraken-api
npm: https://www.npmjs.com/package/@siebly/kraken-api

For other npm-compatible tools, use the same package from npm. Runtime-specific setup is covered below.

Choose your setup ​

Follow the guide for your runtime or framework. Each includes a complete project with commands to install dependencies and run it.

SetupGuides
Node.jsJavaScript or TypeScript
Alternative runtimesBun or Deno
Browser appsReact with Vite or Vite with plain JavaScript
Next.jsNode.js server Route Handler
Cloudflare WorkersPublic prices and authenticated orders
Mobile appsReact Native / Expo for iOS and Android

Browser and Expo guides include SDK-specific bundler configuration and polyfills where needed. See Runtime compatibility for tested versions, required configuration and what the checks cover.

Use the scoped package @siebly/kraken-api. The unscoped kraken-api package is a different library.

First request ​

The Node.js quickstart reads a public Bitcoin price with plain JavaScript. No API credentials are needed.

Choose a client ​

ClientPurpose
SpotClientSpot market data, balances, orders and account operations over REST.
DerivativesClientFutures market data, account queries and trading over REST.
WebsocketClientPublic and private Spot and Futures subscriptions.
WebsocketAPIClientAwaitable Spot WebSocket API requests.

Next steps ​

Built by Siebly. Open source SDKs for exchange APIs.