php-binance-api icon indicating copy to clipboard operation
php-binance-api copied to clipboard

signedRequest error

Open ghost opened this issue 4 years ago • 1 comments

It not working for me. I am getting signedRequest error " signedRequest error: {"code":-2014,"msg":"API-key format invalid."} Array ( [code] => -2014 [msg] => API-key format invalid. )" I run order-test.php example file.

$quantity = 10; $price = 0.0605; $order = $api->buy("LUNABNB", $quantity, $price); print_r($order);

can you please provide me a solution. Looking for your help.

Thank you.

ghost avatar Sep 25 '21 05:09 ghost

Hello,

If you're using a copy pasted version of order-test.php, you should have created a file with your API credentials inside, is it correct ? https://github.com/jaggedsoft/php-binance-api/blob/d153dd9af258615d8b3c06c2a652387674e876b3/examples/orders_test.php#L6

From the error you forwarded, it seems like your key is not well formatted, you may have to look for credentials storing schema and credentials generating from your account

qbreton avatar Apr 10 '22 10:04 qbreton