Skip to main content

Documentation Index

Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

kraken-cli

Single-binary CLI for Spot and Derivatives trading. 151 commands, paper trading, scripting, and AI agent support.

MCP server

Built-in MCP server that exposes all CLI commands as tools for LLM agents.

api-go

api-go is the official Go module for building integrations against the Spot and Derivatives APIs.

Install

go get github.com/krakenfx/api-go/v2/...

What it covers

  • Spot and Derivatives REST (public and authenticated endpoints)
  • Spot and Derivatives WebSocket (public data streams and private channels)
  • Order operations: add, amend, cancel
  • Real-time order book construction with CRC32 checksum validation
  • Instrument and asset lookups, account data retrieval

Example

client := krakenapi.New(apiKey, apiSecret)
resp, err := client.AddOrder(krakenapi.AddOrderOptions{
    Pair:      "XBTUSD",
    Type:      "buy",
    OrderType: "limit",
    Price:     "60000",
    Volume:    "0.01",
})

Community libraries

These libraries are not officially maintained by Kraken. Review before using in production.
LibraryLanguageScopeRepository
kraken-wsclient-pyPythonWebSocket only (Spot)github.com/krakenfx/kraken-wsclient-py
kraken-api-clientPHPREST (example only)github.com/krakenfx/kraken-api-client