S
STOKE

STOKE API

Build custom trading applications and integrations with our powerful and flexible API.

Powerful Trading API

Our comprehensive REST API gives you programmatic access to the entire STOKE platform, allowing you to build custom trading applications, automate your trading strategies, and integrate with your existing tools.

RESTful Architecture

Clean, intuitive API design following REST principles for easy integration.

Comprehensive Data Access

Access market data, account information, and trading functionality.

Real-time Streaming

WebSocket support for real-time market data and order updates.

Secure Authentication

OAuth 2.0 and API key authentication with fine-grained permissions.

curl -X GET 'https://api.stoke.com/v1/market/prices?symbol=BTC-USD' \
-H 'Authorization: Bearer YOUR_API_KEY'

# Response
{
  "symbol": "BTC-USD",
  "price": 65432.10,
  "timestamp": "2024-04-04T12:34:56Z",
  "bid": 65430.50,
  "ask": 65433.70,
  "24h_change": 2.35,
  "24h_volume": 1234567890
}

API Capabilities

Market Data API

Access real-time and historical market data for thousands of assets across multiple exchanges.

GET

/market/prices

Get current prices for specified symbols

GET

/market/candles

Get OHLCV candles for technical analysis

GET

/market/orderbook

Get order book data for specified symbols

GET

/market/trades

Get recent trades for specified symbols

GET

/market/indicators

Calculate technical indicators on market data

WS

/ws/market

WebSocket for real-time market updates

Getting Started

1

Register for API Access

Sign up for a STOKE account and request API access from your account settings.

2

Generate API Keys

Create API keys with the appropriate permissions for your application.

3

Explore Documentation

Read our comprehensive API documentation and try out the interactive API explorer.

SDKs & Libraries

JS

JavaScript

Official JavaScript/TypeScript SDK for browser and Node.js applications.

PY

Python

Python SDK for data analysis, algorithmic trading, and AI applications.

GO

Go

Go SDK for high-performance trading applications and microservices.

JV

Java

Java SDK for enterprise applications and Android development.

Ready to Build with STOKE?

Start integrating STOKE's powerful trading capabilities into your applications today.