jccdex / jcc_rpc_php
a php jcc rpc framework
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.3@dev
Requires (Dev)
- phpunit/phpunit: ^8.3@dev
This package is auto-updated.
Last update: 2024-10-23 20:10:46 UTC
README
Installation
The recommended way to install jcc_rpc_php is through Composer.
# Install Composer
curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of jcc_rpc_php:
php composer.phar require jccdex/jcc_rpc_php # OR composer require jccdex/jcc_rpc_php
Help and docs
Config API
getConfig
use JccDex\Http\Config; $config = new Config(['jccdex.cn', 'eth626892d.jccdex.cn'], 443, true); // $config = new Config('jccdex.cn', 443, true); echo $config->getConfig();
Exchange API
firstly Instantiate an object
use JccDex\Http\Exchange; $exchange = new Exchange(['ewdjbbl8jgf.jccdex.cn'], 443, true);
getBalances
parameters
echo $exchange->getBalances($address);
getHistoricTransactions
parameters
echo $exchange->getHistoricTransactions($address, $ledger, $seq);
getHistoricPayments
parameters
echo $exchange->getHistoricPayments($address, $ledger, $seq);
getOrders
parameters
echo $exchange->getOrders($address, $page);
createOrder
parameters
echo $exchange->createOrder($sign);
deleteOrder
parameters
echo $exchange->deleteOrder($sign);
getSequence
parameters
echo $exchange->getSequence($address);
transferAccount
parameters
echo $exchange->getSequence($sign);
Info API
firstly Instantiate an object
use JccDex\Http\Info; $info = new Info(["i3b44eb75ef.jccdex.cn", "i059e8792d5.jccdex.cn", "i352fb2ef56.jccdex.cn"], 443, true);
getAllTickers
echo $info->getAllTickers();
getTicker
parameters
echo $exchange->getTicker($base, $counter);
getDepth
parameters
echo $exchange->getDepth($base, $counter, $type);
getKline
parameters
echo $exchange->getKline($base, $counter, $type);
getHistory
parameters
echo $exchange->getHistory($base, $counter, $type, $time);
getTickerFromCMC
parameters
echo $exchange->getTickerFromCMC($token, $currency);
Biz API
firstly Instantiate an object
use JccDex\Http\Biz; $biz = new Biz(['ewdjbbl8jgf.jccdex.cn'], 443, true);
getSmsCode
parameters
echo $biz->getSmsCode($phone, $verifyType);
getImgCode
echo $biz->getImgCode($phone, $verifyType);
checkSmsCode
parameters
echo $biz->checkSmsCode($phone, $verifyType, $verifyCodeType);
checkImgCode
parameters
echo $biz->checkImgCode($userName, $imgCode);
isActive
parameters
echo $biz->isActive($userName);
register
parameters
echo $biz->register($userName, $password, $publicKey, $verifyCode, $imgCode);
emailRegister
parameters
echo $biz->emailRegister($userName, $password, $publicKey, $verifyCode, $imgCode);
login
parameters
echo $biz->login($userName, $password, $imgCode);
logout
parameters
echo $biz->logout($userName);
getMyself
parameters
echo $biz->getMyself($userName);
uploadImage
parameters
echo $biz->uploadImage($userName, $data);
verify
parameters
echo $biz->verify($userName, $data);
changeMobile
parameters
echo $biz->changeMobile($phone, $verifyCode, $password);
changePassword
parameters
echo $biz->changePassword($userName, $newPwd, $oldPwd);
resetPassword
parameters
echo $biz->resetPassword($userName, $verifyCode, $oldPwd);
bindEmail
parameters
echo $biz->bindEmail($userName, $email, $verifyCode, $password);
uploadWallet
parameters
echo $biz->uploadWallet($userName, $publicKey);
getToken
parameters
echo $biz->getToken($userName);
getHelp
parameters
echo $biz->getHelp($url);
getAbout
parameters
echo $biz->getAbout($url);
createDepositOrder
parameters
echo $biz->createDepositOrder($userName, $base, $amount, $baseWallet, $jtWallet, $agentWallet, $agentID);
cancelDepositOrder
parameters
echo $biz->cancelDepositOrder($userName, $base, $orderID);
updateDepositOrder
parameters
echo $biz->updateDepositOrder($userName, $base, $orderID, $hash);
getDepositDetail
parameters
echo $biz->getDepositDetail($userName, $base, $orderID);
getPendingDeposit
parameters
echo $biz->getPendingDeposit($userName, $base);
getDepositOrders
parameters
echo $biz->getDepositOrders($userName, $base, $page);
createWithdrawOrder
parameters
echo $biz->createWithdrawOrder($userName, $base, $amount, $baseWallet, $jtWallet, $agentWallet, $agentID);
getWithdrawOrders
parameters
echo $biz->getWithdrawOrders($userName, $base, $page);
updateWithdrawOrder
parameters
echo $biz->updateWithdrawOrder($userName, $orderID, $hash);
getWithdrawDetail
parameters
echo $biz->getWithdrawDetail($userName, $base, $orderID);
getAgentInfo
parameters
echo $biz->getAgentInfo($userName, $base);
getCoinlist
parameters
echo $biz->getCoinlist($userName);
getNewsReportList
parameters
echo $biz->getNewsReportList($count);
getNoticeList
parameters
echo $biz->getNoticeList($type, $count);