Skip to content

haydenw/nzbcx-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NZBCX Bitcoin Exchange API PHP wrapper

This is a PHP wrapper library for the NZBCX API

Installation

Install using Composer.

composer require haydenw/nzbcx-api:dev-master

Authentication

Modify $apiKey, $apiSecret and $userId to your API details. Ensure these are kept securely.

$apiKey = "W8X7nzwDxifU8HYo56TzSXqVRhAFhsUc8RWo";
$apiSecret = "PDmYdflwnE4jQhdvnlDkK3gBQ0E1qmSdX0sL";
$userId = "1234567";

Basic usage

$nzbcx = new NZBCX($apiKey, $apiSecret, $userId, true); // Create NZBCX instance in test mode

// Make calls to NZBCX functions and use the results returned
$accountBalance = $nzbcx->accountBalance();
if ($accountBalance) {
	echo "BTC Balance: ".$accountBalance->BTC_balance."\n";
	echo "NZD Balance: ".$accountBalance->NZD_balance."\n";
}

See example.php for more detailed code usage.

About

NZBCX Bitcoin Exchange API PHP wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages