neilgarb/bitx

BitX PHP Client

dev-master 2015-11-19 14:24 UTC

This package is not auto-updated.

Last update: 2024-10-30 18:15:50 UTC


README

Build Status

This is a PHP client for the BitX API (https://bitx.co/api).

The client uses Guzzle to make HTTPS calls.

Installation

composer require "neilgarb/bitx"

Usage

$client = new Bitx\Client('key', 'secret');
$tickers = $client->getTickers();

Reference

getTicker($pair)
getTickers()
getOrderbook($pair)
getTrades($pair)
createAccount($currency, $name)
getBalance()
getTransactions($account, $min_row, $max_row)
getOrders($state = null, $pair = null)
createOrder($pair, $type, $volume, $price)
createMarketOrder(
stopOrder($order_id)
getOrder($order)
getFundingAddress($asset, $address = null)
createFundingAddress($asset)
getWithdrawals()
createWithdrawal($type, $amount)
getWithdrawal($withdrawal)
deleteWithdrawal($withdrawal)
createSend(
createQuote($type, $base_amount, $pair)
getQuote($quote)
exerciseQuote($quote)