hitbtc-com / hitbtc-api

HitBTC API
GNU Lesser General Public License v3.0
322 stars 153 forks source link

API says "order not found" when trying to get order's history #202

Open xpl opened 6 years ago

xpl commented 6 years ago

The order is indeed valid and even got filled, that is reflected in the trade history:

GET https://api.hitbtc.com/api/2/history/trades?symbol=DASHBTC
[{"id":342483653,"clientOrderId":"2009196e032745fa94d4ecf105b31ca5","orderId":46256473351,"symbol":"DASHBTC","side":"sell","quantity":"2.195","price":"0.028746","fee":"-0.000006309","timestamp":"2018-08-07T19:00:32.098Z"}

The client order id is 2009196e032745fa94d4ecf105b31ca5. Now, when trying to get its status/history, I receive nothing:

GET https://api.hitbtc.com/api/2/history/order?clientOrderId=2009196e032745fa94d4ecf105b31ca
Response:
 { Server: 'nginx',
  Date: 'Tue, 07 Aug 2018 19:50:14 GMT',
  'Content-Type': 'application/json; charset=utf-8',
  'Content-Length': '2',
  Connection: 'keep-alive' }

 []

Same with api.hitbtc.com/api/2/history/order/2009196e032745fa94d4ecf105b31ca5/trades, it keeps returning nothing.

I believe this is a critical bug and should be fixed ASAP. Also, I've seen this error today, again: A problem with balances (showing different values with each request). It would be nice if you could take a look at this as well.


I develop the CCXT library. It is a cross-language cryptocurrency trading library with support for more than 100 exchanges.
CherryDT commented 5 years ago

Still seeing this... sad to see no reponse for almost a year.

npomfret commented 4 years ago

Same issue. Looks like the API doesn't return your true trade history, making it impossible to do any accurate reporting. I thought the problem was limited to EUR based trades (when they delisted the markets) as all of mine vanished from both the website and the API.

But looking at it more closely, I can see my old BCH trades have also gone from the API, although I can still see them on the website.

And I've got a few other that are missing from both such as OMG/BTC trades.