From 1bd2b4c601aa45ea1c2c5f67add5284a53bdedaa Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Fri, 18 May 2018 11:30:10 -0500 Subject: [PATCH] adding order router test --- testing/manual/admin/order_router.txt | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/manual/admin/order_router.txt diff --git a/testing/manual/admin/order_router.txt b/testing/manual/admin/order_router.txt new file mode 100644 index 000000000..c8abd8894 --- /dev/null +++ b/testing/manual/admin/order_router.txt @@ -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 + + + + +