pxgamer/cryptopia

An API wrapper for Cryptopia.co.nz

v1.0.0 2018-01-17 12:35 UTC

README

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

An API wrapper for Cryptopia.co.nz

Structure

src/
tests/
vendor/

Install

Via Composer

$ composer require pxgamer/cryptopia

Usage

Basic methods

Initialise the Basic class.

$basic = new pxgamer\Cryptopia\Basic();

Retrieve a list of currencies as an array.

$basic->getCurrencies();

Retrieve a list of trade pairs as an array.

$basic->getTradePairs();

Retrieve a list of markets as an array.

$basic->getMarkets();

Retrieve a single market as a stdClass.

$basic->getMarket();

Retrieve a single market's history as an array.

$basic->getMarketHistory();

Retrieve a single market's orders as a stdClass.

$basic->getMarketOrders();

Retrieve a list of market order groups as an array.

$basic->getMarketOrderGroups();

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.