Jump to content
Sign in to follow this  
yarane

What is the workflow for Entry order?

Recommended Posts

If you mean communication of events such as an order triggering, then you can subscribe to streaming orders to pickup a notification.

The following scenarios are made up of 6 orders to illustrate all possible scenarios. The primary opening orders are a stop #1 and limit #2 linked to each other in an OCO relationship. Each of these orders has a pair of linked stop and limit orders (#3-4 are tied to #1 and #5-6 are tied to #2. It is assumed that the trading account has no open positions in the market.

Client places orders Stop # 1 moves to state Accepted. Limit #2 moves to state Accepted.
Stop #3 moves to state Pending. Limit #4 moves to state Pending. Stop #5 moves to state Pending. Limit #6 moves to state Pending. Limit #2 is triggered

Stop #1 moves to state Suspended. Limit #2 moves to state Triggered. Stop #3 remains at state Pending. Limit #4 remains at state Pending. Stop #5 remains at state Pending. Limit #6 remains at state Pending.

Limit #2 is filled successfully Stop #1 moves to state Cancelled. Limit #2 moves to state Open. Stop #3 moves to state Cancelled. Limit #4 moves to state Cancelled. Stop #5 moves to state Accepted. Limit #6 moves to state Accepted.

Limit #2 is filled but results in a yellow card Stop #1 remains at state Suspended. Limit #2 moves to state Yellow Card. Stop #3 remains at state Pending. Limit #4 remains at state Pending. Stop #5 remains at state Pending. Limit #6 remains at state Pending.

Limit #2 is accepted Stop #1 moves to state Cancelled. Limit #2 moves to state Open. Stop #3 moves to state Cancelled. Limit #4 moves to state Cancelled. Stop #5 moves to state Accepted.
Limit #6 moves to state Accepted.

Limit #2 is rejected Stop #1 moves to state Cancelled. Limit #2 moves to state Rejected. Stop #3 moves to state Cancelled. Limit #4 moves to state Cancelled. Stop #5 moves to state Cancelled. Limit #6 moves to state Cancelled.

Limit #2 has filled successfully and now Limit #6 triggers. Limit #2 remains at state Open. Stop #5 moves to state Suspended. Limit #6 moves to state Triggered.

Limit #6 fills successfully and fully closes Limit #2 Limit #2 moves to state Closed. Stop #5 moves to state Cancelled. Limit #6 moves to state Closed.

Share this post


Link to post

Thanks for clarification. One more, though — what exactly is the “yellow card” state?

also there is no description of Order stream in API explorer — can it be added?

Share this post


Link to post

Thanks for clarification. One more, though — what exactly is the “yellow card” state?

Yellow card means it needs dealer approval. One reason for this would be because it’s an oversize order.

Share this post


Link to post

Thanks for clarification. One more, though — what exactly is the “yellow card” state?

What is a case if an order turns in state Triggered but doesn’t go futher? It hangs in that state for days and I can’t delete it. I saw many times such behavior for stops and limits when they were triggered.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×