AuroraDAO / idex-api-docs

IDEX API documentation (work in progress)
81 stars 27 forks source link

returnTradeHistory returns type buy only #18

Closed bitdjinn closed 6 years ago

bitdjinn commented 6 years ago

when using the returnTradeHistory with an address parameter. Result "type" is always set to "buy" even if its a sell.

fubar commented 6 years ago

@bitdjinn I can't reproduce this; please provide a sample request and response with an explanation which parts of the response you expect to be different. Note that as per docs, "the type property of the trade objects will refer to the action on the market taken relative to the user, not relative to the market". See https://github.com/AuroraDAO/idex-api-docs#returntradehistory

Closing this issue; let me know if you need more assistance.

bitdjinn commented 6 years ago

The issue is still unresolved, the trades returned by returnTradeHistory don't mimic the My Trades section of the IDEX appication. Trades of type "Sell" (showing Sell in My Trades") are still returned as "buy" in the api response when using the address parameter. Where do I submit non public screenshots, responses and requests?

salty82 commented 6 years ago

I’m seeing the same issue. Is this being looked at as this issue is closed?

I’m trying to reconcile the activity (deposits, withdrawals, trades, fees, etc) and nothing is making sense via the trade history endpoint on the api.