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 |
|---|---|---|---|
| Account | Account List | HTTP | Query account list |
| Account Balance | HTTP | Query account balance by account id | |
| Account Positions | HTTP | Query account position list by account id | |
| Trading | Estimate Equity Order | HTTP | Calculate the estimated order amount and associated costs based on the input information. Supports basic equity orders |
| Place Equity Order | HTTP | Place equity orders | |
| Modify Equity Order | HTTP | Modify equity orders | |
| Cancel Equity Order | HTTP | Cancel the equity order according to the incoming client_order_id | |
| Estimate Option Order | HTTP | Calculate estimated amount and fees based on the input information, supporting general options orders | |
| Place Option Order | HTTP | Place options orders | |
| Modify Option Order | HTTP | Modify existing options orders | |
| Cancel Option Order | HTTP | Cancel options orders using the provided client_order_id | |
| Query Historical Orders | HTTP | Retrieve historical order information, including both equities and options | |
| Query Order Details | HTTP | Retrieve detailed information about specific orders, including both equities and options | |
| Trading Event Subscription | Trading Event Subscription | gRPC | Subsccribe to receive live updates on order status changes |