krakenfx / kraken-api-client

Example client libraries for use with the kraken.com API.
MIT License
88 stars 94 forks source link

No Longer Usable #14

Open sayoki opened 8 months ago

sayoki commented 8 months ago

As of now, the only way to call on our public endpoints is by using GET. In the past it was possible to call on public endpoints using POST, however, this has been deprecated as of today.

The following endpoints are affected:

Time, SystemStatus, Assets, AssetPairs , Ticker , OHLC , Depth, Trades, and Spread

sayoki commented 8 months ago

The fixed I made to solve this:

    // make request
    # update 31-01-2024: As of now, the only way to call on our public endpoints is by using GET. In the past it was possible to call on public endpoints using POST, however, this has been deprecated as of today.
    curl_setopt($this->curl, CURLOPT_URL, $this->url . '/' . $this->version . '/public/' . $method . '?'.$postdata);
    curl_setopt($this->curl, CURLOPT_POST, false);
    #curl_setopt($this->curl, CURLOPT_POSTFIELDS, $postdata);