API Documentation

Complete guide to integrating with Exverta

Getting Started

Welcome to the Exverta API! Our RESTful API allows you to programmatically access trading functionality, manage your account, and retrieve market data in real-time.

High Performance

Sub-millisecond response times

Secure

Military-grade encryption

24/7 Uptime

99.99% availability guarantee

Quick Start

  1. 1. Create your API key in account settings
  2. 2. Make your first API call
  3. 3. Handle responses and errors
  4. 4. Implement webhooks for real-time updates

Support

  • Comprehensive documentation
  • Code examples in multiple languages
  • 24/7 developer support
  • Interactive tutorials

Authentication

All API requests require authentication using API keys. You can create and manage your API keys in your account settings.

API Key Authentication

curl -X GET "https://exverta.pro/api/account" \
  -H "X-API-Key: your_api_key_here" \
  -H "X-API-Secret: your_api_secret_here" \
  -H "Content-Type: application/json"

Security Notice

Never share your API secret key. All API requests should be made from server-side applications only.

Rate Limits

Standard Limits

  • Public endpoints: 100 req/min
  • Private endpoints: 60 req/min
  • Trading endpoints: 30 req/min
  • WebSocket: Unlimited

Headers

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1640995200

Market Data

Get All Tickers

GET

Retrieve current price and 24h statistics for all trading pairs.

curl -X GET "https://exverta.pro/api/tickers"

Response Example:

{
  "success": true,
  "data": {
    "BTC/USD": {
      "symbol": "BTC/USD",
      "last": 43250.50,
      "bid": 43248.25,
      "ask": 43252.75,
      "change": 2.34,
      "changePercent": 0.0054,
      "high": 44100.00,
      "low": 42800.50,
      "volume": 1245.67,
      "quoteVolume": 53892341.25,
      "timestamp": "2025-01-20T12:00:00Z"
    }
  }
}
200 OK

Get Order Book

GET

Get current order book for a specific trading pair.

curl -X GET "https://exverta.pro/api/orderbook/BTC_USD?limit=50"

Parameters:

Parameter Type Description
limit integer Number of orders to return (default: 100, max: 500)

WebSocket Price Stream

WebSocket

Subscribe to real-time price updates via WebSocket.

const ws = new WebSocket('wss://exverta.pro/ws');

ws.onopen = function() {
    // Subscribe to BTC/USD price updates
    ws.send(JSON.stringify({
        "method": "subscribe",
        "channel": "ticker",
        "symbol": "BTC/USD"
    }));
};

ws.onmessage = function(event) {
    const data = JSON.parse(event.data);
    console.log('Price update:', data);
};

Account Management

Get Account Information

GET
curl -X GET "https://exverta.pro/api/account" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Response Example:

{
  "success": true,
  "data": {
    "userId": "12345",
    "username": "trader123",
    "email": "[email protected]",
    "kycStatus": "verified",
    "accountType": "premium",
    "tradingPermissions": ["spot", "futures"],
    "balances": {
      "USD": {
        "available": 10000.00,
        "locked": 500.00,
        "total": 10500.00
      },
      "BTC": {
        "available": 0.5,
        "locked": 0.0,
        "total": 0.5
      }
    }
  }
}

Get Trading History

GET
curl -X GET "https://exverta.pro/api/trades?symbol=BTC_USD&limit=50" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Trading

Place New Order

POST

Place a new trading order (market, limit, stop-loss, etc.)

curl -X POST "https://exverta.pro/api/orders" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret" \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "BTC/USD",
    "side": "buy",
    "type": "limit",
    "amount": 0.1,
    "price": 42000.00,
    "timeInForce": "GTC"
  }'

Request Parameters:

Parameter Type Required Description
symbol string Yes Trading pair (e.g., BTC/USD)
side string Yes buy or sell
type string Yes market, limit, stop_loss, take_profit
amount decimal Yes Order quantity
price decimal Conditional Required for limit orders

Success Response:

{
  "success": true,
  "data": {
    "orderId": "550e8400-e29b-41d4-a716-446655440000",
    "symbol": "BTC/USD",
    "side": "buy",
    "type": "limit",
    "amount": 0.1,
    "price": 42000.00,
    "status": "pending",
    "timestamp": "2025-01-20T12:00:00Z",
    "fee": 2.10
  }
}
201 Created 400 Invalid Parameters 401 Unauthorized

Cancel Order

DELETE
curl -X DELETE "https://exverta.pro/api/orders/550e8400-e29b-41d4-a716-446655440000" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret"

Staking

Stake Tokens

POST
curl -X POST "https://exverta.pro/api/staking/stake" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret" \
  -H "Content-Type: application/json" \
  -d '{
    "currency": "ETH",
    "amount": 1.5,
    "duration": 30
  }'

Error Codes

Code Message Description
1000 Success Request completed successfully
2001 Invalid API Key API key is missing or invalid
2002 Insufficient Balance Not enough funds to complete the operation
2003 Rate Limit Exceeded Too many requests, please slow down
2004 Market Closed Trading is not available for this market
2005 Invalid Order Order parameters are invalid

SDKs & Libraries

JavaScript/Node.js

Official SDK for web and Node.js applications

npm install @exverta/api-sdk

Python

Python library for algorithmic trading

pip install exverta-python

Java

Java SDK for enterprise applications

Maven Central

Go

High-performance Go client library

go get github.com/exverta/go-api

Rust

Ultra-fast Rust implementation

cargo add exverta-rs

PHP

PHP package for web applications

composer require exverta/php-api

Need Help?

Our developer support team is here to help you integrate with the Exverta API.