arispati / indodax
Indodax API
v1.0.1
2021-05-05 03:56 UTC
Requires
- guzzlehttp/guzzle: ^6.3.1|^7.0.1
Requires (Dev)
- orchestra/testbench: ^5.0
- phpunit/phpunit: ^8.5
README
PHP 库,提供 Indodax 公共 API
API 参考
- Indodax 官方 API 文档,文档。
要求
- Laravel 7
如何安装
- 使用 composer 安装
composer require arispati/indodax
如何使用
use Arispati\Indodax\Indodax; // Get pairs Indodax::getPairs();
配置(可选)
- 发布配置
php artisan vendor:publish --provider="Arispati\Indodax\Provider\IndodaxServiceProvider" --tag="config"
可用方法
// Get server time Indodax::getServerTime(); // Get pairs Indodax::getPairs(); // Get price increments Indodax::getPriceIncrements(); // Get summaries Indodax::getSummaries(); // Get ticker Indodax::getTicker($pairID); // Get all tickers Indodax::getAllTickers(); // Get trades Indodax::getTrades($pairID); // Get depth Indodax::getDepth($pairID);
测试
composer test