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

APIDescrption
TigerHttpRequest(MethodName.ACCOUNTS)Get Account List
PositionsRequestGet Positions
TigerHttpRequest(MethodName.ASSETS)Get Assets
PrimeAssetRequestGet Asset Information
PrimeAnalyticsAssetRequestGet Historical Asset Analysis Data
SegmentFundAvailableRequestGet Available Fund
SegmentFundTransferRequestTransfer Fund
SegmentFundCancelRequestCancel Funds Transfer
SegmentFundHistoryRequestQuery Historical Funds Transfer
EstimateTradableQuantityRequestGet Max Tradable Quantity

Get Contract Information

APIDescription
ContractRequestGet Contract
ContractsRequestGet Contracts
QuoteContractRequestGet Contract for Options and Warrants

Get Order Information

APIDescription
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

APIDescription
TradeOrderRequestPlace Order

Cancel or Modify

APIDescription
TigerHttpRequest(MethodName.MODIFY_ORDER)Place Order
TigerHttpRequest(MethodName.CANCEL_ORDER)Cancel Order
Last update: