Skip to main content

Conditional order query By conditional order number

GetConditionOrderById

Input parameters

ParametersCategoryDescription
accountAccountaccount
guidstringcondition order number

Result return

ParametersCategoryDescription
isSuccessboolWhether it was successful
dataListConditional order return information
messagestring ? (optional)Return error message when isSuccess = false

Commission information ConditionDetail field

Return type : Object

ParametersCategoryDescription
guidstringcondition order number
batchNostringorder batch number
orderLevelstringConditional single level
lastTimestringupdate time
parentGuidstringparent number
symbolstringproduct code
orderAmountstringOrder amount
childBatchNostringChild order batch number
accountstringaccount number
conditionContentstringcondition content
actionstringprocessing method
conditionBuySellstringBuy and sell type
conditionSymbolstringproduct name
conditionPricestringprice
conditionVolumestringOrder quantity
conditionFilledVolumestringTransaction quantity
createTimestringCreation time
startDatestringAppointment start time
statusstringcurrent status
errorMessagestringCurrent status exception description
detailRecordsCountstringQuery the number of detailed records
detailRecordsListQuery detailed information
>> guidstringcondition order number
>> accountstringaccount number
>> conditionContentstringcondition content
>> actionstringprocessing method
>> conditionBuySellstringBuy and sell type
>> conditionSymbolstringproduct name
>> conditionPricestringprice
>> conditionVolumestringOrder quantity
>> conditionFilledVolumestringTransaction quantity
>> startDatestringAppointment time
>> statusstringcurrent status
>> errorMessagestringCurrent status exception description
tpslCountstringThe number of stop loss and profit stops
tpslRecordListStop loss and stop profit details
>> guidstringcondition order number
>> accountstringaccount number
>> conditionContentstringcondition content
>> actionstringprocessing method
>> conditionBuySellstringBuy and sell type
>> conditionSymbolstringproduct name
>> conditionPricestringprice
>> conditionVolumestringOrder quantity
>> conditionFilledVolumestringTransaction quantity
>> startDatestringAppointment time
>> statusstringcurrent status
>> errorMessagestringCurrent status exception description

Request example

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

Return 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 = when2024/03/142024/07/04withinTaiwanproductelectricfilledpricegreateratequalat580元 allfilledis止,
action = downorders(次day回補),
conditionBuySell = currentstockSell,
conditionSymbol = Taiwanproductelectric currentstockSell,
conditionPrice = 580(ROD),
conditionVolume = 5lots,
conditionFilledVolume = 0lots,
createTime = 2024-03-14 12:39:22,
startDate = 2024/03/14,
status = 未生效(W),
errorMessage = null,
detailRecordsCount = 0,
detailRecords = ,
tPSLCount = 0,
tPSLRecord =
}

}