Post
Topic
Board Altcoin Discussion
Re: Bter API problem
by
borzalom
on 06/02/2014, 14:39:38 UTC
I found a few other problems with the Bter API today

1) in the json result, a result of true is as expected ("result":true), but false results have quotes around the "false", making the json_decode treat it as a string ("response":"false").  This makes for undesired behavior, as the string "false" can evaluate as true.

2) The order_id returned by  https://bter.com/api/1/private/placeorder is incorrect.  I just tried this a few times today, and the order_id returned is not even close to the actual order ID which gets assigned (off by over 7,000,000).

I have emailed Bter support about it, but of course I don't expect a response from such a shoddy operation.

Bter API "documentation":
Notice: The returned order_id is meaningless, please use this API https://bter.com/api/1/private/orderlist to obtain all your open order IDs