Power-Trade / api-docs

0 stars 1 forks source link

Selling SOL coin to myself in SPOT market generates 2 BUY trade records #24

Open laisee opened 4 months ago

laisee commented 4 months ago

Selling SOL to myself generates 2 trade records but both are displayed as BUY trades

See below, 2 trade records for 23/2/2024 and 2 for 20/2/2024. I made two trades selling 1 X SOL to myself at prices 188, 198 on 20/2 and 23/2.

I would expect this kind of trade to generate 1 X BUY and 1 X SELL record but instead the Web UI (below) and IOS app show all trades were BUY.

Screenshot 2024-02-23 at 3 23 05 pm

Side 1 (from IOS v3.0.8)

image

Side 2(from IOS v3.0.8)

image

klugjo commented 2 months ago

This is fixed on web where it shows Self and only one entry.

Looks like it still needs work on mobile:

image

klugjo commented 2 months ago

@trungpwt

laisee commented 2 months ago

Tested on PROD Web app for AVX coin in SPOT market

Single trade record created now with correct price/volume/fee and side shows as 'self'

image

Tested oN IOS app also and same record appears in Trade History (Web) which is correct. But trade history on IOS app shows 4 records for buy/sell @ quantity = 0.1 and 1.0

Screenshot 2024-04-25 at 14 52 31