Releases: jaggedsoft/php-binance-api
Releases · jaggedsoft/php-binance-api
Stable Release
Many improvements and bug fixes.
16 commits by dmzoneill 🏆
Stable Release
Automatically fix CA certificate issues in certain WAMP installations
Several improvements + 6 commits by dmzoneill
Stable Release
Please see the update to the constructor:
require 'vendor/autoload.php';
// 1. config in home directory
$api = new Binance\API();
// 2. config in specified file
$api = new Binance\API( "somefile.json" );
// 3. config by specifying api key and secret
$api = new Binance\API("<api key>","<secret>");
public function __construct()
{
$param = func_get_args();
switch (func_num_args()) {
case 0:
$this->setupApiConfigFromFile();
$this->setupProxyConfigFromFile();
break;
case 1:
$this->setupApiConfigFromFile($param[0]);
$this->setupProxyConfigFromFile($param[0]);
$this->setupCurlOptsFromFile($param[0]);
break;
case 2:
$this->api_key = $param[0];
$this->api_secret = $param[1];
break;
}
}
Stable Release
Fix miniTicker + 7 commits by dmzoneill
Stable Release
Fix history() function, fromId defaults to all
Stable Release
20 commits by dmzoneill 🏆
Stable Release
withdrawHistory and depositHistory now supports optional parameters: startTime, endTime, status
new withdrawFee function (thanks eugypalu)
withdrawHistory changes suggested by dormadekhin-denis. Thanks!
Stable Release
dmzoneill fixed kline + several other improvements 🏆
Stable Release
Stable Release
More constructor options:
Default way
require 'vendor/autoload.php';
$api = new Binance\API("<api key>","<secret>");
Config file (JSON)
Your json should have "api-key" and "api-secret" values set
require 'vendor/autoload.php';
$api = new Binance\API("config.json");