Passed
Push — master ( 7a134a...be08d2 )
by Vladislav
02:35 queued 13s
created

PublicTradingRecords::getResponseClassname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Carpenstar\ByBitAPI\Spot\MarketData\PublicTradingRecords;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Spot\MarketData\PublicTradingRecords\Response\PublicTradingRecordsResponse;
7
use Carpenstar\ByBitAPI\Spot\MarketData\PublicTradingRecords\Request\PublicTradingRecordsRequestOptions;
8
9
/**
10
 * https://bybit-exchange.github.io/docs/spot/public/recent-trade
11
 */
12
class PublicTradingRecords extends PublicEndpoint implements IGetEndpointInterface
13
{
14
    protected function getEndpointUrl(): string
15
    {
16
        return "/spot/v3/public/quote/trades";
17
    }
18
19
    protected function getResponseClassname(): string
20
    {
21
        return PublicTradingRecordsResponse::class;
22
    }
23
24
    protected function getOptionsClassname(): string
25
    {
26
        return PublicTradingRecordsRequestOptions::class;
27
    }
28
}