This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRICE_FILTER fix: roundTicks now rounds price with tickSize
> roundTicks: Used to round price with tickSize. Example: `roundTicks(0.12345, '0.001') = 0.123` ```php 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'); ```
- Loading branch information