Skip to content

Commit

Permalink
Fixed keepAlive function for userDataStream
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Eyrick authored Mar 25, 2018
1 parent 0901188 commit 2e35739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public function keepAlive() {
$loop = \React\EventLoop\Factory::create();
$loop->addPeriodicTimer(30, function() {
$listenKey = $this->options['listenKey'];
$this->apiRequest("v1/userDataStream?listenKey={$listenKey}", "PUT");
$this->httpRequest("v1/userDataStream?listenKey={$listenKey}", "PUT", [], true);
});
$loop->run();
}
Expand Down

0 comments on commit 2e35739

Please sign in to comment.