The ALLEX REST API provides programmatic access to the exchange. Retrieve market data, manage orders, check balances, and automate trading strategies.
Public endpoints (market data, tickers, orderbooks) require no authentication. Private endpoints require one of two authentication methods:
Obtained via POST /v2/login. Include in the Authorization header:
For programmatic access. Create via the Developer Portal. Sign requests with HMAC-SHA256:
| Permission | Access |
|---|---|
| can_read | Read balances, orders, trades, deposit/withdrawal history |
| can_trade | Create and cancel orders |
| can_withdraw | Request withdrawals (use with caution) |
Returns the health status of the exchange server.
{ "name": "hollaex-kit", "version": "2.17.4", "host": "allex.online", "basePath": "/v2", "status": true }Returns exchange constants including all supported coins, trading pairs, and configuration. This is the primary bootstrap endpoint for client apps.
{
"coins": {
"btc": { "symbol": "btc", "fullname": "Bitcoin", "active": true, "allow_deposit": true, "allow_withdrawal": true, ... },
"eth": { ... }
},
"pairs": {
"btc-usdt": { "name": "btc-usdt", "pair_base": "btc", "pair_2": "usdt", "active": true, ... }
},
"config": { ... }
}Returns exchange UI and branding configuration.
Returns trading fee tiers and their requirements.
Returns ticker data (open, high, low, close, volume) for a trading pair. Data interval is the most recent period.
| Name | Type | Description |
|---|---|---|
| symbol | string | Trading pair symbol, e.g. btc-usdt |
{
"btc-usdt": {
"time": "2026-03-28T12:00:00.000Z",
"open": 69500,
"high": 70200,
"low": 68800,
"close": 69031,
"volume": 6589.42,
"last": 69031
}
}Returns ticker data for all active trading pairs.
{
"btc-usdt": { "open": 69500, "high": 70200, "low": 68800, "close": 69031, "volume": 6589.42 },
"eth-usdt": { "open": 2150, "high": 2180, "low": 2050, "close": 2070.98, "volume": 154321.5 },
...
}Returns the top 10 bids and asks for a trading pair.
| Name | Type | Description |
|---|---|---|
| symbol | string | Trading pair symbol, e.g. btc-usdt |
{
"btc-usdt": {
"bids": [[69000, 0.5], [68990, 1.2], ...],
"asks": [[69050, 0.3], [69060, 0.8], ...],
"timestamp": "2026-03-28T12:00:00.000Z"
}
}Returns the most recent public trades for a trading pair.
| Name | Type | Description |
|---|---|---|
| symbol | string | Trading pair symbol, e.g. btc-usdt |
{
"btc-usdt": [
{ "size": 0.05, "price": 69031, "side": "buy", "timestamp": "2026-03-28T12:00:05.000Z" },
{ "size": 0.12, "price": 69028, "side": "sell", "timestamp": "2026-03-28T12:00:03.000Z" },
...
]
}Returns trade history with pagination and filtering.
| Name | Type | Description |
|---|---|---|
| symbol | string | Trading pair symbol |
| side | string | Filter by side: buy or sell |
| limit | integer | Number of results (default: 50, max: 100) |
| page | integer | Page number (default: 1) |
| order_by | string | Field to sort by |
| order | string | Sort direction: asc or desc |
| start_date | date-time | Start date filter (ISO 8601) |
| end_date | date-time | End date filter (ISO 8601) |
Returns OHLCV (Open, High, Low, Close, Volume) candlestick data for charting.
| Name | Type | Description |
|---|---|---|
| symbol* | string | Trading pair symbol |
| resolution* | string | Candle interval: 1, 5, 15, 60, 360, D, W |
| from* | string | Start timestamp (Unix seconds) |
| to* | string | End timestamp (Unix seconds) |
[
{ "time": "2026-03-28T00:00:00Z", "open": 69500, "high": 70200, "low": 68800, "close": 69031, "volume": 1234.5 },
{ "time": "2026-03-28T01:00:00Z", "open": 69031, "high": 69300, "low": 68900, "close": 69100, "volume": 987.2 },
...
]Convert asset prices using oracle price data. Useful for portfolio valuation.
| Name | Type | Description |
|---|---|---|
| assets* | string | Comma-separated asset list, e.g. btc,eth,sol |
| quote | string | Quote currency (default: usdt) |
| amount | number | Amount to convert |
Create a new user account. A verification email will be sent to the provided email address.
| Name | Type | Description |
|---|---|---|
| email* | string | User email address |
| password* | string | Account password (min 8 characters) |
| referral | string | Referral code |
{
"email": "[email protected]",
"password": "securePassword123"
}{ "message": "Account created. Please verify your email." }Authenticate and receive a JWT token. If 2FA is enabled, the otp_code field is required.
| Name | Type | Description |
|---|---|---|
| email* | string | User email address |
| password* | string | Account password |
| otp_code | string | OTP code (required if 2FA is enabled) |
{
"email": "[email protected]",
"password": "securePassword123",
"otp_code": "123456"
}{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }Check if the current authentication token is still valid.
{ "message": "Token is valid" }Returns the authenticated user's profile, settings, and verification status.
{
"id": 1,
"email": "[email protected]",
"full_name": "John Doe",
"verification_level": 2,
"otp_enabled": true,
"settings": { "language": "en", "interface": { "theme": "dark" } },
"balance": {
"btc_available": 0.5,
"btc_balance": 0.52,
"usdt_available": 10000,
"usdt_balance": 10500
},
"created_at": "2026-01-15T10:30:00Z"
}Returns all asset balances for the authenticated user, including available and total (with in-order) amounts.
{
"btc_available": 0.5,
"btc_balance": 0.52,
"eth_available": 5.0,
"eth_balance": 5.0,
"usdt_available": 10000,
"usdt_balance": 10500
}Returns the authenticated user's trade (fill) history with pagination.
| Name | Type | Description |
|---|---|---|
| symbol | string | Filter by trading pair |
| limit | integer | Results per page (default: 50, max: 100) |
| page | integer | Page number |
| order_by | string | Sort field |
| order | string | asc or desc |
| start_date | date-time | Start date (ISO 8601) |
| end_date | date-time | End date (ISO 8601) |
| format | string | Set to csv for CSV export |
{
"count": 142,
"data": [
{ "side": "buy", "symbol": "btc-usdt", "size": 0.01, "price": 69031, "fee": 0.69, "timestamp": "2026-03-28T12:00:00Z" },
...
]
}Generate or retrieve a deposit address for the specified cryptocurrency. Each user gets a unique HD-derived address per coin.
| Name | Type | Description |
|---|---|---|
| crypto* | string | Cryptocurrency symbol (btc, eth, sol, trx, etc.) |
| network | string | Blockchain network (e.g. trx for TRC-20 tokens) |
{
"message": "Address created",
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"crypto": "btc",
"network": "btc"
}Returns the authenticated user's deposit history with pagination and filters.
| Name | Type | Description |
|---|---|---|
| currency | string | Filter by currency |
| status | boolean | true = completed, false = pending |
| limit | integer | Results per page (default: 50) |
| page | integer | Page number |
| start_date | date-time | Start date (ISO 8601) |
| end_date | date-time | End date (ISO 8601) |
| format | string | Set to csv for CSV export |
{
"count": 15,
"data": [
{ "id": 42, "currency": "btc", "amount": 0.1, "fee": 0, "status": true, "transaction_id": "abc123...", "created_at": "2026-03-20T10:00:00Z" },
...
]
}Initiate a crypto withdrawal. A confirmation email will be sent. If 2FA is enabled, otp_code is required.
| Name | Type | Description |
|---|---|---|
| currency* | string | Currency to withdraw (btc, eth, etc.) |
| amount* | number | Amount in native units |
| address* | string | Destination wallet address |
| network | string | Blockchain network (e.g. trx for TRC-20) |
| otp_code | string | OTP code (if 2FA enabled) |
{
"currency": "btc",
"amount": 0.05,
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"otp_code": "123456"
}{ "message": "Withdrawal request submitted. Please check your email to confirm." }Returns the withdrawal fee for a specific cryptocurrency.
| Name | Type | Description |
|---|---|---|
| currency* | string | Currency symbol |
{ "fee": 0.0005 }Place a new limit or market order. Returns the created order with status.
| Name | Type | Description |
|---|---|---|
| symbol* | string | Trading pair, e.g. btc-usdt |
| side* | string | Order side: buy or sell |
| size* | number | Order quantity in base currency |
| type* | string | Order type: limit or market |
| price | number | Limit price (required for limit orders) |
| stop | number | Stop trigger price for stop orders |
| meta | object | { post_only: boolean, note: string } |
{
"symbol": "btc-usdt",
"side": "buy",
"size": 0.001,
"type": "limit",
"price": 68000
}{
"id": "6a8f3b2c-...",
"side": "buy",
"symbol": "btc-usdt",
"type": "limit",
"size": 0.001,
"price": 68000,
"filled": 0,
"status": "new",
"created_at": "2026-03-28T12:05:00Z"
}Retrieve a specific order by its ID.
| Name | Type | Description |
|---|---|---|
| order_id* | string | Order ID |
Cancel an open order by its ID.
| Name | Type | Description |
|---|---|---|
| order_id* | string | Order ID to cancel |
{
"id": "6a8f3b2c-...",
"status": "canceled",
"filled": 0,
...
}List the authenticated user's orders with filtering and pagination.
| Name | Type | Description |
|---|---|---|
| symbol | string | Filter by trading pair |
| side | string | Filter by side: buy or sell |
| status | string | Filter: new, pfilled, filled, canceled |
| open | boolean | true = open orders only |
| limit | integer | Results per page (default: 50) |
| page | integer | Page number |
| order_by | string | Sort field |
| order | string | asc or desc |
| start_date | date-time | Start date (ISO 8601) |
| end_date | date-time | End date (ISO 8601) |
{
"count": 3,
"data": [
{ "id": "6a8f3b2c-...", "side": "buy", "symbol": "btc-usdt", "type": "limit", "price": 68000, "size": 0.001, "filled": 0, "status": "new" },
...
]
}Cancel all open orders for a specific trading pair.
| Name | Type | Description |
|---|---|---|
| symbol* | string | Trading pair symbol |
Get an instant conversion quote between two currencies. Returns a token to execute the trade.
| Name | Type | Description |
|---|---|---|
| spending_currency* | string | Currency you are spending |
| receiving_currency* | string | Currency you want to receive |
| spending_amount | string | Amount of spending currency |
| receiving_amount | string | Amount of receiving currency (alternative) |
Execute a quick trade using the token received from GET /quick-trade.
| Name | Type | Description |
|---|---|---|
| token* | string | Quote token from GET /quick-trade |
Generate an OTP secret and QR code URI for enabling two-factor authentication.
{ "secret": "JBSWY3DPEHPK3PXP" }Activate two-factor authentication by verifying an OTP code from the authenticator app.
| Name | Type | Description |
|---|---|---|
| code* | string | 6-digit OTP code from authenticator |
List all active HMAC API keys for the authenticated user.
[
{
"id": 1,
"name": "Trading Bot",
"apiKey": "ak_...",
"active": true,
"permissions": { "can_read": true, "can_trade": true, "can_withdraw": false },
"created": "2026-03-01T10:00:00Z"
}
]Create a new HMAC API key. Requires OTP and email verification. The secret is only shown once.
| Name | Type | Description |
|---|---|---|
| name* | string | Label for the API key |
| otp_code* | string | OTP verification code |
| email_code* | string | Email verification code |
| permissions | object | { can_read, can_trade, can_withdraw } |
| whitelisted_ips | string[] | IP whitelist for this key |
{
"id": 2,
"name": "My Bot",
"apiKey": "ak_abc123...",
"secret": "sk_xyz789...",
"permissions": { "can_read": true, "can_trade": true, "can_withdraw": false },
"created": "2026-03-28T12:00:00Z"
}