AuroraDAO / idex-api-docs

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

lowestAsk and highestBid #30

Closed Ppantich closed 6 years ago

Ppantich commented 6 years ago

lowestAsk and highestBid from ticker return not current lowest ask and highest bid as in most of all exchanges but seems like lowest and highest for 24 hr. Is it correct behaviour? It is more useful to have current values.

rfenzo commented 6 years ago

This api is disabled

Ppantich commented 6 years ago

What api? api of idex is working, at least rest api.

fubar commented 6 years ago

@Ppantich that is intended behaviour. Can you elaborate what you mean with "current" values? What time range are you expecting?

Ppantich commented 6 years ago

@fubar Current values I mean current lowestAsk and highestBid from orderbook right now. That is standard behaviour for almost all exchanges.

fubar commented 6 years ago

@Ppantich In other words, take lowestAsk and highestBid from orders regardless of their age, even if an order is older than 24 hours?

Ppantich commented 6 years ago

@fubar Yes, it is like the best offer to buy or sell right now.

fubar commented 6 years ago

@Ppantich Actually, that is already the case - lowestAsk and highestBid values of a ticker are based on all open orders, regardless of age. Closing this issue.

Ppantich commented 6 years ago

@fubar Really? Did you check it before closing the issue? Just compare https://api.idex.market/returnTicker and any orderbook?

fubar commented 6 years ago

Yes, looks fine to me. Can you post example data that you see is wrong? Thanks!

Ppantich commented 6 years ago

@fubar For example, in ticker ["ETH_AUC"]=> array(8) { ["last"]=> string(20) "0.000335548546214117" ["high"]=> string(20) "0.000356583360869493" ["low"]=> string(20) "0.000320556833044118" ["lowestAsk"]=> string(20) "0.000337273453138036" ["highestBid"]=> string(20) "0.000532759002514383" ["percentChange"]=> string(10) "0.78586527" ["baseVolume"]=> string(19) "8.98462428185177987" ["quoteVolume"]=> string(24) "26529.220336063443977933" in orderbook lowestAsk is 0.00034624, highestBid is 0.00033394

fubar commented 6 years ago

Thanks @Ppantich, I was able to reproduce it for that market. It is now fixed for the time being. We'll look into the cause of the inconsistency. In the meantime please let me know if you notice such an inconsistency again!

fubar commented 6 years ago

Hi @Ppantich, we've identified and fixed the underlying issue. Let us know if you see any further issues.