PHPackages                             mvaessen/kraken-future-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. mvaessen/kraken-future-api

ActiveLibrary[API Development](/categories/api)

mvaessen/kraken-future-api
==========================

Simple Kraken Futures API Wrapper, written in PHP. Includes the basics and assumes you know your way around.

0.1(6y ago)0324MITPHPPHP &gt;=5.4CI failing

Since Aug 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mvaessen/kraken-future-api)[ Packagist](https://packagist.org/packages/mvaessen/kraken-future-api)[ RSS](/packages/mvaessen-kraken-future-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Kraken Futures API Wrapper PHP
==============================

[](#kraken-futures-api-wrapper-php)

Simple Kraken Futures API Wrapper, written in PHP. Includes some basic methods to work with the API and assumes you know your way around. Check out the [Kraken Futures API Documentation](https://support.kraken.com/hc/en-us/categories/360001806372-Futures-API) for more information about the available endpoints. Will throw an exception when errors are encountered.

### Please note:

[](#please-note)

- Does NOT include mechanism to intercept rate limit.
- Comes without any support.
- Use at your own risk.

#### Getting started

[](#getting-started)

`composer require mvaessen/binance-api`

```
require 'vendor/autoload.php';
$api = new Mvaessen\KrakenFutureApi\Client('','');
```

##### Public endpoint call

[](#public-endpoint-call)

```
$result = $api->queryPublic('', '', '');
```

##### Private endpoint call

[](#private-endpoint-call)

```
$result = $api->queryPrivate('', '', '');
```

Testing
-------

[](#testing)

Make sure to populate the .env file, run `composer install` and set your testing API keys in the `.env` file, in the root of the project. Afterwards run `./vendor/bin/phpunit tests/BasicApiTest.php` to test your API keys. The test runs against the `https://conformance.cryptofacilities.com/derivatives` environment.

Extending &amp; custom error reporting
--------------------------------------

[](#extending--custom-error-reporting)

You can choose to overwrite the `processErrorCode` and `processException` methods to report the errors to your favorite bugreporting software.

```
