Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

API and SDK

Core API Modules

a. Trading API

  • Submit, cancel, and query orders (market, limit, stop types)

  • WebSocket support for real-time order book snapshots and trade feeds

  • Cross-market routing and order status polling

  • Signature-based order submission using EIP-712 payloads

  • Off-chain intent registration, orderbook depth access, and trade history retrieval

b. Wallet and Custody API (Non-Custodial)

  • Vault creation and lifecycle management

  • Smart contract escrow management for matched orders

  • On-chain balance checks and withdrawal orchestration

  • User-defined permissioning: withdrawal policies, signing scopes, rate limits

  • Integration with third-party wallets (MetaMask, Ledger, WalletConnect, etc.)

c. Settlement & Escrow API

  • Trade bundle submission (signed maker and taker payloads)

  • Settlement verification status

  • Post-settlement analytics and proof data

  • Gas estimation and fee optimization hooks

d. Strategy & Bot API (for advanced users and third-party integrators)

  • AI trading bot endpoints for deployment, monitoring, and override

  • Strategy templating and mode switching (momentum, trend, range)

  • Bot position logs, PnL feeds, and trade lifecycle reporting

  • Future support for user-contributed algorithmic strategies (via Strategy Marketplace)

e. Analytics API

  • Token scanner, whale tracking, and risk profile endpoints

  • Real-time network indicators and heatmaps

  • Portfolio attribution breakdown (gains/losses, volatility, Sharpe ratios)

  • Alerts and webhook triggers (e.g., volume spike, sentiment reversal)

2. SDK Support

Zenko provides open-source client SDKs for rapid integration:

  • JavaScript SDK: Browser, Node.js, and dApp environments

  • Python SDK: Trading bots, research scripts, quant workflows

  • TypeScript SDK: For advanced type safety in frontend integrations

  • Rust SDK (planned): For high-performance programmatic trading or CLI-based tooling

All SDKs support:

  • API key authentication and rate throttling

  • Signing utilities for wallet-based operations

  • Retry logic and connection pooling

  • Typed interfaces and auto-generated documentation (OpenAPI compliant)

3. Authentication & Security

  • API Key + Signature Auth: All private API calls require access keys and signed requests

  • Nonce and Timestamp Enforcement: Prevents replay or out-of-sequence injection

  • Scoped Permissions: Keys can be limited by endpoint, IP address, or action type (e.g., read-only, trading-only)

  • User Session Tokens (optional): Secure session abstraction for short-lived programmatic access

Last updated