data: add simple tests for matching
Matching is done with asking price, when there is a difference.
This commit is contained in:
parent
14645524e2
commit
ea8c880cca
2
data/inputs/matching-asking-price-2.in.csv
Normal file
2
data/inputs/matching-asking-price-2.in.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
N,1,IBM,8,100,S,101
|
||||
N,2,IBM,10,100,B,102
|
|
2
data/inputs/matching-asking-price.in.csv
Normal file
2
data/inputs/matching-asking-price.in.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
N,1,IBM,10,100,B,101
|
||||
N,2,IBM,8,100,S,102
|
|
2
data/inputs/matching.in.csv
Normal file
2
data/inputs/matching.in.csv
Normal file
|
@ -0,0 +1,2 @@
|
|||
N,1,IBM,10,100,B,101
|
||||
N,2,IBM,10,100,S,102
|
|
3
data/outputs/matching-asking-price-2.out.csv
Normal file
3
data/outputs/matching-asking-price-2.out.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
A,1,101
|
||||
B,S,8,100
|
||||
R,2,102
|
|
5
data/outputs/matching-asking-price-2.trades.out.csv
Normal file
5
data/outputs/matching-asking-price-2.trades.out.csv
Normal file
|
@ -0,0 +1,5 @@
|
|||
A,1,101
|
||||
B,S,8,100
|
||||
A,2,102
|
||||
T,2,102,1,101,8,100
|
||||
B,S,-,-
|
|
3
data/outputs/matching-asking-price.out.csv
Normal file
3
data/outputs/matching-asking-price.out.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
A,1,101
|
||||
B,B,10,100
|
||||
R,2,102
|
|
5
data/outputs/matching-asking-price.trades.out.csv
Normal file
5
data/outputs/matching-asking-price.trades.out.csv
Normal file
|
@ -0,0 +1,5 @@
|
|||
A,1,101
|
||||
B,B,10,100
|
||||
A,2,102
|
||||
T,1,101,2,102,8,100
|
||||
B,B,-,-
|
|
3
data/outputs/matching.out.csv
Normal file
3
data/outputs/matching.out.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
A,1,101
|
||||
B,B,10,100
|
||||
R,2,102
|
|
5
data/outputs/matching.trades.out.csv
Normal file
5
data/outputs/matching.trades.out.csv
Normal file
|
@ -0,0 +1,5 @@
|
|||
A,1,101
|
||||
B,B,10,100
|
||||
A,2,102
|
||||
T,1,101,2,102,10,100
|
||||
B,B,-,-
|
|
Loading…
Reference in a new issue