Issues (51)

example/17_CancelOrder.php (1 issue)

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
    $countOrder = $api->cancelOrder('txid');
11
12
    echo "Count cancelled: " . $countOrder->getCount() . "\n";
0 ignored issues
show
The method getCount() 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...CancelOpenOrderResponse or HanischIt\KrakenApi\Call...nfo\LedgersInfoResponse or HanischIt\KrakenApi\Call...y\TradesHistoryResponse. ( 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 "Count cancelled: " . $countOrder->/** @scrutinizer ignore-call */ getCount() . "\n";
Loading history...
13
14
} catch (Exception $e) {
15
    echo $e->getMessage();
16
}
17