sadykh/yii2-btce-api

BTC-e api yii2-extensions

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 41

Type:yii2-extension

1.0.5 2017-10-28 14:31 UTC

This package is not auto-updated.

Last update: 2024-06-09 02:46:52 UTC


README

BTC-e API Class

Allows for the use of the Private and Public APIs from BTC-e.

Built in Support For: Public API: Currency Pair Fees Currency Pair Tickers Currency Pair Trades Currency Pair Depths

Private API:
	Trade (Buy/Sell) Orders
	Checking on Past Orders
	API Query Method
		- Auto-recovery from bad noonces
		- Allows any method with any parameters to be called on btc-e
		
		
Example Usage provided in Example.php


How to integrate:
require_once('btce-api.php');
$BTCeAPI = new BTCeAPI({APIKEY},{APISECRET}[,Optional:{START_NOONCE}]);


Private API Quick Example:
$BTCeAPI->makeOrder($amount, $pair, $direction, $price);

Public API Quick Example:
$BTCeAPI->getPairDepth('btc_usd');