Build powerful trading applications with our API
The OC Exchange API allows you to integrate our trading platform into your applications. Access real-time market data, manage orders, and build sophisticated trading strategies.
https://api.ocexchange.com/v1Low latency API with 99.9% uptime guarantee
API keys with configurable permissions and IP restrictions
Clean, intuitive REST API following industry standards
Detailed documentation with code examples
To access protected endpoints, you need to create API keys in your account settings. Each API key can be configured with specific permissions.
X-API-Key: your-api-key X-API-Secret: your-api-secret X-API-Timestamp: 1640995200000 X-API-Signature: calculated-signature
1000 requests/minute
100 requests/minute
10 requests/second
/api/market/dataGet real-time market data for all trading pairs
/api/trading/ordersGet user's trading orders
/api/trading/ordersCreate a new trading order
/api/wallet/balancesGet user's wallet balances
/api/wallet/transactionsGet user's transaction history
// JavaScript
const response = await fetch('https://api.ocexchange.com/v1/market/data');
const marketData = await response.json();
console.log(marketData);
// Python
import requests
response = requests.get('https://api.ocexchange.com/v1/market/data')
market_data = response.json()
print(market_data)
// cURL
curl -X GET "https://api.ocexchange.com/v1/market/data"// JavaScript
const order = await fetch('https://api.ocexchange.com/v1/trading/orders', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'your-api-key',
'X-API-Secret': 'your-api-secret',
'X-API-Timestamp': Date.now().toString(),
'X-API-Signature': 'calculated-signature'
},
body: JSON.stringify({
symbol: 'BTCUSDT',
side: 'buy',
type: 'limit',
amount: 0.001,
price: 45000
})
});Official JavaScript/TypeScript SDK for Node.js and browsers
npm install @ocexchange/sdkPython library for algorithmic trading and data analysis
pip install ocexchangeReady-to-use Postman collection for API testing
Our developer support team is here to help you integrate with our API.