Polkadex-Substrate / Polkadex-Orderbook-Frontend

https://orderbook.polkadex.trade
4 stars 3 forks source link

Accumulate amount for same price in Orderbook #1267

Closed ap211unitech closed 5 months ago

ap211unitech commented 5 months ago

📝 Bug Description

In Orderbook component, there is a dropdown for changing price tick size but it's behavior is not working as expected. Ideally, when we change the price tick size, amount for same price should accumutate and volume should be calculated accordingly.

But the current behavior is, it just applied the tick size for price, but don't affact amount and volume at all.

Basically, Orderbook cannot contain same price more than once. that's the ideal behavior. If there are same prices, it's amount must be accumulated.

😯 Current Behavior

https://github.com/Polkadex-Substrate/Polkadex-Orderbook-Frontend/assets/65214523/bf479e65-04d4-4a84-a8f9-51eae01cc87f

🤔 Expected Behavior

image image

jaymansfield commented 5 months ago

Resolving this will also close https://github.com/Polkadex-Substrate/Polkadex-Open-Beta/issues/350