Multi-Condition
MultiCondition
Request Parameter
| Parameter | Type | Meaning | 
|---|---|---|
| account | Account | Account | 
| startDate | string | Condition Start Date | 
| endDate | string | Condition End Date | 
| stopSign | StopSign | Stop Condition : Full Until Fully filled、Partial Once Filled happened 、 UntilEnd Until Expiry | 
| MultiCondition | Condition List | List of Condition Content | 
| ConditionOrder Object | ConditionOrder Object | Order Object | 
Result Response
| Parameter | Type | Meaning | 
|---|---|---|
| isSuccess | bool | Interface result | 
| data | Object | ConditionOrderResult is returned | 
| message | string ? (optional) | isSuccess = false error description is returned | 
ConditionOrderResult Parameter
Return type : Object
| Parameter | Type | Meaning | 
|---|---|---|
| guid | string | Condition Serial Number | 
Request Example
// Condition Content 
var condition1 = new Condition(
    TradingType.Reference,
    "2881",
    TriggerContent.MatchedPrice,
    "66",
    Operator.LessThan
);
var condition2 = new Condition(
    TradingType.Reference,
    "2881",
    TriggerContent.TotalQuantity,
    "8000",
    Operator.LessThan
);
List<Condition> conditions = new List<Condition>();
conditions.Add(condition1);
conditions.Add(condition2);
var order = new Order(
    BsAction.Buy,
    "2881",
    "66",
    2000,
    ConditionMarketType.Common,
    ConditionPriceType.Limit,
    TimeInForce.Rod,
    ConditionOrderType.Stock
);
sdk.Stock.MultiCondition(account, "20240426", "20240430", StopSign.Full, conditions, order);
Response Example
{
    isSuccess = True,
    message = ,
    data = ConditionOrderResult {
            guid = 44150047-8977-40b1-953c-ce2XXXXXX
        }
}