Knowledge base
Introduction to Xena API
Xena API allows you to automate your trading strategies. There are four different API endpoints: Web-socket Market Data API Web-socket Trading API REST Trading API REST Transfers API The separation......
Market data API
All market data feeds work with the concept of streams: Send a Market Data Request with the name of the stream. The API responds with a Market Data Snapshot Full......
REST Trading API
Authentication Authentication for the REST API requires the same information as the WS Trading API. Instead of sending some initial message like Logon, each call to the REST Transfers API......
WS Trading API
Spot flow Send a Login message with the list of desired accounts. The API will respond with a Login message and start sending Execution reports and Balance information related to......
Transfers API
The Transfers API allows for the automation of deposits and withdrawals to your account. Endpoint The Transfers API is a REST API. All its methods are accessible by the following......
Managing API keys
To create new keys for the API, sign in to your XENA account and navigate to the API Keys section. Each key grants access to one or two scopes: Trading......
Order status
Orders pass through several statuses during their lifecycle: The platform sends users updates regarding any change in an order's status. Users of the web-trading terminal can see these updates in......
API cryptography
Connection to private APIs (Trading and Transfers) requires API keys. A key consists of two fields: the API Key (ID of the key) and the API Secret (the private key......
Rate limits
The rate of requests to the trading API is limited. The following limits apply: Request typeRequests per secondRequests per minuteRequests per hourNew orders50100030kOrder cancellations2005k100kAll snapshot requests (balances, active orders and......
Order status matrix
A basic description of possible order statuses can be found here. Order chaining Each order sent to the platform must have a client order ID. Its uniqueness is checked within......