order status updates working
This commit is contained in:
11
src/blockchain/common.js
Normal file
11
src/blockchain/common.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export function applyFills( orderStatus, filled ) {
|
||||
console.log('apply fills', orderStatus, filled)
|
||||
orderStatus[4] = filled[0][0]
|
||||
orderStatus[5] = filled[0][1]
|
||||
for( const i in filled[1] ) {
|
||||
const {filledIn, filledOut} = filled[1][i]
|
||||
orderStatus[6][i] = filledIn
|
||||
orderStatus[7][i] = filledOut
|
||||
}
|
||||
console.log('applied fills', orderStatus)
|
||||
}
|
||||
Reference in New Issue
Block a user