API v1 • Live & Production Ready

Copydium API Reference

Build powerful copy trading applications with our comprehensive REST API. Interactive documentation powered by Scalarwith real-time testing capabilities.

< 100ms
API Response Time
99.9%
Uptime
38+
Total Endpoints
1000/hour
Rate Limit

Why Choose Copydium API?

Built for developers, designed for scale, and optimized for performance.

Enterprise Security

Military-grade security with API key authentication, HTTPS/TLS 1.3+, and comprehensive input validation.

Real-Time Performance

Sub-100ms response times, real-time WebSocket connections, and live market data integration.

Developer Experience

Interactive documentation with Scalar, comprehensive SDKs, and detailed code examples.

Rate Limits & Quotas

General API Calls1000/hour
Trading Operations100/minute
Authentication10/minute

Error Handling

{
  "code": 400,
  "message": "Invalid request parameters",
  "details": [
    {
      "field": "accountId",
      "message": "Account ID is required"
    }
  ]
}

Code Examples

Get started quickly with these common API usage examples.

Authentication

Secure API access with your API key

curl https://api.copydium.com/api/v1/users \
  -H "X-API-Key: sk_live_..." \
  -H "Content-Type: application/json"

Create Trading Account

Connect a MetaTrader account to the platform

curl https://api.copydium.com/api/v1/taccounts \
  -H "X-API-Key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "serverId": "srv_123",
    "accountId": "12345678",
    "platform": "TRADE_PLATFORM_MT4",
    "accountType": "ACCOUNT_TYPE_DEMO"
  }'

Create Copy Connection

Set up automated copy trading between accounts

curl https://api.copydium.com/api/v1/connections \
  -H "X-API-Key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "copyConnectionName": "EUR/USD Strategy",
    "masterAccount": {
      "accountId": "12345678",
      "tradePlatform": "TRADE_PLATFORM_MT4"
    },
    "followerAccount": {
      "accountId": "87654321",
      "tradePlatform": "TRADE_PLATFORM_MT4"
    }
  }'

Base URL

Production:
https://api.copydium.com/api/v1

Authentication

Include your API key in the X-API-Key header.

# Example Request
curl https://api.copydium.com/api/v1/users \
-H "X-API-Key: sk_live_..." \
-H "Content-Type: application/json"

Ready to Start Building?

Get your API key and start integrating Copydium's powerful copy trading capabilities into your application.