Releases: jaggedsoft/php-binance-api
Releases · jaggedsoft/php-binance-api
Stable Release
Fix cancel order by afsharsafavi
Stable Release
Add assetDetail + example by afsharsafavi
Stable Release
Fix GET/POST requests by afsharsafavi
Stable Release
Add optional limit to chart function
Stable Release
Added extra parameters to cancel
function
Example:
$answer = $api->cancel("BTCUSDT", "177688888", ["side"=>"sell"]);
Stable Release
Fix for constructor arguments
Stable Release
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
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
FIX: Indirect modification of overloaded property by dmzoneill
Add option to use system CA certificate by dmzoneill
Stable Release
cURL PUT method added to fix WebSocket keepalive. Thanks kwshimhyunbo!