kraken-cli  by krakenfx

AI-powered CLI for global financial markets

Created 1 month ago
405 stars

Top 71.7% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Kraken CLI is an AI-native Command Line Interface for programmatic trading across crypto, stocks, forex, and derivatives on Kraken. It targets AI agents and automated systems, offering full API access, structured output, and robust error handling for reliable trading operations and strategy testing.

How It Works

This project delivers a single, self-contained Rust binary. Its core design prioritizes AI agent integration with default JSON output, predictable error envelopes, and an agent-first approach. A built-in Model Context Protocol (MCP) server enables seamless integration with AI agents via stdio, while comprehensive paper trading engines for spot and futures allow safe, simulated execution against live market data.

Quick Start & Requirements

Installation uses a single-line bash script: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/krakenfx/kraken-cli/releases/latest/download/kraken-cli-installer.sh | sh. Building from source requires Rust. Supported OS: macOS (Apple Silicon/Intel), Linux (x86_64/ARM64); Windows requires WSL. Binaries are on GitHub Releases.

Highlighted Details

  • AI-Native Interface: Engineered for LLM agents with machine-readable JSON, consistent error categorization, and agent-first design.
  • Multi-Asset Trading: Supports 1,400+ crypto pairs, tokenized stocks (xStocks), forex, and 300+ futures contracts.
  • Integrated MCP Server: Built-in Model Context Protocol server for direct, local AI agent integration via stdio.
  • Paper Trading Engines: Dedicated spot and futures simulation environments for risk-free strategy testing against live prices.
  • Extensive Command Set: Exposes 151 commands for market data, account management, trading, funding, staking, subaccounts, and WebSocket streaming.

Maintenance & Community

Contribution guidelines are provided (CONTRIBUTING.md), but specific details on active maintainers, community channels, or a public roadmap are absent from the README.

Licensing & Compatibility

Released under the MIT License, permitting broad use, including commercial applications. No specific compatibility restrictions for closed-source linking are noted.

Limitations & Caveats

This software is experimental and interacts with the live Kraken exchange, carrying the risk of real financial transactions; consult DISCLAIMER.md before live trading. Tokenized U.S. stocks (xStocks) are unavailable in the USA, and product availability varies by jurisdiction. Windows requires WSL.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
10
Issues (30d)
3
Star History
369 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.