Skip to main content

Get Condition Order By Guid

GetConditionOrderById

Request Parameter

ParameterTypeMeaning
accountAccountAccount
guidstringCondition Serial Number

Result Response

ParameterTypeMeaning
isSuccessboolInterface result
dataObjectConditionDetail is returned
messagestring ? (optional)isSuccess = false error description is returned

ConditionDetail Parameter

Return type : Object

ParameterTypeMeaning
guidstringCondition Serial Number
batchNostringCondition Batch Number
orderLevelstringCondition Level
lastTimestringLast Modification Time
parentGuidstringParent Serial Number
symbolstringSymbol
orderAmountstringOrder Amount
childBatchNostringChild Batch Number
accountstringAccount
conditionContentstringCondition Content
actionstringCOndition Action
conditionBuySellstringCondition Buy / Sell Type
conditionSymbolstringSymbol Name
conditionPricestringPrice
conditionVolumestringVolume
conditionFilledVolumestringFilled Volume
createTimestringCondition Creation Time
startDatestringCondition Start Date
statusstringStatus
errorMessagestringError Message
detailRecordsCountstringDetail Number
detailRecordsListDetail Records
>> guidstringCondition Serial Number
>> accountstringAccount
>> conditionContentstringCondition Content
>> actionstringCOndition Action
>> conditionBuySellstringCondition Buy / Sell Type
>> conditionSymbolstringSymbol Name
>> conditionPricestringPrice
>> conditionVolumestringVolume
>> conditionFilledVolumestringFilled Volume
>> createTimestringCondition Creation Time
>> startDatestringCondition Start Date
>> statusstringStatus
>> errorMessagestringError Message
tpslCountstringTP / SL Count Number
tpslRecordListTP / SL Record
>> guidstringCondition Serial Number
>> accountstringAccount
>> conditionContentstringCondition Content
>> actionstringCOndition Action
>> conditionBuySellstringCondition Buy / Sell Type
>> conditionSymbolstringSymbol Name
>> conditionPricestringPrice
>> conditionVolumestringVolume
>> conditionFilledVolumestringFilled Volume
>> createTimestringCondition Creation Time
>> startDatestringCondition Start Date
>> statusstringStatus
>> errorMessagestringError Message

Request Example

sdk.Stock.GetConditionOrderById(account,"8ff3472b-185a-488c-be5a-b478deda080c");

Response Example

{
isSuccess = True,
message = ,
data = [
ConditionDetail {
guid = 8ff3472b-185a-488c-be5a-b478deda080c,
batchNo = ,
orderLevel = 1,
lastTime = 2024-03-14 12:39:02,
conditionType = 多條件,
parentGuid = 58e7a51e-9701-4d26-bc16-18a392a840bd,
symbol = 2330,
orderAmount = 0,
childBatchNo = ,
account = 1307515,
conditionContent = 當自2024/03/142024/07/04內台積電成交價大於等於580元 全部成交為止,
action = 下單(次日回補),
conditionBuySell = 現股賣,
conditionSymbol = 台積電 現股賣,
conditionPrice = 580(ROD),
conditionVolume = 5,
conditionFilledVolume = 0,
createTime = 2024-03-14 12:39:22,
startDate = 2024/03/14,
status = 未生效(W),
errorMessage = null,
detailRecordsCount = 0,
detailRecords = ,
tPSLCount = 0,
tPSLRecord =
},
ConditionDetail {
guid = 8ff3472b-185a-488c-be5a-b478deda080c,
batchNo = ,
orderLevel = 1,
lastTime = 2024-03-14 12:39:02,
conditionType = 多條件,
parentGuid = 58e7a51e-9701-4d26-bc16-18a392a840bd,
symbol = 2330,
orderAmount = 0,
childBatchNo = ,
account = 1307515,
conditionContent = 當自2024/03/142024/07/04內台積電成交價小於等於570元 全部成交為止,
action = 下單(次日回補),
conditionBuySell = 現股賣,
conditionSymbol = 台積電 現股賣,
conditionPrice = 市價(ROD),
conditionVolume = 5,
conditionFilledVolume = 0,
createTime = 2024-03-14 12:39:22,
startDate = 2024/03/14,
status = 未生效(W),
errorMessage = null,
detailRecordsCount = 0,
detailRecords =,
tPSLCount = 0,
tPSLRecord =
},
ConditionDetail {
guid = ec757279-bcb3-46f4-80ac-fccfc786bc8d,
batchNo = ,
orderLevel = 0,
lastTime = 2024-05-21 10:30:00,
conditionType = 多條件,
parentGuid = ec757279-bcb3-46f4-80ac-fccfc786bc8d,
symbol = 2330,
orderAmount = 0,
childBatchNo = ,
account = 1307515,
conditionContent = 當自2024/03/142024/07/04內台積電成交價大於等於575元,且 台積電成交總量大於等於1001張,且 台積電時間大於等於10:30:00 部份成交為止,
action = 下單(當沖),
conditionBuySell = 現股買,
conditionSymbol = 台積電 現股買,
conditionPrice = 576(ROD),
conditionVolume = 5,
conditionFilledVolume = 0,
createTime = 2024-03-14 12:30:02,
startDate = 2024/03/14,
status = 觸發-委託失敗(X),
errorMessage = 單價輸入錯誤[4385715],
detailRecordsCount = 0,
detailRecords = [],
tPSLCount = 2,
tPSLRecord = [
ParentChildRecord
{
guid = c94b552a-22da-43e4-be44-f27a9c2026e1,
account = 1307515,
conditionContent = 當自2024/03/142024/07/04內台積電成交價大於等於580元 全部成交為止,
action = 下單(次日回補),
conditionBuySell = 現股賣,
conditionSymbol = 台積電 現股賣,
conditionPrice = 580(ROD),
conditionVolume = 5,
conditionFilledVolume = 0,
startDate = 2024/03/14,
status = 未生效(W),
errorMessage =
},
ParentChildRecord
{
guid = c94b552a-22da-43e4-be44-f27a9c2026e1,
account = 1307515,
conditionContent = 當自2024/03/142024/07/04內台積電成交價小於等於570元 全部成交為止,
action = 下單(次日回補),
conditionBuySell = 現股賣,
conditionSymbol = 台積電 現股賣,
conditionPrice = 市價(ROD),
conditionVolume = 5,
conditionFilledVolume = 0,
startDate = 2024/03/14,
status = 未生效(W),
errorMessage =
}
]
}
]
}