Skip to main content

Platform Architecture

Cryptorobot.ai is built on a real-time microservices architecture. The API supports both REST and WebSocket transports, giving you flexibility in how you consume data.

Transports

REST API

Standard HTTP requests with JSON responses. Best for CRUD operations, one-off queries, and server-to-server integration.

WebSocket

Persistent connections with real-time event streaming. Best for live price feeds, trade notifications, and bot status updates.

REST Conventions

The API follows RESTful conventions for all resources:

Pagination

All find (list) endpoints return paginated results:
Use query parameters to control pagination:

Filtering

Query parameters support rich filtering:
Supported operators: $gt, $gte, $lt, $lte, $ne, $in, $nin, $or.

Core Resources

Exchange connections represent your linked cryptocurrency exchange accounts (Binance, Bybit, OKX, etc.). Through these, you can fetch balances, market data, and execute trades.
Trading strategies define the rules for automated trading. They include technical indicators, entry/exit conditions, and risk parameters. Strategies can be backtested, optimized with hyperparameter tuning, or generated by AI.
Traders are live trading bot instances. Each trader runs inside a Pod — an isolated execution environment with its own configuration, API keys, and event stream.
Machine learning models that generate trading signals. You can subscribe to signals and receive real-time notifications when conditions are met.
Market intelligence data including ETF flows, fear & greed index, crypto stress index, global market stats, and curated news feeds.
Aggregate view of your holdings across all connected exchanges, including balance time-series, performance metrics, and trade history.

Data Flow

Rate Limits

See Errors & Rate Limits for details on handling rate limit responses.