Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxima-net committed Aug 16, 2022
1 parent 55c6fc1 commit 52db2de
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions tests/clients/testCases/validWsOrderBookUpdatedTestCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,76 @@ const validWsOrderBookUpdatedTestCases: ReadonlyArray<readonly [
]
}
]
],
[
'Update entries in one message',
[
[{
event: 'snapshot',
data: {
updateId: 57551,
symbol: 'ETH/BTC',
entries: [{
side: 'Buy',
price: 0.06688964,
qtyProfile: [4.0]
}, {
side: 'Sell',
price: 0.06754710,
qtyProfile: [1.5]
}]
}
}],
[{
event: 'entries',
data: [{
updateId: 57552,
symbol: 'ETH/BTC',
side: 'Buy',
price: 0.06688964,
qtyProfile: []
},
{
updateId: 57553,
symbol: 'ETH/BTC',
side: 'Sell',
price: 0.06754710,
qtyProfile: []
},
{
updateId: 57554,
symbol: 'ETH/BTC',
side: 'Buy',
price: 0.06691233,
qtyProfile: [10]
},
{
updateId: 57555,
symbol: 'ETH/BTC',
side: 'Sell',
price: 0.06754435,
qtyProfile: [15]
}]
}],
{
updateId: 57555,
symbol: 'ETH/BTC',
quoteCurrency: 'ETH',
baseCurrency: 'BTC',
entries: [
{
side: 'Buy',
price: new BigNumber(0.06691233),
qtyProfile: [10]
},
{
side: 'Sell',
price: new BigNumber(0.06754435),
qtyProfile: [15]
}
]
}
]
]
];

Expand Down

0 comments on commit 52db2de

Please sign in to comment.