We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 288e6f5 commit 84908cfCopy full SHA for 84908cf
1 file changed
php-binance-api-rate-limiter.php
@@ -236,9 +236,9 @@ private function ordersPerDay()
236
*/
237
public function __call(string $name, array $arguments)
238
{
239
- $weight = $this->weights[$name];
+ $weight = $this->weights[$name] ?? false;
240
241
- if ($weight > 0) {
+ if ($weight && $weight > 0) {
242
$this->requestsPerMinute();
243
if (in_array($name, $this->ordersfunctions) === true) {
244
$this->ordersPerSecond();
0 commit comments