pxgamer / cryptopia
An API wrapper for Cryptopia.co.nz
Fund package maintenance!
owenvoke
ecologi.com/owenvoke?gift-trees
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^6.4
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2024-11-11 15:16:32 UTC
README
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.