Get Trail Order
GetTrailOrder
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | ConditionDetail is returned |
message | string ? (optional) | isSuccess = false error description is returned |
ConditionDetail Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
guid | string | Condition Serial Number |
batchNo | string | Condition Batch Number |
orderLevel | string | Condition Level |
lastTime | string | Last Modification Time |
parentGuid | string | Parent Serial Number |
symbol | string | Symbol |
orderAmount | string | Order Amount |
childBatchNo | string | Child Batch Number |
account | string | Account |
conditionContent | string | Condition Content |
action | string | COndition Action |
conditionBuySell | string | Condition Buy / Sell Type |
conditionSymbol | string | Symbol Name |
conditionPrice | string | Price |
conditionVolume | string | Volume |
conditionFilledVolume | string | Filled Volume |
createTime | string | Condition Creation Time |
startDate | string | Condition Start Date |
status | string | Status |
errorMessage | string | Error Message |
detailRecordsCount | string | Detail Number |
detailRecords | List | Detail Records |
>> guid | string | Condition Serial Number |
>> account | string | Account |
>> conditionContent | string | Condition Content |
>> action | string | COndition Action |
>> conditionBuySell | string | Condition Buy / Sell Type |
>> conditionSymbol | string | Symbol Name |
>> conditionPrice | string | Price |
>> conditionVolume | string | Volume |
>> conditionFilledVolume | string | Filled Volume |
>> createTime | string | Condition Creation Time |
>> startDate | string | Condition Start Date |
>> status | string | Status |
>> errorMessage | string | Error Message |
tpslCount | string | TP / SL Count Number |
tpslRecord | List | TP / SL Record |
>> guid | string | Condition Serial Number |
>> account | string | Account |
>> conditionContent | string | Condition Content |
>> action | string | COndition Action |
>> conditionBuySell | string | Condition Buy / Sell Type |
>> conditionSymbol | string | Symbol Name |
>> conditionPrice | string | Price |
>> conditionVolume | string | Volume |
>> conditionFilledVolume | string | Filled Volume |
>> createTime | string | Condition Creation Time |
>> startDate | string | Condition Start Date |
>> status | string | Status |
>> errorMessage | string | Error Message |
Request Example
sdk.Stock.GetTrailOrder(account);
Response Example
{
isSuccess = True,
message = ,
data = [
ConditionDetail {
Guid = 5c154a76-e7ef-4b8f-94b5-80bf08fa4b8e,
BatchNo = ,
OrderLevel = 0,
LastTime = 2024-08-02 16:45:01,
ConditionType = ,
ParentGuid = ,
Symbol = 2889,
OrderAmount = 0,
ChildBatchNo = ,
Account = 1307515,
ConditionContent = 從2024/08/02到2024/08/02內當國票金從1000(原始基準價),下跌達10%,持續至預定張數全部成交或期限到達為止,
Action = 下單,
ConditionBuySell = 現股買,
ConditionSymbol = 國票金 (2889),
ConditionPrice = 成交價(1) 檔(ROD),
ConditionVolume = 1張,
ConditionFilledVolume = 0張,
CreateTime = 2024-08-02 10:07:31,
StartDate = 2024/08/02,
Status = 條件單中止(I),
ErrorMessage = null,
DetailRecordsCount = 0,
DetailRecords = [],
TpslCount = 0,
TpslRecord = []
},
ConditionDetail
{
Guid = c71117c8-aa70-4477-9f04-ff4c73a4fad0,
BatchNo = "",
OrderLevel = 0,
LastTime = 2024-07-29 17:30:00,
ConditionType = ,
ParentGuid = ,
Symbol = 2330,
OrderAmount = 0,
ChildBatchNo = "",
Account = 1307515,
ConditionContent = 從2024/07/29到2024/07/29內當台積電從860(原始基準價),上漲達5%,持續至預定張數全部成交或期限到達為止,
Action = 下單,
ConditionBuySell = 現股買,
ConditionSymbol = 台積電 (2330),
ConditionPrice = 成交價(5) 檔(ROD),
ConditionVolume = 2張,
ConditionFilledVolume = 0張,
CreateTime = 2024-07-29 11:01:49,
StartDate = 2024/07/29,
Status = 條件單中止(I),
ErrorMessage = null,
DetailRecordsCount = 0,
DetailRecords = [],
TpslCount = 0,
TpslRecord = []
}
]
}