require 'api.php';
$api = new API($apiKey,$apiSecret);
$info = $api->info();
$ticker =$api->ticker($pair);
// exemples of pair "ltc_btc"
// you can also send multiple pairs separate with "-". For exemple "ltc_btc-eth_btc"
Function returns information about lists of active orders for selected pairs.
$depth = $api->depth($pair);
Function returns information about lists of active orders for selected pairs.
$trades = $api->trades($pair);
Function returns information about user's balances and priviledges of API-key as well as server time.
$getInfo = $api->getInfo($pairs);
Get total balances, including reserved in orders.
$balances = $api->balance(); $avilableBalances =$api->avilableBalance(); $buy=$api->buy($pair, $amount, $rate); $sell = $api->sell($pair, $amount, $rate); Function returns list of user's active orders.
$openOrders = $api->openOrders($pair); Informations apout order
$orderInfo =$api->orderInfo($order_id); Cancells the chosen order
$cancel = $api->cancelOrder($order_id); Returns transaction history.
$tradeHistory =$api->tradeHistory($pair); Returns deposit address.
$getDepositAdress = $api->getDepositAddress($coin);
If you need new adress second element is number 1
$getDepositAdress = $api->getDepositAddress($coin,1); Creates withdrawal request.
$withdrawal = $api->withdraw($coin, $amount, $adress);
That is all.I hope I was helpful:)
BTC: 17HV8gPV9atBi5KjFCe6r2NDtwqLHaq2Ji
LTC: LXPTJW8eJMHQVzwnJbY7ukfQ6sM6pJpJe1
ETH: 0x0921eeed3f8dbf8da2e587e8c648a6f546c4ffe4
.