Skip to main content

Single-Condition Order

SingleCondition

Request Parameters

ParameterTypeDescription
accountAccountAccount
start_datestringCondition monitoring start time
end_datestringCondition monitoring end time
stop_signStopSignStop condition: Full until fully filled, Partial until partially filled, or UntilEnd until the validity period ends
conditionConditionTrigger condition
OrderObjectFutOptConditionOrderOrder details

Result

ParameterTypeDescription
isSuccessboolWhether the request succeeded
dataObjectCondition-order result
messagestring ? (optional)Error message returned when isSuccess = false

ConditionOrderResult Fields

Return type: Object

ParameterTypeDescription
guidstringCondition-order ID

Request Example

// Define the condition
var condition = new Condition(
TradingType.Reference,
"TXO20000E4",
TriggerContent.MatchedPrice,
"100",
Operator.LessThan
);

var order = new FutOptConditionOrder(
BsAction.Buy,
"TXO20000E4",
"500",
1,
FutOptConditionMarketType.Option,
FutOptConditionPriceType.Limit,
TimeInForce.Rod,
FutOptConditionOrderType.New,
);


sdk.FutOpt.SingleCondition(account, "20240426", "20240430", StopSign.Full, condition, order);

Response Example


{
isSuccess = True,
message = ,
data = ConditionOrderResult {
guid = 44150047-8977-40b1-953c-ce2XXXXXX
}
}