Files
spark/testing/manual/admin/spread_position_limits.txt
T
2018-05-18 16:57:03 -04:00

29 lines
1.2 KiB
Plaintext

This test verifies the following 2 things
i. spread legs fills (and working orders) are applied toward enforcing
the position limits for the legs
ii. leg limits are checked when entering spread orders
i:
1. Pick a 2 legged spread (lets say SIU8-SIZ8). Set the clip limits high so that they dont interfare.
Set the product position limits high as well so they dont interfare either.
2. For the security limits (which is what we will be testing), we want Max Long and Max Short of 20 and 30
for the SI futures and 100 and 110 for the SI spreads respectively.
3. Enter a 15 lot buy order for the spread. This 15 should count toward the leg limits. The leg long limit
is 20. So enter a 5 lot buy for SIU8 which should be allowed, but a subsequent 1 lot will violate the 20 long
and should be rejected.
4. Now enter a 15 lot sell for SIZ8 which should be allowed but a subsequent one lot should not be allowed, as it
will violate the short limit of 30.
ii:
5. Cancel all orders
6. Enter a 15 lot buy for SIU8. Any spread buy order of > 5 should be rejected, since this will violate the 20 long limit.
8. Enter a 20 sell for SIZ8. Any spread buy order of > 10 should be rejected since it will
violate the 30 short limit.