dalal-street-server icon indicating copy to clipboard operation
dalal-street-server copied to clipboard

[Matching Engine]: Update for reserve stocks

Open nimishagarwal76 opened this issue 5 years ago • 0 comments

Previously, in case of PerformOrderFillTransaction, askTransaction would have negative stockTradeQty which would get sent to the datastream. Now, it's 0 as user doesn't actually have to lose stocks anymore. HACK: Re-setting the object just before sending back the tranasction ensures that the rest of the matching engine / order book code functions without requiring changes.

Need to fix this.

nimishagarwal76 avatar Dec 18 '19 18:12 nimishagarwal76