Skip to content

Releases: jaggedsoft/php-binance-api

Stable Release

21 Jan 11:21
09a90b8
Compare
Choose a tag to compare

Fix cancel order by afsharsafavi

Stable Release

19 Jan 18:12
de0f766
Compare
Choose a tag to compare

Add assetDetail + example by afsharsafavi

Stable Release

18 Jan 12:46
2cf70fe
Compare
Choose a tag to compare

Fix GET/POST requests by afsharsafavi

Stable Release

27 Oct 11:18
60b7074
Compare
Choose a tag to compare

Add optional limit to chart function

Stable Release

19 Oct 10:02
0a225ba
Compare
Choose a tag to compare

Added extra parameters to cancel function

Example:
$answer = $api->cancel("BTCUSDT", "177688888", ["side"=>"sell"]);

Stable Release

16 Oct 13:23
Compare
Choose a tag to compare

Fix for constructor arguments

Stable Release

08 Sep 12:57
4be9587
Compare
Choose a tag to compare

roundTicks: Used to round price with tickSize. Example: roundTicks(0.12345, '0.001') = 0.123

function roundTicks($price, $tickSize) {
        $precision = strlen(rtrim(substr($tickSize,strpos($tickSize, '.', 1) + 1), '0'));
        return number_format($price, $precision, '.', '');
}
echo roundTicks(0.00016552, '0.00000010');

Fixes PRICE_FILTER problem

Stable Release

07 Sep 08:08
9752109
Compare
Choose a tag to compare

add roundStep function to help with stepSize $quantity = roundStep($quantity, $stepSize);

function roundStep($value, $stepSize = 0.1) {
        $precision = strlen(substr(strrchr(rtrim($value,'0'), '.'), 1));
        return round((($value / $stepSize) | 0) * $stepSize, $precision);
}

Stable Release

14 Jul 12:13
Compare
Choose a tag to compare

FIX: Indirect modification of overloaded property by dmzoneill
Add option to use system CA certificate by dmzoneill

Stable Release

28 May 04:46
36031d4
Compare
Choose a tag to compare

cURL PUT method added to fix WebSocket keepalive. Thanks kwshimhyunbo!