Private auth to bibox works fine (can see balances), however, create_order (with varied symbols and input) always gives;
exception 'ccxt\ExchangeError' with message 'bibox {"error":{"code":"3024","msg":"apikey\u6743\u9650\u4e0d\u8db3"}}' in /home/{user}/ccxt/php/bibox.php:584
Stack trace:
#0 [internal function]: ccxt\bibox->request('orderpending', 'private', 'POST', Array)
#1 /home/{user}/ccxt/php/Exchange.php(699): call_user_func(Array, 'orderpending', 'private', 'POST', Array)
#2 [internal function]: ccxt\Exchange->ccxt\{closure}(Array)
#3 /home/{user}/ccxt/php/Exchange.php(1661): call_user_func_array(Object(Closure), Array)
#4 /home/{user}/ccxt/php/bibox.php(361): ccxt\Exchange->__call('privatePostOrde...', Array)
#5 /home/{user}/ccxt/php/bibox.php(361): _bibox->privatePostOrderpending(Array)
#6 /home/{user}/ccscripts/my.php(267): ccxt\bibox->create_order('LTC/BTC', 'limit', 'sell', 0.00149841, 0.01965457)
#7 {main}
I tried finding a solution, reviewing past issues, changing code, all to no avail. Same code also works fine on Yobit.
Hi!
Can you, please show the full verbose output of the above call?
bibox->verbose = true;
bibox->create_order('LTC/BTC', 'limit', 'sell', 0.00149841, 0.01965457);
(without the keys)? Need to see the request structure (the part that is missing in your initial post above). This would help me solve it a little quicker, thx.
Aha, translating the chinese response gave me a clue of what was wrong;
{"error":{"code":"3024","msg":"apikey鏉冮檺涓嶈冻"}}
iow;
Insufficient apikey permissions
And indeed, after adding trade abilities to the key, it works
Is there a way to equate 3024 with this error in the code?
Let me know if you still need full output.
Let me know if you still need full output
Nope, looks like you've figured it out. We will add handling for the above error code shortly. Thx for reporting!
Most helpful comment
Hi!
Can you, please show the full verbose output of the above call?
(without the keys)? Need to see the request structure (the part that is missing in your initial post above). This would help me solve it a little quicker, thx.