pxgamer / vinex
A PHP wrapper for the VINEX API.
Fund package maintenance!
owenvoke
ecologi.com/owenvoke?gift-trees
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
- pxgamer/http-adapters: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-14 20:59:07 UTC
README
A PHP wrapper for the VINEX API.
Install
Via Composer
$ composer require pxgamer/vinex
Usage
Create an instance of the API
$adapter = new HttpAdapter('api-token'); $vinex = new Vinex($adapter); $vinex->basic(); $vinex->general(); $vinex->account();
Basic API calls
// Retrieve the current server unix timestamp (e.g. `1548690153`) $vinex->basic()->getServerTime(); // Retrieve an array of Entity\Market instances $vinex->basic()->getAllMarketInformation(); // Retreive a single Entity\Market instance $vinex->basic()->getSingleMarketInformation('market');
General API calls
// Retrieve an array of Entity\MarketOrder instances $vinex->general()->getMarketOrders('order-type', 'market');
Account API calls
// Retrieve an array of Entity\Balance instances $vinex->account()->getAllBalanceInformation(); // Retrieve a single Entity\Balance instance $vinex->account()->getSingleBalanceInformation('coin'); // Retrieve an array of Entity\Order instances $vinex->account()->getMyOrders(); // Retrieve an array of Entity\Trade instances $vinex->account()->getMyTrading();
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 security@pxgamer.xyz instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.