Power-Trade / api-docs

0 stars 1 forks source link

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

Closed laisee closed 2 months ago

laisee commented 8 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 6 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 6 months ago

@trungpwt

laisee commented 6 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
laisee commented 3 months ago

Tested again using Web UI and IOS mobile app.

Web shows single trade with correct values for side, commission, quantity etc

IOS App shows two trades, one with valid commission amount and one with commission = "FREE".

Trade on Web UI showing one trade and correct commission amount

Screenshot 2024-07-22 at 16 30 35

Trade on IOS App showing FREE commission

image

Two trades on IOS App

image

laisee commented 2 months ago

Resolved