Power-Trade / api-docs

0 stars 1 forks source link

Orders mentioned in Web UI but none displayed in Open orders tab #19

Closed laisee closed 4 months ago

laisee commented 4 months ago

Orders mentioned in Web UI but none displayed in Open Orders tab

Prior to my last liquidation I had some sell orders and one buy order for SOL iirc.

Now the UI shows that I have around 19 SOL in orders

Screenshot 2024-02-14 at 9 12 31 am

But the "Open Orders" tab which showed these orders before now displays nothing.

Screenshot 2024-02-14 at 9 13 26 am

Once I add a new Sell SOL order for 0.10 quantity the order shows in UI and total order number changes from 18.73 to 0.1

Screenshot 2024-02-14 at 9 25 00 am Screenshot 2024-02-14 at 9 25 10 am
laisee commented 4 months ago

Appears that Web UI is caching (or calculating) some older data about total order quantity. The total changes to correct value once a new order is added.

Followup questions

  1. Is order total quantity cached or stored somewhere? Or is the calculation based on local copy of older orders?
  2. All of the older orders seem to have been cancelled during liquidation,. Is that action done during all liquidations?
  3. System could be quite dangerous if data is not refreshed on r/t basis. Good to confirm when data is cached or not refreshed from system DB.
laisee commented 4 months ago

Closing as the "in Orders" number updates correctly when new orders and reverts to zero when orders cancelled. Tested sell and buy orders for Spot trades.