Trading APIs
Less than 1 minute
Trading APIs
Trading APIs are designed to handle any request that relates to market data. Requests are sent by a TradeClient
object. TradeClient
Class is the HTTP Client used for sending requests for trading. You must initialize an instance of TradeClient
。See detailed examples for how to initialize
Get Account Information
API | Descrption |
---|---|
TigerRequest(TradeApiService.ACCOUNTS) | Get Account List |
TigerRequest(TradeApiService.POSITIONS) | Get Positions |
TigerRequest(TradeApiService.ASSETS) | Get Assets |
PrimeAssetRequest | Get Asset Information |
PrimeAnalyticsAssetRequest | Get Historical Asset Analysis Data |
SegmentFundAvailableRequest | Get Available Fund |
SegmentFundTransferRequest | Transfer Fund |
SegmentFundCancelRequest | Cancel Funds Transfer |
SegmentFundHistoryRequest | Query Historical Funds Transfer |
EstimateTradableQuantityRequest | Get Max Tradable Quantity |
Get Contract Information
API | Description |
---|---|
ContractRequest | Get Contract |
ContractsRequest | Get Contracts |
QuoteContractRequest | Get Contract for Options and Warrants |
Get Order Information
API | Description |
---|---|
TigerRequest(TradeApiService.ORDERS) | Get All Orders |
TigerRequest(TradeApiService.ORDER_TRANSACTIONS) | Get Transaction Records |
TigerRequest(TradeApiService.ACTIVE_ORDERS) | Get Open Orders |
TigerRequest(TradeApiService.FILLED_ORDERS) | Get Filled Orders |
TigerRequest(TradeApiService.INACTIVE_ORDERS) | Get Canceled Orders |
Place Order
API | Description |
---|---|
TradeOrderRequest | Place Order |
Cancel or Modify
API | Description |
---|---|
TigerRequest(TradeApiService.MODIFY_ORDER) | Place Order |
TigerRequest(TradeApiService.CANCEL_ORDER) | Cancel Order |