jaggedsoft / php-binance-api

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api
MIT License
605 stars 497 forks source link

signedRequest error #448

Open sumitpetal opened 3 years ago

sumitpetal commented 3 years ago

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.

qbreton commented 2 years ago

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