• Features
  • Prices
  • Learn
  • Support
  • Futures
  • Institutions
Sign In Contact Support
Features
Getting Started
  • Security
  • Fee Structure
  • Funding Options
  • Staking
  • 24/7 Support
  • Liquidity
  • Advanced
  • Margin Trading
  • Indices
  • Futures
  • OTC
  • Account Management
  • Cryptowatch
  • Prices
    Learn
  • Crypto Guides
  • Videos
  • Podcast
  • Support Futures Institutions Contact Support Create Account Sign In
    Español Français Italiano 日本語 Português
    Support

    How can we help?

    1. Kraken
    2. Trading
    3. API
    4. Example API Code

    Example API Code

    REST and WebSocket command line clients

    • REST API command line client (NodeJS)
    • REST API command line client (Python)
    • WebSocket API v1 command line client (Python)

    REST and WebSocket code examples

    • Example REST API request using bash
    • Example code for C# REST and WebSocket API
    • Example code for NodeJs REST and WebSocket API
    • Example code for Java REST and WebSocket API
    • Example code for Go REST and WebSocket API
    See all 9 articles

    Example trading bots

    • REST API indicator based trading bot (Python)
    • REST API indicator based trading bot (NodeJs)

    Code for third party tools

    • REST API Postman collections (Spot and Futures)
    • Google Script - REST API public endpoints
    • Google Script - REST API Private Endpoints
    • Automating API workflows using N8N Cloud
    See all sections...


      Need more help?
    • Chat directly with one of our support specialists.
    • Chat now
      Prefer talking?
    • Our dedicated support specialists are here to help 24/7.
    • Phone Support

    Take your crypto to the next level with Kraken.

    Create Account Sign In

    Take your crypto to the next level with Kraken.

    Create Account Sign In
    • Features
      • 24/7 Support
      • Account Management
      • API
      • Bug Bounty
      • Fee Schedule
      • Funding Options
      • Futures
      • Indices
      • Liquidity
      • Margin Trading
      • OTC
      • PGP Key
      • Proof of Reserves
      • Security
      • Staking
      • Support
      • WebSockets
    • Prices
      • Cryptowatch
      • Prices Overview
    • Learn
      • Blog
      • Crypto Guides
      • Videos
      • Podcast
      • How to Buy Bitcoin
      • How to Buy Ripple
      • How to Buy Ethereum
      • How to Buy Bitcoin Cash
      • How to Buy Litecoin
      • How to Buy Cardano
      • How to Buy Dogecoin
      • How to Buy Monero
      • How to Buy Polkadot
    • About
      • Why Kraken?
      • Mobile Apps
      • Institutions
      • Careers
      • Contact
      • Press
      • Affiliates
      • Grants
      • Kraken Bank
      • Status

    Kraken Logo

    • Privacy Notice
    • Terms of Service
    • Cookies Policy
    • Recruitment Privacy Notice
    • Disclosures
    We use cookies, okay?
    Privacy Notice