Wise Trade
Intelligent Trading Automation

API Reference

Complete reference documentation for the Wise Trade API. Build powerful trading applications with our RESTful API and real-time webhooks.

Base URL
https://api.yzetrade.com/v1
Authentication

Bearer Token & API Keys

Format

JSON Request/Response

API Endpoints

Comprehensive list of all available endpoints organized by category

POST
/api/v1/auth/login
Authentication
Authenticate user and obtain access token

Request

Body
{
  "email": "string",
  "password": "string"
}

Response

{
  "token": "string",
  "user": "User",
  "expiresIn": "number"
}
GET
/api/v1/user/profile
User
Get current user profile information

Request

Headers
{
  "Authorization": "Bearer {token}"
}

Response

{
  "id": "string",
  "email": "string",
  "role": "string",
  "createdAt": "datetime"
}
POST
/api/v1/funds
Funds
Create a new trading fund

Request

Headers
{
  "Authorization": "Bearer {token}"
}
Body
{
  "name": "string",
  "description": "string",
  "strategy": "string",
  "capital": "number",
  "riskLevel": "LOW | MEDIUM | HIGH"
}

Response

{
  "id": "string",
  "name": "string",
  "status": "ACTIVE | PAUSED | STOPPED",
  "createdAt": "datetime"
}
GET
/api/v1/funds/{id}
Funds
Get fund details and performance metrics

Request

Headers
{
  "Authorization": "Bearer {token}"
}

Response

{
  "id": "string",
  "name": "string",
  "performance": "PerformanceMetrics",
  "positions": "Position[]",
  "orders": "Order[]"
}
POST
/api/v1/signals
Signals
Webhook endpoint for TradingView alerts

Request

Headers
{
  "X-API-Key": "your-webhook-key"
}
Body
{
  "fundId": "string",
  "action": "BUY | SELL | CLOSE",
  "symbol": "string",
  "quantity": "number",
  "price": "number"
}

Response

{
  "orderId": "string",
  "status": "PENDING | FILLED | REJECTED",
  "message": "string"
}
GET
/api/v1/orders
Orders
List orders with filtering options

Request

Headers
{
  "Authorization": "Bearer {token}"
}
Query Parameters
{
  "fundId": "string (optional)",
  "status": "string (optional)",
  "limit": "number (default: 50)",
  "offset": "number (default: 0)"
}

Response

{
  "orders": "Order[]",
  "total": "number",
  "hasMore": "boolean"
}

Error Codes

Standard HTTP status codes and their meanings in our API

400
Bad Request
Invalid request parameters or body
401
Unauthorized
Missing or invalid authentication token
403
Forbidden
Insufficient permissions for this operation
404
Not Found
Requested resource does not exist
422
Validation Error
Request data failed validation
429
Rate Limited
Too many requests, please slow down
500
Internal Error
Something went wrong on our end

Rate Limits

API usage limits to ensure fair access and system stability

Authentication
5 requests/minute
Login and token refresh
General API
100 requests/minute
Most API endpoints
Trading Signals
1000 requests/minute
Webhook endpoints
Market Data
500 requests/minute
Price and chart data

Official SDKs

Get started quickly with our official software development kits

JavaScript/TypeScript
npm install @yzetrade/sdk

Example Usage

import { YzeTradeClient } from '@yzetrade/sdk';

const client = new YzeTradeClient({
  apiKey: 'your-api-key',
  environment: 'production'
});

const funds = await client.funds.list();
Python
pip install yzetrade-python

Example Usage

from yzetrade import YzeTradeClient

client = YzeTradeClient(
    api_key='your-api-key',
    environment='production'
)

funds = client.funds.list()

Ready to Build?

Get your API key and start integrating with Wise Trade today. Join hundreds of developers building the future of trading.