34 lines
1.6 KiB
Plaintext
34 lines
1.6 KiB
Plaintext
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 ~/sparkdata/data/databases/admin/*
|
|
2. Start sparkd
|
|
|
|
User settings
|
|
-------------
|
|
3. Navigate to http://sparkvm:8000 (or wherever your sparkd resides), Users tab
|
|
4. Between bts and bts_2 users, verify they have distinct operator ids (Order Routing tab)
|
|
5. In another ssh session on your server, let's tail the sim fix log for orders
|
|
tail -f ~/sparkdata/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 Spark Admin.
|
|
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 Spark Admin
|
|
|
|
Account settings
|
|
-----------------
|
|
11. Within the Spark Admin, 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 Account match what is specified in the Spark Admin
|
|
13. Change the values, place another order, and verify the new values are being sent
|