Releases: butschster/kraken-api-client
Releases · butschster/kraken-api-client
v2.8.0
v2.7.1
Full Changelog: v2.7...v2.7.1
v2.7
What's Changed
- Kraken forces GET method for specific requests by @fcanteiro in #22
New Contributors
- @fcanteiro made their first contribution in #22
- @PolkachuIntern made their first contribution in #21
Full Changelog: v2.6...v2.7
v2.6
Laravel 10 support
What's Changed
- Add laravel 10 support, update readme by @haponenko in #19
New Contributors
- @haponenko made their first contribution in #19
Full Changelog: v2.5...v2.6
v2.5
Laravel 9 support
What's Changed
- webmozart/assert was missing in composer.json by @Triggsy22 in #12
- Add compatibility with Laravel 9 by @josecanhelp in #16
New Contributors
- @Triggsy22 made their first contribution in #12
- @josecanhelp made their first contribution in #16
Full Changelog: v2.3...v2.4
Added new API methods
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
- 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
Laravel 8 support
v1.4 Update composer.json