ipad90 / sinegy-php
连接到Sinegy API的PHP库。
0.3
2021-05-14 02:34 UTC
This package is auto-updated.
Last update: 2024-09-14 10:36:44 UTC
README
连接到Sinegy API的PHP库。
如何安装
composer require "ipad90/sinegy-php"
生成API凭证
访问https://marketplace.sinegy.com/user/profile生成API凭证。
官方Sinegy API文档
链接到Sinegy的API文档页面为https://docs.sinegy.com
示例
<?php
require('vendor/autoload.php');
use Ipad90\Sinegy\Marketplace;
$sinegy = new Marketplace('API_KEY', 'SECRET_KEY');
$sinegy_btc_ticker = $sinegy->ticker('btcmyr');
print_r($sinegy_btc_ticker);