This test verifies the following 2 things
i. future and spread product limits can co-exist and work correctly
ii. spread legs fills (and working orders) are applied toward enforcing
the position limits for the legs
iii. leg limits are checked when entering spread orders

i:

1. Pick a 2 legged spread (lets say SIU8-SIZ8). Set the clip limits high for both spreads and futures
so that they don't interfere. Remove all Security Position limits.

2. For the Product Limits, set Max Long and Max Short of 100 and 110
for the SI futures and 20 and 30 for the SI spreads respectively.

3. Verify that the limits set in 2 work for futures(remember working orders count toward limit enforcement so you dont need
fills). Cancel all the orders.

4. Verify that the limits set in 2. work for spreads. Cancel all the orders.

5. Make these product limits 1,000,000 to make them irrelevant

ii:

6. For security limits enter long 10 and short 20 for SIU8 and SIZ8 futures respectively and 50 and 60 for
the SIU8-SIZ8 spread.

7. Enter a 5 lot buy for SIU8-SIZ8. This 5 should count toward SIU8 long limit (which is 10). Enter
a 5 lot SIU8 buy, which should be allowed but a subsequent 1 lot buy should be rejected. Similiary, the
spreader order should count toward the SIZ8 short limit of 20. Enter a 15 lot sell on SIZ8, and a subsequent
1 lot should be rejected.

8. Cancel all orders

iii:

Enter a 11 lot spread order. It should be rejected because of the 10 lot limit on SIU8.