Skip to content

[BUG] The Trade History shows your own trades from the wrong trading side #155

@Nesh-01

Description

@Nesh-01

Describe the bug
This bug report is NOT about the tab "My Trade History", which is working as expected.
Your own trades are potentially shown as trades from the wrong trading side in the tab "Trade History", i.e. a "buy" trade is shown as "sell" when you are in the sell side of the trade and a "sell" trade is shown as "buy" when you are on the buy side of the trade. "Trade History" should show all trades from the point of view of a third party, no matter if you took part in those trades or not. This also leads to a different Trade History depending on whether you are logged in or not, as can be seen in the screenshot below.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'wallet.turtlenetwork.eu'
  2. Create a sell order (taker order, i.e. your order stays on the orderbook)
  3. Let someone fill your order
  4. Go to the tab "Trade History"

Expected behavior
The trade is shown as Type "Buy".

Actual behavior
The trade is shown as Type "Sell".

Screenshots
tn_trade_type_bug

Desktop (please complete the following information):

  • OS: Windows
  • Browser/JVM: Firefox
  • Version: 75.0

Additional context
If this is intended behavior I suggest to reconsider it as to my knowledge no other exchanges behaves that way. The (general) Trade History should show all trades from a third party perspective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions