Skip to content

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api

License

Notifications You must be signed in to change notification settings

johnidevo/php-binance-api

Repository files navigation

Latest Version GitHub last commit HitCount Packagist Downloads

Build Status Coverage Status CodeCov Codacy Badge Code consistency Codacy Badge

PHP Binance API

This project is designed to help you make your own projects that interact with the Binance API. You can stream candlestick chart data, market depth, or use other advanced features such as setting stop losses and iceberg orders. This project seeks to have complete API coverage including WebSockets.

Special thank you to all contributors: dmzoneill, dxjones, jokaorgua, and others!! This package needs help from the community. Improvements contributed to this project are encouraged, and you will be given full credit for changes. All pull requests welcome.

Getting started

composer require jaggedsoft/php-binance-api

require 'vendor/autoload.php';
$api = new Binance\API("<api key>","<secret>");

Get latest price of a symbol

$ticker = $api->prices();
print_r($ticker); // List prices of all symbols
echo "Price of BNB: {$ticker['BNBBTC']} BTC";

The primary documentation can be found on the wiki. There are also numerous other formats available. if you would like the markdown format of the wiki, you can clone it using:

git clone https://github.com/jaggedsoft/php-binance-api.wiki.git

About

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%