Passed
Push — master ( 6bd31a...1d415b )
by Vladislav
04:25 queued 02:10
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\Spot\MarketData\InstrumentInfo;
3
4
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
5
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
6
use Carpenstar\ByBitAPI\Core\Objects\StubQueryBag;
7
use Carpenstar\ByBitAPI\Spot\MarketData\InstrumentInfo\Response\InstrumentInfoResponse;
8
9
/**
10
 * Get the spec of symbol information
11
 *
12
 * https://bybit-exchange.github.io/docs/spot/public/instrument
13
 */
14
class InstrumentInfo extends PublicEndpoint implements IGetEndpointInterface
15
{
16
    protected function getEndpointUrl(): string
17
    {
18
        return "/spot/v3/public/symbols";
19
    }
20
21
    protected function getResponseClassname(): string
22
    {
23
        return InstrumentInfoResponse::class;
24
    }
25
26
    protected function getRequestClassname(): string
27
    {
28
        return StubQueryBag::class;
29
    }
30
}