Skip to content

JCCDex/jcc_rpc_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jcc_rpc_php

License Total Downloads Build Status Latest Stable Version

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

Interface Documents

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

参数名 类型 必填
address string
echo $exchange->getBalances($address);

getHistoricTransactions

parameters

参数名 类型 必填
address string
ledger string
seq string
echo $exchange->getHistoricTransactions($address, $ledger, $seq);

getHistoricPayments

parameters

参数名 类型 必填
address string
ledger string
seq string
echo $exchange->getHistoricPayments($address, $ledger, $seq);

getOrders

parameters

参数名 类型 必填
address string
page string
echo $exchange->getOrders($address, $page);

createOrder

parameters

参数名 类型 必填
sign string
echo $exchange->createOrder($sign);

deleteOrder

parameters

参数名 类型 必填
sign string
echo $exchange->deleteOrder($sign);

getSequence

parameters

参数名 类型 必填
address string
echo $exchange->getSequence($address);

transferAccount

parameters

参数名 类型 必填
sign string
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

参数名 类型 必填
base string
counter string
echo $exchange->getTicker($base, $counter);

getDepth

parameters

参数名 类型 必填
base string
counter string
type string
echo $exchange->getDepth($base, $counter, $type);

getKline

parameters

参数名 类型 必填
base string
counter string
type string
echo $exchange->getKline($base, $counter, $type);

getHistory

parameters

参数名 类型 必填
base string
counter string
type string
time string
echo $exchange->getHistory($base, $counter, $type, $time);

getTickerFromCMC

parameters

参数名 类型 必填
token string
currency string
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

参数名 类型 必填
phone string
verifyType string
echo $biz->getSmsCode($phone, $verifyType);

getImgCode

echo $biz->getImgCode($phone, $verifyType);

checkSmsCode

parameters

参数名 类型 必填
phone string
verifyType string
verifyCodeType string
echo $biz->checkSmsCode($phone, $verifyType, $verifyCodeType);

checkImgCode

parameters

参数名 类型 必填
userName string
imgCode string
echo $biz->checkImgCode($userName, $imgCode);

isActive

parameters

参数名 类型 必填
userName string
echo $biz->isActive($userName);

register

parameters

参数名 类型 必填
userName string
password string
publicKey string
verifyCode string
imgCode string
echo $biz->register($userName, $password, $publicKey, $verifyCode, $imgCode);

emailRegister

parameters

参数名 类型 必填
userName string
password string
publicKey string
verifyCode string
imgCode string
echo $biz->emailRegister($userName, $password, $publicKey, $verifyCode, $imgCode);

login

parameters

参数名 类型 必填
userName string
password string
imgCode string
echo $biz->login($userName, $password, $imgCode);

logout

parameters

参数名 类型 必填
userName string
echo $biz->logout($userName);

getMyself

parameters

参数名 类型 必填
userName string
echo $biz->getMyself($userName);

uploadImage

parameters

参数名 类型 必填
userName string
data string
echo $biz->uploadImage($userName, $data);

verify

parameters

参数名 类型 必填
userName string
data string
echo $biz->verify($userName, $data);

changeMobile

parameters

参数名 类型 必填
phone string
verifyCode string
password string
echo $biz->changeMobile($phone, $verifyCode, $password);

changePassword

parameters

参数名 类型 必填
userName string
newPwd string
oldPwd string
echo $biz->changePassword($userName, $newPwd, $oldPwd);

resetPassword

parameters

参数名 类型 必填
userName string
verifyCode string
oldPwd string
echo $biz->resetPassword($userName, $verifyCode, $oldPwd);

bindEmail

parameters

参数名 类型 必填
userName string
email string
verifyCode string
password string
echo $biz->bindEmail($userName, $email, $verifyCode, $password);

uploadWallet

parameters

参数名 类型 必填
userName string
publicKey string
echo $biz->uploadWallet($userName, $publicKey);

getToken

parameters

参数名 类型 必填
userName string
echo $biz->getToken($userName);

getHelp

parameters

参数名 类型 必填
url string
echo $biz->getHelp($url);

getAbout

parameters

参数名 类型 必填
url string
echo $biz->getAbout($url);

createDepositOrder

parameters

参数名 类型 必填
userName string
base string
amount string
baseWallet string
jtWallet string
agentWallet string
agentID string
echo $biz->createDepositOrder($userName, $base, $amount, $baseWallet, $jtWallet, $agentWallet, $agentID);

cancelDepositOrder

parameters

参数名 类型 必填
userName string
base string
orderID string
echo $biz->cancelDepositOrder($userName, $base, $orderID);

updateDepositOrder

parameters

参数名 类型 必填
userName string
base string
orderID string
hash string
echo $biz->updateDepositOrder($userName, $base, $orderID, $hash);

getDepositDetail

parameters

参数名 类型 必填
userName string
base string
orderID string
echo $biz->getDepositDetail($userName, $base, $orderID);

getPendingDeposit

parameters

参数名 类型 必填
userName string
base string
echo $biz->getPendingDeposit($userName, $base);

getDepositOrders

parameters

参数名 类型 必填
userName string
base string
page string
echo $biz->getDepositOrders($userName, $base, $page);

createWithdrawOrder

parameters

参数名 类型 必填
userName string
base string
amount string
baseWallet string
jtWallet string
agentWallet string
agentID string
echo $biz->createWithdrawOrder($userName, $base, $amount, $baseWallet, $jtWallet, $agentWallet, $agentID);

getWithdrawOrders

parameters

参数名 类型 必填
userName string
base string
page string
echo $biz->getWithdrawOrders($userName, $base, $page);

updateWithdrawOrder

parameters

参数名 类型 必填
userName string
orderID string
hash string
echo $biz->updateWithdrawOrder($userName, $orderID, $hash);

getWithdrawDetail

parameters

参数名 类型 必填
userName string
base string
orderID string
echo $biz->getWithdrawDetail($userName, $base, $orderID);

getAgentInfo

parameters

参数名 类型 必填
userName string
base string
echo $biz->getAgentInfo($userName, $base);

getCoinlist

parameters

参数名 类型 必填
userName string
echo $biz->getCoinlist($userName);

getNewsReportList

parameters

参数名 类型 必填
count string
echo $biz->getNewsReportList($count);

getNoticeList

parameters

参数名 类型 必填
type string
count string
echo $biz->getNoticeList($type, $count);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages