adding order router test
This commit is contained in:
1 parent
4cd6da6c30
commit
1bd2b4c601
1 file changed
+38
@@ -0,0 +1,38 @@
|
||||
Definitions
|
||||
------------
|
||||
CTI Code = Tag 9702; (1-4)
|
||||
Origin = Tag 204; (0 = Customer, 1 = Firm)
|
||||
Clearing Account = Tag 1
|
||||
Operator ID = Tag 50
|
||||
|
||||
Helpful FIX parsing site: https://fixparser.targetcompid.com/
|
||||
|
||||
Prerequisites
|
||||
--------------
|
||||
|
||||
1. Delete your existing Admin DB to get back to a default state
|
||||
rm ~/.bts/bts/data/databases/admin/*
|
||||
2. Start sparkd
|
||||
|
||||
User settings
|
||||
-------------
|
||||
3. Navigate to http://sparkvm:8000 (or wherever your sparkd resides), Users tab
|
||||
4. Btween bts and bts_2 users, verify that have distinct operator ids
|
||||
5. In another ssh session on your server, let's tail the sim fix log for orders
|
||||
tail -f ~/.bts/data/jetfix/sim/current/fix | grep --line-buffered 35=D | tr '\001' '|'
|
||||
6. Open up a client, login as bts, pick your favorite symbol and submit an order
|
||||
7. Your tail should show the fix from the order. Scan the line for 50={operator id}. The operator id found should match the value from the web ui.
|
||||
8. Change your user's operator's id, submit a new order, and verify the new value is being sent out on the tag 50
|
||||
9. Relaunch the gui and login as bts_2
|
||||
10. Submit an order and verify the tag 50 matches what is specified in the web ui
|
||||
|
||||
Account settings
|
||||
-----------------
|
||||
11. Within the web UI, switch over to Accounts and choose an account in which your users can trade (ACC A1), then switch to the exchange settings tab
|
||||
12. Place an order and check that the CTI Code, Origin, and Clearing Accont match what is specified in the web ui
|
||||
13. Change the values, place another order, and verify the new values are being sent
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user