The Lab

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Synopsis

In order for Reflector to accurately enforce risk limits, the system must have a logical method to determine the net open position (NOP) of a user at a given moment. Reflector achieves this using the methods outlined below.

Overview

Every reflector instance has an associated fill database. The database is queried for every fill that belongs to a customer or user (e.g ExampleFund Ltd) where fills are deemed eligible for entry when they have not expired* yet. 

Note

  • Expired* as mentioned in the statement above, is taken as meaning that the accumulated positions will have expired at settlement.
  • In Exceptional circumstances, a user or customer can request that the accumulated positions never expire.


Reflector begins by identifying the user account, before connecting to the fill database. Reflector will then identify the relevant schema for the user before running a query for the entire set of fills (belonging to the credentials of the user that are valid and have not expired) an example of what such results may look like is displayed in table (1).

 

Table (1) 

exec_idcredential_idseq_numinternalvaliditybuy_ccysell_ccybuy_amtsell_amttrade_datesettle_datevenue_namecomp_idtakerclient_idexpires_at_settlement
1232174119ftNZDEUR60114.96360002017012420170130FIX_Venue76000/109331True6792True
12342174172ftNZDEUR83491.5500002017012420170130FIX_Venue76000/109331True6792True
123452174284ftNZDEUR417382.52500002017012420170130FIX_Venue76000/109331True6792True
1234562174293ftNZDEUR83476.5500002017012420170130FIX_Venue76000/109331True6792True
12345672174294ftNZDEUR2504281500002017012420170130FIX_Venue76000/109331True6792True
123456782174737ftNZDEUR1017186.56050002017012420170130FIX_Venue76000/109331True6792True

 

In the example above as the trades, all involve the same security pairs. Therefore, it is straightforward to determine the user's present position by creating a total of the NZD amounts and the EUR Amounts, where the user is up in NZD (upside) and down EUR (downside) as the user has orders to buy NZD and sell EUR.

  • No labels