Skip to content

Releases: jaggedsoft/php-binance-api

Stable Release

10 Apr 21:20
0b7d96b
Compare
Choose a tag to compare

Added WebSocket kline function:

Get latest candlestick data only

$api->kline(["BTCUSDT", "EOSBTC"], "5m", function($api, $symbol, $chart) {
  //echo "{$symbol} ({$interval}) candlestick update\n";
	$interval = $chart->i;
	$tick = $chart->t;
	$open = $chart->o;
	$high = $chart->h;
	$low = $chart->l;
	$close = $chart->c;
	$volume = $chart->q; // +trades buyVolume assetVolume makerVolume
	echo "{$symbol} price: {$close}\t volume: {$volume}\n";
});

Add miniTicker() WebSocket example:

miniTicker return the latest candlestick information for every symbol

$api->miniTicker(function($api, $ticker) {
	print_r($ticker);
});
View Response
    [18] => Array
        (
            [symbol] => ONTBNB
            [close] => 0.37649000
            [open] => 0.30241000
            [high] => 0.38112000
            [low] => 0.29300000
            [volume] => 975240.72000000
            [quoteVolume] => 326908.77744250
            [eventTime] => 1523395389582
        )

    [19] => Array
        (
            [symbol] => WANBTC
            [close] => 0.00063657
            [open] => 0.00054151
            [high] => 0.00063900
            [low] => 0.00053900
            [volume] => 4443618.00000000
            [quoteVolume] => 2637.76413131
            [eventTime] => 1523395389551
        )

Stable Release

07 Apr 18:58
Compare
Choose a tag to compare

Many improvements by dmzoneill
You can now pass a json filename to the constructor to load your API keys and settings from there

Stable Release

05 Apr 18:14
4ea6bbb
Compare
Choose a tag to compare

Many improvements by dmzoneill, including PHP 5.6 support. Thank you!!

Stable Release

03 Apr 16:37
c8e492f
Compare
Choose a tag to compare

Many improvements and bug fixes by jokaorgua and dmzoneill. Thank you!!

Stable Release

02 Apr 17:25
c5d9101
Compare
Choose a tag to compare

Requires PHP 7!
Numerous improvements to codebase - over 20 improvements by dmzoneill including unit testing and documentation. Thanks!

Stable Release

30 Mar 05:23
f753a9b
Compare
Choose a tag to compare

prevDay function can return stats for all symbols (Thank you jokaorgua)

many improvements by dmzoneill, including unit testing and documentation

Stable Release

28 Mar 18:04
Compare
Choose a tag to compare

Many improvements by dmzoneill

Stable Release

25 Mar 02:59
2e35739
Compare
Choose a tag to compare

Fixed userDataStream and keepAlive

Stable Release

24 Mar 17:17
0901188
Compare
Choose a tag to compare

Various improvements, Fixed userData function

Stable Release

19 Mar 22:34
788ec48
Compare
Choose a tag to compare

Get all openOrders (Thank you omar8792!!)
Various improvements by dmzoneill