BTCMarkets / API

API
119 stars 30 forks source link

Different response for same query #152

Closed wsdefghjk-23124 closed 6 years ago

wsdefghjk-23124 commented 6 years ago

When querying /order/detail I get different responses on two different machines. Upon further investigation, this appears to be for newer orders.

On both machines I get the same response for order 1625253XXX yet different for 2150545XXX.

The only differences between both machines are the PHP and Curl version numbers.

The response that is different on both machines does not report an error yet return an empty orders array.

Getting correct results over php7 and curl 7.61, getting incorrect over php5 and curl 7.26

Is the API endpoint checking headers or version numbers and returning conditional results? Is there a header I need to spoof/fake to get consistent results.

Incorrect response (note the empty orders array, which is populated on the other machine): {"success":true,"errorCode":null,"errorMessage":null,"orders":[]}

wsdefghjk-23124 commented 6 years ago

Upon further testing I discovered this is a problem the client related to the MAXINT limits on the embedded system.

However, the API should return an error code when receiving a negative orderId value.