1
1
2
2
Feature : Pegged orders do not cross
3
3
4
- Aiming for full coverage of edge-cases, check the following:
4
+ Aiming for full coverage of edge-cases, check the following:
5
5
6
6
- Market decimals > asset decimals
7
7
- Market decimals < asset decimals
8
8
9
9
- For each of the above
10
- - tick size cannot be expressed in asset decimals
11
- - tick size can just be expressed in asset decimals
12
- - tick size can be expressed in asset decimals
10
+ - tick size cannot be expressed in asset decimals
11
+ - tick size can just be expressed in asset decimals
12
+ - tick size can be expressed in asset decimals
13
13
14
- - For each of the above
15
- - offset cannot be expressed in asset decimals
16
- - offset can just be expressed in asset decimals
17
- - offset can be expressed in asset decimals
14
+ - For each of the above
15
+ - offset cannot be expressed in asset decimals
16
+ - offset can just be expressed in asset decimals
17
+ - offset can be expressed in asset decimals
18
18
19
19
Background:
20
20
@@ -52,17 +52,17 @@ Feature: Pegged orders do not cross
52
52
When the opening auction period ends for market "ETH.1.10/DEC21"
53
53
Then the trading mode should be "TRADING_MODE_CONTINUOUS" for the market "ETH.1.10/DEC21"
54
54
55
- Examples :
56
- | bo | tick size | offset | error |
57
- | 1010 | 1 | 1 | |
58
- | 1010 | 1 | 10 | |
59
- | 1010 | 1 | 100 | |
60
- | 1010 | 10 | 1 | OrderError : price not in tick size |
61
- | 1010 | 10 | 10 | |
62
- | 1010 | 10 | 100 | |
63
- | 1100 | 100 | 1 | OrderError : price not in tick size |
64
- | 1100 | 100 | 10 | OrderError : price not in tick size |
65
- | 1100 | 100 | 100 | |
55
+ Examples :
56
+ | bo | tick size | offset | error |
57
+ | 1010 | 1 | 1 | invalid offset - pegged mid will cross |
58
+ | 1010 | 1 | 10 | |
59
+ | 1010 | 1 | 100 | |
60
+ | 1010 | 10 | 1 | OrderError : price not in tick size |
61
+ | 1010 | 10 | 10 | |
62
+ | 1010 | 10 | 100 | |
63
+ | 1100 | 100 | 1 | OrderError : price not in tick size |
64
+ | 1100 | 100 | 10 | OrderError : price not in tick size |
65
+ | 1100 | 100 | 100 | |
66
66
67
67
68
68
Scenario Outline : # Market decimals < asset decimals
@@ -83,7 +83,7 @@ Feature: Pegged orders do not cross
83
83
When the opening auction period ends for market "ETH.1.10/DEC21"
84
84
Then the trading mode should be "TRADING_MODE_CONTINUOUS" for the market "ETH.1.10/DEC21"
85
85
86
- Examples :
86
+ Examples :
87
87
| bo | tick size | offset | error |
88
88
| 1001 | 1 | 1 | |
89
89
| 1001 | 1 | 10 | |
0 commit comments