sun-otc / sun-otc-open
php-sdk for SunOTC
v0.0.5
2020-08-11 09:00 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-openssl: *
- rmccue/requests: ^1.7
This package is not auto-updated.
Last update: 2025-04-16 08:19:54 UTC
README
基于PHP的OTC商户api接口SDK
安装方法
$ composer require sun-otc/sun-otc-open
使用方法
use SunOTC\SunOTC;
$data = '{"app_id":"123","merc_order_id":"200611184930170114"}';
$OtcService = (new SunOTC('', Dictionary::PRI_KEY));
$OtcService->getOrderMsg($data);
// //查询交易限制
$data = '{"app_id":"123"}';
$OtcService = (new SunOTC('', Dictionary::PRI_KEY));
$OtcService->getTradeLimit($data);*/
//查询商户资产
$data = '{"app_id":"123","merc_order_id":"200611184930170114"}';
$OtcService = (new SunOTC('',Dictionary::PRI_KEY));
$OtcService->getMercAsset($data);
//查询价格
$data = '{"app_id":"123","coin":"USDT"}';
$OtcService = (new SunOTC('', Dictionary::PRI_KEY));
$OtcService->getTradePrice($data);