Test Failed
Pull Request — master (#4)
by Vladislav
14:06 queued 06:14
created

OpenInterest::getRequestOptionsDTOClass()   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
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
namespace Carpenstar\ByBitAPI\Derivatives\MarketData\OpenInterest;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Derivatives\MarketData\OpenInterest\Dto\OpenInterestResponse;
7
use Carpenstar\ByBitAPI\Derivatives\MarketData\OpenInterest\Options\OpenInterestRequestOptions;
8
9
class OpenInterest extends PublicEndpoint implements IGetEndpointInterface
10
{
11
    protected function setEndpointUrl(): string
12
    {
13
        return "/derivatives/v3/public/open-interest";
14
    }
15
16
    public function getOptionsClassname(): string
17
    {
18
        return OpenInterestRequestOptions::class;
19
    }
20
21
    protected function getResponseClassname(): string
22
    {
23
        return OpenInterestResponse::class;
24
    }
25
}