Passed
Pull Request — master (#8)
by Vladislav
10:51
created

PublicTradeChannel::getResponseDTOClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
namespace Carpenstar\ByBitAPI\WebSockets\Channels\Spot\PublicChannels\PublicTrade;
3
4
use Carpenstar\ByBitAPI\WebSockets\Channels\Spot\PublicChannels\PublicTrade\Entities\PublicTradeAbstract;
5
use Carpenstar\ByBitAPI\WebSockets\Objects\WebSockets\WebSocketsSpotPublicChannel;
6
7
/**
8
 * https://bybit-exchange.github.io/docs/spot/ws-public/public-trade
9
 *
10
 * Topic: trade.{symbol}
11
 *
12
 * This topic pushes raw trade information; each trade has a unique buyer and seller.
13
 * Variable "v" acts as a tradeId. This variable is shared across different symbols; however, each ID is unique.
14
 * For example, suppose in the last 5 seconds 3 trades happened in ETHUSDT, BTCUSDT, and BHTBTC.
15
 * Their tradeId (which is "v") will be consecutive: 112, 113, 114.
16
 */
17
class PublicTradeChannel extends WebSocketsSpotPublicChannel
18
{
19
20
    /**
21
     * @return string
22
     */
23
    public function getResponseClassname(): string
24
    {
25
        return PublicTradeAbstract::class;
26
    }
27
28
}