The following tests are undertaken after the client application has logged on with access to view/modify the data mentioned in the tests. CAST API access must be enabled.
Order Detail Request for Account ID
1. Send trade_routing_request with order_scope_request with order_details_record with valid account_id and valid order_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result with order_details_result with correct order_chain.
Add Fill
Important to check!
1. Send trade_routing_request with order_scope_request with add_fill with valid account_id, order_id, quantity, price, and fill_utc_time.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS).
3. Send trade_routing_request with order_scope_request with order_details_record with account_id and order_id used in step 1.
4. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result and order_details_result with correct order_chain.
Create External Order
Important to check!
1. Send trade_routing_request with order_scope_request with create_external_order with valid account_id, user_id, contract_symbol, side, order_type, limit_price, stop_price, fill_quantity, fill_price, and fill_utc_time.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result and create_external_order_result with valid order_id.
3. Send trade_routing_request with order_scope_request with order_details_record for order_id used in step 2.
4. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result with order_details_result with correct order_chain.
Order Search Request by Account ID and Limited by Top Value
1. Send trade_routing_request with order_search_request with one SearchOption in search_options and provide valid account ID(that has at least three matching records) as text and criteria = 5 [ACCOUNT_ID. Specify top parameter = 2.
2. Receive search_result with operation_status = 1 (SUCCESS) with order_scope_result with exactly two order records and is_complete = false.
Related Order Tree Request
1. Send trade_routing_request with order_scope_request with related_order_tree_request with chain_order_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result with related_order_tree_result and related_order.
Compound Order Tree Request
1. Send trade_routing_request with order_scope_request with compound_order_tree_request with compound_tree_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result with compound_order_tree_result with compound_order.
Synthetic Strategy Tree Request
1. Send trade_routing_request with order_scope_request with synthetic_strategy_tree_request and provide root_chain_order_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS) with order_scope_result with synthetic_strategy_tree_result with legs list.
Cancel Order
Important to check!
1. Send trade_routing_request with order_scope_request with cancel_order and provide chain_order_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS).
Reflect As Canceled Order
Important to check!
1. Send trade_routing_request with order_scope_request with reflect_as_canceled_order and provide chain_order_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS).
Cancel Compound Order Tree
Important to check!
1. Send trade_routing_request with order_scope_request with cancel_compound_order_tree and provide compound_tree_id.
2. Receive trade_routing_result with operation_status = 1 (SUCCESS).