pxgamer/vinex

用于VINEX API的PHP包装器。

v1.0.0-beta.3 2019-10-14 09:38 UTC

This package is auto-updated.

Last update: 2024-09-14 20:40:49 UTC


README

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

用于VINEX API的PHP包装器。

安装

通过Composer

$ composer require pxgamer/vinex

用法

创建API实例

$adapter = new HttpAdapter('api-token');
$vinex = new Vinex($adapter);

$vinex->basic();
$vinex->general();
$vinex->account();

基本API调用

// 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');

通用API调用

// Retrieve an array of Entity\MarketOrder instances
$vinex->general()->getMarketOrders('order-type', 'market');

账户API调用

// 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();

变更日志

有关最近更改的更多信息,请参阅CHANGELOG

测试

$ composer test

贡献

有关详细信息,请参阅CONTRIBUTINGCODE_OF_CONDUCT

安全性

如果您发现任何安全相关的问题,请通过security@pxgamer.xyz发送电子邮件,而不是使用问题跟踪器。

致谢

许可

MIT许可(MIT)。有关更多信息,请参阅许可文件