Issues (51)

example/20_TradeVolume.php (2 issues)

Labels
Severity
1
<?php
2
require_once(__DIR__ . '/../vendor/autoload.php');
3
4
try {
5
    $api = new \HanischIt\KrakenApi\KrakenApi(
6
        "Your-API-Key",
7
        "Your-API-Sign"
8
    );
9
10
    $tradeVolume = $api->getTradeVolume('paid');
11
12
    echo "Currency:" . $tradeVolume->getCurrency() . "\n";
0 ignored issues
show
The method getCurrency() does not exist on HanischIt\KrakenApi\Model\ResponseInterface. It seems like you code against a sub-type of HanischIt\KrakenApi\Model\ResponseInterface such as HanischIt\KrakenApi\Call...ume\TradeVolumeResponse. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
    echo "Currency:" . $tradeVolume->/** @scrutinizer ignore-call */ getCurrency() . "\n";
Loading history...
13
    echo "Volume:" . $tradeVolume->getVolume() . "\n";
0 ignored issues
show
The method getVolume() does not exist on HanischIt\KrakenApi\Model\ResponseInterface. It seems like you code against a sub-type of HanischIt\KrakenApi\Model\ResponseInterface such as HanischIt\KrakenApi\Call...ume\TradeVolumeResponse or HanischIt\KrakenApi\Call\GetTicker\TickerResponse. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
    echo "Volume:" . $tradeVolume->/** @scrutinizer ignore-call */ getVolume() . "\n";
Loading history...
14
15
} catch (Exception $e) {
16
    echo $e->getMessage();
17
}
18