php-binance-api: Api keys not working

Title

  • bug: api response nill
  • feature: please add
  • enhancement: add this to existing features

Short Description:

  • Unable to get a result from api

I am sure my API keys are fine and balance is not empty .API’s were working perfectly with old version of the php-binance-api with php5.5 , to use new version I have updated php 7.2.5 in my wamp version 2.5. Tried install by composer several times.

Platform:

  • windows 10

php version:

  • 7.2.5

code

define('BINANCE_API','XXXXXXXX');
define('BINANCE_SECRET','XXXXXXXXX');
require 'vendor/autoload.php';
$api = new Binance\API(BINANCE_API,BINANCE_SECRET, ['useServerTime'=>true]);
$bookPrices = $api->bookPrices();
$ticker = $api->prices();
$balances = $api->balances($ticker);

result

Array ( ) Error: your balances were empty or unset balanceData error: Please make sure your system time is synchronized: call $api->useServerTime() before this function ERROR: Invalid request. Please double check your API keys and permissions.

$bookPrices and $ticker also returns empty array.

Getting same results in PHP Version 7.0.30

thank you

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 31 (2 by maintainers)

Most upvoted comments

glad you have solved the CA issue, would feel bad if i left you off with security disabled.

enjoy