that program which is given to keep an up-to-date orderbook is wrong as in the first message we receive the snapshot of the whole orderbook then we modify according to the msg received... But we actually store snapshot as an array at first(with index from 0 to 1000) and then store the price as index itself.. so the output what i m getting is wrong... what can be done?
that program which is given to keep an up-to-date orderbook is wrong as in the first message we receive the snapshot of the whole orderbook then we modify according to the msg received... But we actually store snapshot as an array at first(with index from 0 to 1000) and then store the price as index itself.. so the output what i m getting is wrong... what can be done?