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

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