Get Condition Order
get_condition_order
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
marketType | FutOptConditionMarketType (Optional) default : Regular Session | Market Type |
condition_status | ConditionStatus (Optional) | Condition Status |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | list | ConditionDetail is returned |
message | string ? (optional) | isSuccess = false error description is returned |
ConditionDetail Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
guid | string | Condition Sequence Number |
batch_no | string | Batch number |
order_level | string | Condition Level : 0 parent、1、2 Child |
last_time | string | Last Update Time |
parent_guid | string | Parent Sequence Number |
symbol | string | Symbol |
order_amount | string | Order Amount |
child_batch_no | string | Chlid Batch Number |
account | string | Account |
condition_content | string | Condition Content |
action | string | Condition Trigger Action |
condition_buy_sell | string | Buy / Sell Action |
condition_symbol | string | Symbol Name |
condition_price | string | Order Price |
condition_volume | string | Order Volume |
condition_filled_volume | string | Filled Volume |
create_time | string | Condition Creation Time |
start_date | string | Condition Start Date |
status | string | Status |
error_message | string | Error Message |
detail_records_count | string | Detail Count |
detail_records | List | Detail Content |
>> guid | string | Condition Sequence Number |
>> account | string | Account |
>> condition_content | string | Condition Content |
>> action | string | Condition Trigger Action |
>> condition_buy_sell | string | Buy / Sell Action |
>> condition_symbol | string | Symbol Name |
>> condition_price | string | Symbol Price |
>> condition_volume | string | Order Volume |
>> condition_filled_volume | string | Filled Volume |
>> start_date | string | Condition Start Date |
>> status | string | Status |
>> error_message | string | Error Message |
tpslCount | string | Take Profit / Stop Loss Count |
tpslRecord | List | Take Profit / Stop Loss Content |
>> guid | string | Condition Sequence Number |
>> account | string | Account |
>> condition_content | string | Condition Content |
>> action | string | Condition Trigger Action |
>> condition_buy_sell | string | Buy / Sell Action |
>> condition_symbol | string | Symbol Name |
>> condition_price | string | Symbol Price |
>> condition_volume | string | Order Volume |
>> condition_filled_volume | string | Filled Volume |
>> start_date | string | Condition Start Date |
>> status | string | Status |
>> error_message | string | Error Message |
Request Example
sdk.futopt.get_condition_order(account)
Response Example
Result {
is_success: True,
message: None,
data :[
ConditionDetail {
guid: "adada47e-dea3-4a5a-9eff-d36bd7a71e87",
batch_no: "",
order_level: "0",
last_time: "2024-11-15 10:38:48",
condition_type: "觸價",
parent_guid: "adada47e-dea3-4a5a-9eff-d36bd7a71e87",
symbol: "FIMTX202411",
order_amount: "0",
child_batch_no: "",
account: "9974825",
condition_content: "當自2024/11/15至2024/11/20內台指期202412成交價大於21000點 全部成交為止",
action: "下單(新倉)",
condition_buy_sell: "賣",
condition_symbol: "賣 小型台指202411",
condition_price: "範圍市價(ROD)",
condition_volume: "2口",
condition_filled_volume: "0口",
create_time: "2024-11-15 10:38:48",
start_date: "2024/11/15",
status: "洗價中(Y)",
error_message: None,
detail_records_count: "0",
detail_records: [],
TPSLCount: "2",
TPSLRecord: [
ParentChildRecord {
guid: "b79084fe-6fdf-461f-a264-0482072237eb",
account: "9974825",
condition_content: "當自2024/11/15至2024/11/20內小型台指202411買進價大於等於22340元 全部成交為止",
action: "下單(平倉)",
condition_buy_sell: "買",
condition_symbol: "買 小型台指202411",
condition_price: "22340(ROD)",
condition_volume: "2口",
condition_filled_volume: "0口",
start_date: "2024/11/15",
status: "未生效(W)",
error_message: "",
},
ParentChildRecord {
guid: "b79084fe-6fdf-461f-a264-0482072237eb",
account: "9974825",
condition_content: "當自2024/11/15至2024/11/20內小型台指202411買進價小於等於22280元 全部成交為止",
action: "下單(平倉)",
condition_buy_sell: "買",
condition_symbol: "買 小型台指202411",
condition_price: "22280(ROD)",
condition_volume: "2口",
condition_filled_volume: "0口",
start_date: "2024/11/15",
status: "未生效(W)",
error_message: "",
},
],
}
]
}