sun-otc/sun-otc-open

php-sdk for SunOTC

Installs: 318

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/sun-otc/sun-otc-open

v0.0.5 2020-08-11 09:00 UTC

This package is not auto-updated.

Last update: 2025-10-01 10:22:37 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);
       

链接