API Access
0x1 provides a powerful API for algorithmic traders and developers to interact with the platform programmatically.
Overview
The 0x1 API allows you to:
- Retrieve market data (prices, order books, recent trades).
- Manage orders (place, cancel, modify).
- View account information (balances, positions, history).
Authentication
All private endpoints require authentication using API keys. You can generate API keys in your account settings.
Headers
Requests to private endpoints must include the following headers:
X-API-KEY: Your API key.X-SIGNATURE: A HMAC-SHA256 signature of the request body.X-TIMESTAMP: Current timestamp in milliseconds.
Rate Limits
- Public Endpoints: 10 requests per second.
- Private Endpoints: 50 requests per second.
Endpoints
Market Data
GET /v1/markets: List all available markets.GET /v1/orderbook/{symbol}: Get order book for a symbol.
Orders
POST /v1/orders: Place a new order.DELETE /v1/orders/{id}: Cancel an order.
For full API reference, please visit our Developer Portal.