API Center

Comprehensive API documentation, SDKs, and tools for developers. Build powerful trading applications with our robust API on BitTest Platform.

Get API Access

Powerful Trading API

High Performance

Sub-millisecond latency with 99.99% uptime for mission-critical trading applications.

Secure & Reliable

Bank-grade security with comprehensive authentication and rate limiting.

Real-time Data

Live market data, order book updates, and trade execution notifications.

API Types

REST API

Standard HTTP-based API for account management, trading, and market data access.

  • • Account management
  • • Order placement and management
  • • Market data retrieval
  • • Historical data access
  • • Portfolio management
View REST Documentation →

WebSocket API

Real-time streaming API for live market data, order updates, and trade notifications.

  • • Real-time price feeds
  • • Order book updates
  • • Trade execution notifications
  • • Account balance updates
  • • Market depth data
View WebSocket Documentation →

Official SDKs & Libraries

Py

Python

Official Python SDK

Download →
JS

JavaScript

Node.js & Browser SDK

Download →
J

Java

Java SDK

Download →
C#

C#

.NET SDK

Download →

Quick Start Examples

Python Example

import bittest

# Initialize client
client = bittest.Client(
    api_key="your_api_key",
    secret_key="your_secret_key"
)

# Get account balance
balance = client.get_balance()
print(f"Balance: {balance}")

# Place a buy order
order = client.place_order(
    symbol="BTC/USD",
    side="buy",
    amount=0.001,
    price=45000
)
print(f"Order placed: {order.id}")

# Get real-time price
price = client.get_ticker("BTC/USD")
print(f"BTC Price: {price.last}")

JavaScript Example

const BitTest = require('bittest-js');

// Initialize client
const client = new BitTest({
  apiKey: 'your_api_key',
  secretKey: 'your_secret_key'
});

// Get account balance
client.getBalance()
  .then(balance => {
    console.log('Balance:', balance);
  });

// Place a buy order
client.placeOrder({
  symbol: 'BTC/USD',
  side: 'buy',
  amount: 0.001,
  price: 45000
}).then(order => {
  console.log('Order placed:', order.id);
});

// WebSocket connection
const ws = client.createWebSocket();
ws.on('ticker', (data) => {
  console.log('BTC Price:', data.last);
});

API Endpoints

REST API Endpoints

GET/api/v1/ticker
Get market ticker data
POST/api/v1/orders
Place a new order
GET/api/v1/account
Get account information
GET/api/v1/history
Get trading history
WSwss://api.bittest.com/ws
WebSocket connection

Documentation & Resources

API Documentation

Comprehensive guides and reference documentation for all API endpoints.

View Docs →

SDK Downloads

Download official SDKs for your preferred programming language.

Download SDKs →

API Keys

Manage your API keys and access permissions from your account.

Manage Keys →

Start Building with Our API

Join BitTest Platform and start building powerful trading applications with our comprehensive API and developer tools.