Test Failed
Push — master ( 912b2a...b3ee71 )
by Vladislav
25:05 queued 22:30
created

InstrumentInfo::getEndpointRequestMethod()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Spot\MarketData\InstrumentInfo;
4
5
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
6
use Carpenstar\ByBitAPI\Core\Enums\EnumHttpMethods;
7
use Carpenstar\ByBitAPI\Core\Objects\StubQueryBag;
8
use Carpenstar\ByBitAPI\Spot\MarketData\InstrumentInfo\Response\InstrumentInfoResponseItem;
9
10
/**
11
 * Get the spec of symbol information
12
 *
13
 * https://bybit-exchange.github.io/docs/spot/public/instrument
14
 */
15
class InstrumentInfo extends PublicEndpoint
16
{
17
    public function getEndpointRequestMethod(): string
18
    {
19
        return EnumHttpMethods::GET;
20
    }
21
22
    protected function getEndpointUrl(): string
23
    {
24
        return "/spot/v3/public/symbols";
25
    }
26
27
    protected function getResponseClassnameByCondition(array &$apiData = null): string
28
    {
29
        return InstrumentInfoResponseItem::class;
30
    }
31
32
    protected function getRequestClassname(): string
33
    {
34
        return StubQueryBag::class;
35
    }
36
}
37