stk2k / phinance
phinance, binance API PHP client
0.4.3
2018-08-16 11:52 UTC
Requires
- php: >=5.5.0
- psr/log: ^1.0
- stk2k/net-driver: ~0.2
- wa72/simplelogger: ~v1.1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
- wa72/simplelogger: ~v1.1.0
README
Description
phinance is a PHP library which provides calling binance-API.
Feature
- simple interface
Demo
simple and fastest sample:
use Phinance\PhinanceClient; $client = new PhinanceClient(); $exchange_info = $client->getExchangeInfo(); foreach($exchange_info->symbols as $idx => $symbol){ echo $idx . '.' . PHP_EOL; echo 'symbol:' . $symbol->symbol . PHP_EOL; }
Usage
- create PhinanceClient object.
- call API method.
- The method returns array or object(stdClass).
Requirement
PHP 5.5 or later
Installing phinance
The recommended way to install phinance is through Composer.
composer require stk2k/phinance
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
License
Author
Disclaimer
This software is no warranty.
We are not responsible for any results caused by the use of this software.
Please use the responsibility of the your self.
Donation
-Bitcoin: 3HCw9pp6dSq1xU9iPoPKVFyVbM8iBrrinn