Passed
Push — master ( 1fa2df...2cdea9 )
by Vladislav
06:45 queued 04:30
created

IndexPriceKline::getRequestClassname()   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\Derivatives\MarketData\IndexPriceKline;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Derivatives\MarketData\IndexPriceKline\Request\IndexPriceKlineRequestOptions;
7
use Carpenstar\ByBitAPI\Derivatives\MarketData\IndexPriceKline\Response\IndexPriceKlineResponse;
8
9
/**
10
 * Get index price kline data
11
 * https://bybit-exchange.github.io/docs/derivatives/public/index-kline
12
 */
13
class IndexPriceKline extends PublicEndpoint implements IGetEndpointInterface
14
{
15
    protected function getEndpointUrl(): string
16
    {
17
        return "/derivatives/v3/public/index-price-kline";
18
    }
19
20
    protected function getRequestClassname(): string
21
    {
22
        return IndexPriceKlineResponse::class;
23
    }
24
25
    public function getResponseClassname(): string
26
    {
27
        return IndexPriceKlineRequestOptions::class;
28
    }
29
}