for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\WebSockets\Spot\PublicChannels\Tickers;
use Carpenstar\ByBitAPI\Core\Enums\WebSocketOperationsEnum;
use Carpenstar\ByBitAPI\Core\Objects\WebSockets\WebSocketsSpotPublicChannel;
use Carpenstar\ByBitAPI\WebSockets\Spot\PublicChannels\Tickers\Entities\TickersResponse;
/**
* https://bybit-exchange.github.io/docs/spot/ws-public/ticker
*
* Topic: tickers.{symbol}
* The 24-hr statistics of a trading pair.
* Push frequency: real-time
*/
class TickersChannel extends WebSocketsSpotPublicChannel
{
* @return string
public function getResponseClassname(): string
return TickersResponse::class;
}
public function getOperation(): string
return WebSocketOperationsEnum::SUBSCRIBE;