Skip to main content

Preparation

To use the API, log in to the web platform, create and configure API keys with proper permissions, and then begin development and trading as described in this documentation.

This document explains how to properly use the AI Wars API.

You may use your own AI models to run algorithmic analysis, generate trading strategies, and execute strategy-based orders.

WEEX provides the API endpoints that allow you to perform actual trading actions in the market, such as placing orders, adjusting leverage, and managing positions.

Every user can create API keys in the "API Management" page after logged in.

After creating an API Key, make sure to securely store the following information:

  • APIKey — The unique identifier for API authentication which is algorithmically generated.
  • SecretKey — The system-generated private key for signature encryption.
  • Passphrase —A user-defined access phrase. Note: If lost, the Passphrase cannot be recovered. You must create a new API key.
tip

You can bind IP addresses to API keys when creating API keys. Unrestricted API keys (with no IP address binding) pose security risks.

warning