53 lines
3.1 KiB
Plaintext
53 lines
3.1 KiB
Plaintext
The goal of the top order is to not trade by yourself. Meaning that if your order is at the
|
|
top of the book, and all you have for company there in the MBO, are a few clueless suckers,
|
|
you leave their company =>
|
|
If the order is at the top of the book AND the quantity there (net of yours) < threshold (a parameter in
|
|
the Top Order) then cancel the order, else do nothing
|
|
|
|
0. This needs sim market data **not** to be merged with replay (or cert), so we can create our own markets.
|
|
Also make sure you have limits to trade SI Future
|
|
|
|
1. Bring up a ladder, lets say in SIN1 (does not matter which security)
|
|
|
|
2. Create both sides of the market by entering 10 lot limit orders at 15.550 and 15.575
|
|
(if there are no markets use the M View and the ticket to enter)
|
|
|
|
3. Enter a Buy top order with threshold of 15 right at the top of the book. This should immediately
|
|
cancel. Now do the same with a threshold <= 10 and it should not cancel. Cancel this top order.
|
|
|
|
4. Enter a Buy top order with threshold of 15 away from the market. Verify that an exchange order
|
|
is sent. Now move the top of the market toward the Top order so that the Top order eventually
|
|
is at the Top of the market. This should cancel the Top order. Repeat the same with a threshold of <= 10
|
|
and it should not cancel. Cancel the top order.
|
|
|
|
5. Enter a Buy top order with a threshold of 5 at the top of the market. Now start reducing the
|
|
top of market (remember its your limit order that is creating the market). When the size of the market
|
|
(net of the Top order) becomes < 5, the Top order should cancel.
|
|
|
|
6. You know enough about the Top order now. Do some basic sanity checks for Sells too.
|
|
|
|
7. Updates:
|
|
Clear the slate and repeat 2. Enter a buy top order away from the market
|
|
with a threshold of 15. Now if this is brought to the top it should cancel (like in 4.). However
|
|
we will go to OrderBook, select the order and change its threshold to 1. Now bring the Top order
|
|
to the top of the market and it should not cancel. Cancel it manually
|
|
|
|
7.1 Mass Updates:
|
|
Clear the slate and repeat 2. Enter 10 top buy orders at the top of the book
|
|
with threshold 10. Verify that they show in the orderbook. Select them all and change their threshold
|
|
to 500. All of them should cancel.
|
|
|
|
8. Attach:
|
|
Clear the slate and repeat 2. Enter another 5 lot buy limit order at the top of the book. Bring the miniOB
|
|
from where these 2 orders are working and attach a Top to the 5 lot with a threshold of 100. This 5 lot
|
|
should immediatly cancel.
|
|
|
|
8.1 Mass Attach:
|
|
Clear the slate and repeat 2. Enter 10 5 lot buy limit order at the top of the book. Select them in the OB
|
|
and mass attach a Top with threshold 10. Verify that the Tops are working with the 10 5 lots as their child
|
|
orders. Now select the tops and change their threshold to 1000. Make sure all are cancelled.
|
|
|
|
9. Boundary cases
|
|
Enter a top order away from the market. Cancel its child order and the Top order should be cancelled too.
|
|
Mess in any way with the ChildOrder and make sure the parent TopOrder does the right thing (ex: fill
|
|
the Child, partially fill the Child, Change the qty of the Child and then fill it etc). |