Skip to content

Releases: butschster/kraken-api-client

v2.8.0

06 May 06:16
ba4746b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.7.1...v2.8.0

v2.7.1

29 Feb 17:30
ae78d83
Compare
Choose a tag to compare

Full Changelog: v2.7...v2.7.1

v2.7

14 Feb 17:37
d133f76
Compare
Choose a tag to compare

What's Changed

  • Kraken forces GET method for specific requests by @fcanteiro in #22

New Contributors

Full Changelog: v2.6...v2.7

v2.6

01 May 16:28
59c01cf
Compare
Choose a tag to compare

Laravel 10 support

What's Changed

New Contributors

Full Changelog: v2.5...v2.6

v2.5

26 Oct 06:31
71dfd05
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4...v2.5

Laravel 9 support

11 Feb 22:12
7f682c3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3...v2.4

Added new API methods

09 Jun 20:42
Compare
Choose a tag to compare

Added new API methods

  • getDepositMethods
  • getDepositAddresses
  • getWithdrawalInformation

Small refactoring of Serializer

  • Add BigDecimal deserializer
  • Add Timestamp deserializer
  • Add ComaSeparated string deserializer

Get Deposit Methods

Retrieve methods available for depositing a particular asset.

See: https://docs.kraken.com/rest/#operation/getDepositMethods

/** @var \Butschster\Kraken\Contracts\Client $client */

use Brick\Math\BigDecimal;

$response = $client->getDepositMethods('XBT');
$response->method; // string:"Bitcoin"
$response->limit; // int|bool:false
$response->fee; // BigDecimal
$response->generatedAddress; // bool:true
$response->addressSetupFee; // string:""

Get Deposit Addresses

Retrieve (or generate a new) deposit addresses for a particular asset and method.

See: https://docs.kraken.com/rest/#operation/getDepositAddresses

/** @var \Butschster\Kraken\Contracts\Client $client */

$response = $client->getDepositAddresses('XBT', 'Bitcoin');

foreach ($response as $address) {
    $address->address; // string:"2N9fRkx5JTWXWHmXzZtvhQsufvoYRMq9ExV"
    $address->expireTimestamp; // int:0
    $address->new; // bool:true
}

Get Withdrawal Information

Retrieve fee information about potential withdrawals for a particular asset, key and amount.

See: https://docs.kraken.com/rest/#operation/getWithdrawalInformation

/** @var \Butschster\Kraken\Contracts\Client $client */

use Brick\Math\BigDecimal;

$response = $client->getWithdrawalInformation('XBT', 'btc_testnet_with1', BigDecimal::of(0.725));

$response->method; // string:"Bitcoin"
$response->limit; // BigDecimal
$response->amount; // BigDecimal
$response->fee; // BigDecimal

v2.0 - Completely redesigned package

09 Jun 17:07
a617a34
Compare
Choose a tag to compare
  • Improved REST API responses
  • Added Websocket client
  • Added support for PHP8.0
  • Added unit tests
  • Improved PHP doc
  • Improved readme

Laravel 7 and below are not supported
PHP 7 and below are not supported

v1.5: Replaced array_get function with Arr::get

08 Jun 08:02
3e40f6e
Compare
Choose a tag to compare

Laravel 8 support

16 Apr 16:39
3123559
Compare
Choose a tag to compare
v1.4

Update composer.json