Contract Trading Introduction
BigONE Contract Trading offers a robust platform for trading cryptocurrency contracts with leverage. Our API allows developers to programmatically access market data, manage orders, and monitor account portfolios with high performance and low latency.
We support two types of contracts:
- USDT-Margined (USDT-M): Quoted and settled in USDT.
- Coin-Margined (Coin-M): Quoted and settled in the underlying cryptocurrency (e.g., BTC, ETH).
Base Endpoints
| Protocol | Environment | Base URL |
|---|---|---|
| REST API | Production | https://api.big.one/api/contract/v2 |
| WebSocket | Production | wss://api.big.one/ws/v2 |
Getting Started
To start trading via the API, follow these steps:
- Create an Account: Register on BigONE.
- Generate API Keys: Go to User Center > API Management to create your API Key and Secret.
- Authentication: Most private endpoints require a JWT token generated from your API credentials. See the Authentication Guide for details.
Quick Links
- Authentication: Learn how to sign your requests.
- WebSocket API: Real-time data streams for market and account updates.
- Error Codes: Comprehensive list of contract-specific error codes.
- Spot API: Documentation for Spot trading.
Guidelines & Best Practices
Data Types & Precision
- Timestamp Precision: All timestamps are returned in milliseconds (Unix epoch).
- Prices and Amounts: Returned as
stringsto maintain precision. - IDs:
stringsorintegersdepending on the resource.
Performance Recommendation
For high-frequency trading or monitoring, we strongly recommend using the WebSocket API (wss://api.big.one/ws/v2) over polling REST endpoints.