funyug / poloniex
Api wrapper for cryptocurrency exchange Poloniex.com
1.1
2017-05-16 13:36 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-06-08 00:41:07 UTC
README
Api client for Poloniex.com. Based on PHP wrapper by compcentral. Extended to have more functionality.
Installation
composer require funyug/poloniex
Usage
use Funyug/Poloniex;
$api = new Poloniex("Api key","Api secret");
Get Balance:
$api->get_total_btc_balance();
Get Order book:
$api->get_order_book("BTC_ETH");
Place Buy Order:
$api->buy('BTC_ETH',$buy_price,$amount);
Place Sell Order:
$api->sell('BTC_ETH', $sell_price, $number_of_coins);