Introduction
The Trading API is divided into the Trade API and Data Events API, supporting trading and order status change subscriptions via HTTP and gRPC protocols. Its purpose is to provide investors with convenient, fast, and secure trading services.
To simplify the integration process, we provide SDKs for Python and JAVA. These SDKs are fully featured and enable developers to get started quickly.
Main Features:
Account Information: Query account balance and holdings information.
Trade Management: Create, modify, and cancel orders.
Subscribe to Real-Time Information: Subscribe to order status changes.
Trading API Overview
| Type | Function Overview | Protocol | Description | Threshold |
|---|---|---|---|---|
| Instruments | Get Instruments | HTTP | Retrieve a list of instruments for the given symbols | 10/30s |
| Get Futures Contracts | HTTP | Retrieve futures contracts for the given symbols | 10/30s | |
| Get Futures Contract By Code | HTTP | Retrieve a futures contract using the base code | 10/30s | |
| Get Futures Products | HTTP | Retrieve the list of available futures products for a specified market. | 10/30s | |
| Get Crypto Instrument | HTTP | Retrieve a list of cryptocurrency instruments for the specified symbols | 10/30s | |
| Account | Account List | HTTP | Query account list | 10/30s |
| Account Balance | HTTP | Query account balance by account id | 2/2s | |
| Account Positions | HTTP | Query account position list by account id | 2/2s | |
| Orders | Estimate Orders | HTTP | Estimate the amount and cost for orders (supports stocks, options, futures, and crypto) | 150/10s |
| Place Orders | HTTP | Place orders (supports stocks, options, futures, and crypto) | 600/60s | |
| Replace Orders | HTTP | Replace existing orders (supports stocks, options, futures, and crypto) | 600/60s | |
| Cancel Order | HTTP | Cancel ordersusing the provided client_order_id (supports stocks, options, futures, and crypto) | 600/60s | |
| Equity Order | Estimate Equity Order | HTTP | Calculate the estimated order amount and associated costs based on the input information. Supports basic equity orders | 150/10s |
| Place Equity Order | HTTP | Place equity orders | 600/60s | |
| Replace Equity Order | HTTP | Modify equity orders | 600/60s | |
| Cancel Equity Order | HTTP | Cancel the equity order according to the incoming client_order_id | 600/60s | |
| Option Order | Estimate Option Order | HTTP | Calculate estimated amount and fees based on the input information, supporting general options orders | 150/10s |
| Place Option Order | HTTP | Place options orders | 600/60s | |
| Replace Option Order | HTTP | Modify existing options orders | 600/60s | |
| Cancel Option Order | HTTP | Cancel options orders using the provided client_order_id | 600/60s | |
| Query Order | Query Historical Orders | HTTP | Retrieve historical order information, including both equities and options | 2/2s |
| Query Open Order | HTTP | Query pending orders by page | 2/2s | |
| Query Order Details | HTTP | Retrieve detailed information about specific orders, including both equities and options | 2/2s | |
| Event | Trading Event Subscription | gRPC | Subsccribe to receive live updates on order status changes | \ |