Skip to main content

Start building
with Kraken

Build on Kraken — spot, derivatives, OTC, custody, and crypto payments over REST, WebSocket, and FIX.
import krakenex

api = krakenex.API()
api.key    = 'API_KEY'
api.secret = 'API_SECRET'

resp = api.query_private('AddOrder', {
    'pair':      'XXBTZUSD',
    'type':      'buy',
    'ordertype': 'limit',
    'price':     '50000',
    'volume':    '1.0',
})
print(resp['result'])
const KrakenClient = require('kraken-api');
const kraken = new KrakenClient(
  process.env.API_KEY,
  process.env.API_SECRET
);

const resp = await kraken.api('AddOrder', {
  pair:      'XXBTZUSD',
  type:      'buy',
  ordertype: 'limit',
  price:     '50000',
  volume:    '1.0',
});
console.log(resp.result);
curl -X POST "https://api.kraken.com/0/private/AddOrder" \
  -H "API-Key: $API_KEY" \
  -H "API-Sign: $API_SIGN" \
  -d "nonce=$NONCE" \
  -d "ordertype=limit" \
  -d "type=buy" \
  -d "pair=XXBTZUSD" \
  -d "price=50000" \
  -d "volume=1.0"

Browse by product

Kraken CLI

Need help integrating?

Help center

Browse account and product FAQs.

API status

Real-time API health and uptime.

Contact support

Open a ticket with API support.