Order Queries
State-changing operations must prevent duplicate submission.
Get Order Number
Operation
TradeApiService.ORDER_NO = order_no. Uses server method order_no.
Request
TigerRequest<TigerDictResponse>ModelValue: TradeModel.
Parameters
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Auto-filled if empty | TradeClient uses DefaultAccount when empty |
SecretKey | string | secret_key | null | no | — |
Return
TigerDictResponse inherits TigerResponse; its data property is dictionary from string to object. Key SDK fields: dynamic fields.
Example
TigerRequest<TigerDictResponse> request = new()
{
ApiMethodName = TradeApiService.ORDER_NO,
ModelValue = new TradeModel { Account = tradeClient.GetDefaultAccount }
};
TigerDictResponse? response = await tradeClient.ExecuteAsync(request);Response type
Dictionary<string, object>? data = response?.Data; // null when response or data is absentRelated APIs
See Requests, responses, and operations.
Get Orders
Operation
TradeApiService.ORDERS = orders. Uses server method orders.
Request
TigerRequest<OrderBatchResponse>ModelValue: QueryOrderModel.
Parameters
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Auto-filled if empty | TradeClient uses DefaultAccount when empty |
SecretKey | string | secret_key | null | no | — |
Id | Int64 | id | None (omitted if not set) | Required | — |
IsShowCharges | Boolean | show_charges | None (omitted if not set) | Optional | — |
SegType | SegmentType | seg_type | None (omitted if not set) | Optional | — |
SecType | SecType | sec_type | None (omitted if not set) | Optional | — |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
Symbol | string | symbol | null | Required | — |
Right | string (nullable) | right | null | Optional | — |
Strike | string (nullable) | strike | null | Optional | — |
Expiry | string (nullable) | expiry | null | Optional | — |
StartDate | Int64 | start_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndDate | Int64 | end_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 100 | Optional | Positive integer |
SortBy | OrderSortBy | sort_by | None (omitted if not set) | Optional | — |
PageToken | string | page_token | null | Optional | — |
Return
OrderBatchResponse inherits TigerResponse; its data property is OrderBatchItem. Key SDK fields: Items: list of TradeOrder.
Example
TigerRequest<OrderBatchResponse> request = new()
{
ApiMethodName = TradeApiService.ORDERS,
ModelValue = new QueryOrderModel { Account = tradeClient.GetDefaultAccount, Id = 1234567890L, SegType = SegmentType.SEC, SecType = SecType.STK, Market = Market.US }
};
OrderBatchResponse? response = await tradeClient.ExecuteAsync(request);Response type
OrderBatchItem? data = response?.Data; // null when response or data is absentResponse Example
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"items": [
{
"id": 123456,
"orderId": 789012,
"symbol": "AAPL",
"action": "BUY",
"orderType": "LMT",
"totalQuantity": 100,
"filledQuantity": 100,
"limitPrice": 150.0,
"avgFillPrice": 149.95,
"status": "Filled",
"openTime": 1785441600000,
"latestTime": 1785441650000
}
]
}
}Related APIs
See Requests, responses, and operations.
Get Active Orders
Operation
TradeApiService.ACTIVE_ORDERS = active_orders. Uses server method active_orders.
Request
TigerRequest<OrderBatchResponse>ModelValue: QueryOrderModel.
Parameters
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Auto-filled if empty | TradeClient uses DefaultAccount when empty |
SecretKey | string | secret_key | null | no | — |
Id | Int64 | id | None (omitted if not set) | Required | — |
IsShowCharges | Boolean | show_charges | None (omitted if not set) | Optional | — |
SegType | SegmentType | seg_type | None (omitted if not set) | Optional | — |
SecType | SecType | sec_type | None (omitted if not set) | Optional | — |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
Symbol | string | symbol | null | Required | — |
Right | string (nullable) | right | null | Optional | — |
Strike | string (nullable) | strike | null | Optional | — |
Expiry | string (nullable) | expiry | null | Optional | — |
StartDate | Int64 | start_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndDate | Int64 | end_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 100 | Optional | Positive integer |
SortBy | OrderSortBy | sort_by | None (omitted if not set) | Optional | — |
PageToken | string | page_token | null | Optional | — |
Return
OrderBatchResponse inherits TigerResponse; its data property is OrderBatchItem. Key SDK fields: Items: list of TradeOrder.
Example
TigerRequest<OrderBatchResponse> request = new()
{
ApiMethodName = TradeApiService.ACTIVE_ORDERS,
ModelValue = new QueryOrderModel { Account = tradeClient.GetDefaultAccount, Id = 1234567890L, SegType = SegmentType.SEC, SecType = SecType.STK, Market = Market.US }
};
OrderBatchResponse? response = await tradeClient.ExecuteAsync(request);Response type
OrderBatchItem? data = response?.Data; // null when response or data is absentResponse Example
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"items": [
{
"id": 123457,
"orderId": 789013,
"symbol": "TSLA",
"action": "BUY",
"orderType": "LMT",
"totalQuantity": 50,
"filledQuantity": 0,
"limitPrice": 280.0,
"status": "PendingSubmit",
"openTime": 1785527000000
}
]
}
}Related APIs
See Requests, responses, and operations.
Get Inactive Orders
Operation
TradeApiService.INACTIVE_ORDERS = inactive_orders. Uses server method inactive_orders.
Request
TigerRequest<OrderBatchResponse>ModelValue: QueryOrderModel.
Parameters
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Auto-filled if empty | TradeClient uses DefaultAccount when empty |
SecretKey | string | secret_key | null | no | — |
Id | Int64 | id | None (omitted if not set) | Required | — |
IsShowCharges | Boolean | show_charges | None (omitted if not set) | Optional | — |
SegType | SegmentType | seg_type | None (omitted if not set) | Optional | — |
SecType | SecType | sec_type | None (omitted if not set) | Optional | — |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
Symbol | string | symbol | null | Required | — |
Right | string (nullable) | right | null | Optional | — |
Strike | string (nullable) | strike | null | Optional | — |
Expiry | string (nullable) | expiry | null | Optional | — |
StartDate | Int64 | start_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndDate | Int64 | end_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 100 | Optional | Positive integer |
SortBy | OrderSortBy | sort_by | None (omitted if not set) | Optional | — |
PageToken | string | page_token | null | Optional | — |
Return
OrderBatchResponse inherits TigerResponse; its data property is OrderBatchItem. Key SDK fields: Items: list of TradeOrder.
Example
TigerRequest<OrderBatchResponse> request = new()
{
ApiMethodName = TradeApiService.INACTIVE_ORDERS,
ModelValue = new QueryOrderModel { Account = tradeClient.GetDefaultAccount, Id = 1234567890L, SegType = SegmentType.SEC, SecType = SecType.STK, Market = Market.US }
};
OrderBatchResponse? response = await tradeClient.ExecuteAsync(request);Response type
OrderBatchItem? data = response?.Data; // null when response or data is absentResponse Example
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"items": [
{
"id": 123456,
"orderId": 789012,
"symbol": "AAPL",
"action": "BUY",
"orderType": "LMT",
"totalQuantity": 100,
"filledQuantity": 100,
"limitPrice": 150.0,
"avgFillPrice": 149.95,
"status": "Filled"
}
]
}
}Related APIs
See Requests, responses, and operations.
Get Filled Orders
Operation
TradeApiService.FILLED_ORDERS = filled_orders. Uses server method filled_orders.
Request
TigerRequest<OrderBatchResponse>ModelValue: QueryOrderModel.
Parameters
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Auto-filled if empty | TradeClient uses DefaultAccount when empty |
SecretKey | string | secret_key | null | no | — |
Id | Int64 | id | None (omitted if not set) | Required | — |
IsShowCharges | Boolean | show_charges | None (omitted if not set) | Optional | — |
SegType | SegmentType | seg_type | None (omitted if not set) | Optional | — |
SecType | SecType | sec_type | None (omitted if not set) | Optional | — |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
Symbol | string | symbol | null | Required | — |
Right | string (nullable) | right | null | Optional | — |
Strike | string (nullable) | strike | null | Optional | — |
Expiry | string (nullable) | expiry | null | Optional | — |
StartDate | Int64 | start_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndDate | Int64 | end_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 100 | Optional | Positive integer |
SortBy | OrderSortBy | sort_by | None (omitted if not set) | Optional | — |
PageToken | string | page_token | null | Optional | — |
Return
OrderBatchResponse inherits TigerResponse; its data property is OrderBatchItem. Key SDK fields: Items: list of TradeOrder.
Example
TigerRequest<OrderBatchResponse> request = new()
{
ApiMethodName = TradeApiService.FILLED_ORDERS,
ModelValue = new QueryOrderModel { Account = tradeClient.GetDefaultAccount, Id = 1234567890L, SegType = SegmentType.SEC, SecType = SecType.STK, Market = Market.US }
};
OrderBatchResponse? response = await tradeClient.ExecuteAsync(request);Response type
OrderBatchItem? data = response?.Data; // null when response or data is absentResponse Example
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"items": [
{
"id": 123456,
"orderId": 789012,
"symbol": "AAPL",
"action": "BUY",
"orderType": "LMT",
"totalQuantity": 100,
"filledQuantity": 100,
"limitPrice": 150.0,
"avgFillPrice": 149.95,
"status": "Filled"
}
]
}
}Related APIs
See Requests, responses, and operations.
Get Transactions
Operation
TradeApiService.ORDER_TRANSACTIONS = order_transactions. Uses server method order_transactions.
Request
TigerRequest<OrderTransactionsResponse>ModelValue: OrderTransactionsModel.
Parameters
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Auto-filled if empty | TradeClient uses DefaultAccount when empty |
SecretKey | string | secret_key | null | no | — |
OrderId | Int64 | order_id | None (omitted if not set) | Optional | — |
SecType | SecType | sec_type | None (omitted if not set) | Optional | — |
Symbol | string | symbol | null | Required | — |
Right | string (nullable) | right | null | Optional | — |
Strike | string (nullable) | strike | null | Optional | — |
Expiry | string (nullable) | expiry | null | Optional | — |
StartDate | Int64 | start_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndDate | Int64 | end_date | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 20 | Optional | Positive integer |
Return
OrderTransactionsResponse inherits TigerResponse; its data property is OrderTransactionsItem. Key SDK fields: Items: list of OrderTransactions.
Example
TigerRequest<OrderTransactionsResponse> request = new()
{
ApiMethodName = TradeApiService.ORDER_TRANSACTIONS,
ModelValue = new OrderTransactionsModel { Account = tradeClient.GetDefaultAccount, OrderId = 1234567890L, SecType = SecType.STK, Symbol = "AAPL", Strike = "200" }
};
OrderTransactionsResponse? response = await tradeClient.ExecuteAsync(request);Response type
OrderTransactionsItem? data = response?.Data; // null when response or data is absentResponse Example
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"id": 123456,
"orderId": 789012,
"symbol": "AAPL",
"action": "BUY",
"filledQuantity": 100,
"filledPrice": 149.95,
"transactionTime": 1785441650000
}
]
}Related APIs
Updated 1 day ago
