Trading APIs
About 1 min
Trading APIs are designed to handle any request that relates to market data. Requests are sent by a TigerHttpClient
object. TigerHttpClient
Class is the HTTP Client used for sending requests for market data and trading. You must initialize an instance of TigerHttpClient
。See detailed examples for how to initialize
Get Account Information
API | Descrption |
---|---|
TigerHttpRequest(MethodName.ACCOUNTS) | Get Account List |
PositionsRequest | Get Positions |
TigerHttpRequest(MethodName.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 |
---|---|
TigerHttpRequest(MethodName.PREVIEW_ORDER) | Get Order Preview (Global Account) |
QueryOrderRequest(MethodName.ORDERS) | Get Orders |
TigerHttpRequest(MethodName.ORDER_TRANSACTIONS) | Get Transaction Records |
QueryOrderRequest(MethodName.ACTIVE_ORDERS) | Get Open Orders |
QueryOrderRequest(MethodName.FILLED_ORDERS) | Get Filled Orders |
QueryOrderRequest(MethodName.INACTIVE_ORDERS) | Get Canceled Orders |
Place Order
API | Description |
---|---|
TradeOrderRequest | Place Order |
Cancel or Modify
API | Description |
---|---|
TigerHttpRequest(MethodName.MODIFY_ORDER) | Place Order |
TigerHttpRequest(MethodName.CANCEL_ORDER) | Cancel Order |