Download the PHP package cryptopupua/kuna-api without Composer
On this page you can find all versions of the php package cryptopupua/kuna-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cryptopupua/kuna-api
More information about cryptopupua/kuna-api
Files in cryptopupua/kuna-api
Informations about the package kuna-api
Kuna.io REST API PHP Client
Kuna.io provides REST APIs that you can use to interact with platform programmatically.
This API client will help you interact with Kuna by REST API.
Table Of Contents
- License
- Kuna REST API Reference
- Contributing
- Install
- Usage
- Mapping
- Error handling
- Running the tests
- Running Unit tests
- Library api
- Shared resources (Public Kuna API)
- Private resources (Private Kuna API)
License
MIT License
Kuna REST API Reference
Contributing
To create new endpoint - create issue or create pull request
Install
composer require cryptopupua/kuna-api 1.1.*
Usage
Mapping
Each endpoint response (exclude: timestamp) can be received as array
or as object
.
To use mapping response to object
set parameter $mapping
to true
.
Error handling
Each client request errors wrapped to custom exception madmis\ExchangeApi\Exception\ClientException
ClientException contains original request object and response object if response available
So, to handle errors use try/catch
Running the tests
To run the tests, you'll need to install phpunit. Easiest way to do this is through composer.
composer install
Running Unit tests
php vendor/bin/phpunit -c phpunit.xml.dist
Library api
Shared resources (Public Kuna API)
Private resources (Private Kuna API)
All versions of kuna-api with dependencies
doctrine/annotations Version ^1.4
symfony/options-resolver Version ^3.3
madmis/exchange-api Version ^0.1