API Center
Comprehensive API documentation, SDKs, and tools for developers. Build powerful trading applications with our robust API on BitTest Platform.
Get API AccessPowerful 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
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
Official SDKs & Libraries
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 dataPOST/api/v1/orders
Place a new orderGET/api/v1/account
Get account informationGET/api/v1/history
Get trading historyWSwss://api.bittest.com/ws
WebSocket connectionDocumentation & Resources
Start Building with Our API
Join BitTest Platform and start building powerful trading applications with our comprehensive API and developer tools.