Sequence Diagrams

This section provides a couple of sequence diagrams to help you understand how client/server communication in TAC Energy works.

Limit Order

This sequence diagram describes what happens when a client issues a shout on an product with an empty orderbook.

Limit Order on same side of orderbook

This sequence diagram describes what happens when several limit orders enter the orderbook on the same side (Ask/Bid).

Trade

This sequence diagram describes what happens when an incoming order in the book matches completely and therefore is fully executed.

Partially executed Limit Order

This sequence diagram describes what happens when an incoming limit order can only be matched for a certain quantity that is lower than the intended quantity.

Partially executed Market Order

This sequence diagram describes what happens when an incoming market order can only be matched for a certain quantity that is lower than the intended quantity. In difference to the limit order the unmatched part of the market order is deleted.

Unmatched Market Order

This sequence diagram describes what happens when an incoming market order can not be matched with any order from the orderbook. The market order is therefore deleted.

Time advancement

This sequence diagram describes the basic logic on a timeslot shift. A regular timeslot shift means that a product is closed, a new product is opened and the time advances.