PHPackages                             mvaessen/binance-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. mvaessen/binance-api

ActiveLibrary[API Development](/categories/api)

mvaessen/binance-api
====================

Simple Binance API Wrapper, written in PHP. Includes the basics and assumes you know your way around.

0.2.4(7y ago)076MITPHPPHP &gt;=5.4

Since May 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mvaessen/binance-api)[ Packagist](https://packagist.org/packages/mvaessen/binance-api)[ RSS](/packages/mvaessen-binance-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Binance API Wrapper PHP
=======================

[](#binance-api-wrapper-php)

Simple Binance API Wrapper, written in PHP. Includes some basic methods to work with the API and assumes you know your way around. Check out the [Binance API Documentation](https://github.com/binance-exchange/binance-official-api-docs) for more information about the available endpoints. Will throw an exception when errors are encountered.

### Please note:

[](#please-note)

- Does NOT include mechanism to intercept rate limit.
- Comes without any support.
- Use at your own risk.

#### Getting started

[](#getting-started)

`composer require mvaessen/binance-api`

```
require 'vendor/autoload.php';
$api = new Mvaessen\BinanceApi\Client('','');
```

#### Get account information

[](#get-account-information)

```
$result = $api->account();
print $result;
```

##### Public endpoint call

[](#public-endpoint-call)

```
$result = $api->queryPublic('', '', '');
```

##### Private endpoint call

[](#private-endpoint-call)

```
$result = $api->queryPrivate('', '', '');
```

Custom error reporting
----------------------

[](#custom-error-reporting)

You can choose to overwrite the `processErrorCode` and `processException` methods to report the errors to your favorite bugreporting software.

```
