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
610 stars 496 forks source link

RateLimiter class missing in vendor/autoload.php #242

Open martin-tomasek opened 5 years ago

martin-tomasek commented 5 years ago

RateLimiter class missing in vendor/autoload.php

Platform:

php version:

Long descrption

code

require 'vendor/autoload.php';
$api = new Binance\API( "<api key>","<secret>" );
$api = new Binance\RateLimiter($api);
while(true) {
   $api->openOrders("BNBBTC"); // rate limited
}

result

Fatal error: Uncaught Error: Class 'Binance\RateLimiter' not found in /var/www/module/Application/src/Application/Controller/ConsoleController.php:32
Stack trace:
#0 /var/www/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Application\Controller\ConsoleController->tradeAction()
#1 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#2 /var/www/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#3 /var/www/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#4 /var/www/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#5 /var/www/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(O in /var/www/module/Application/src/Application/Controller/ConsoleController.php on line 32

thank you

martin-tomasek commented 5 years ago

image