Skip to content

Commit

Permalink
Add simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Eyrick authored Apr 10, 2018
1 parent 7b2a029 commit 0b7d96b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[![GitHub last commit](https://img.shields.io/github/last-commit/jaggedsoft/php-binance-api.svg?style=flat-square)](#)
[![HitCount](http://hits.dwyl.io/jaggedsoft/php-binance-api.svg)](http://hits.dwyl.io/jaggedsoft/php-binance-api)
[![Packagist Downloads](https://img.shields.io/packagist/dt/jaggedsoft/php-binance-api.svg?style=flat-square)](https://packagist.org/packages/jaggedsoft/php-binance-api)


[![Build Status](https://travis-ci.org/jaggedsoft/php-binance-api.svg?branch=master&style=flat-square)](https://travis-ci.org/jaggedsoft/php-binance-api)
[![Coverage Status](https://coveralls.io/repos/github/jaggedsoft/php-binance-api/badge.svg?branch=master&style=flat-square)](https://coveralls.io/github/jaggedsoft/php-binance-api)
[![CodeCov](https://codecov.io/gh/jaggedsoft/php-binance-api/branch/master/graph/badge.svg?style=flat-square)](https://codecov.io/github/jaggedsoft/php-binance-api/)
Expand All @@ -13,7 +15,20 @@ This project is designed to help you make your own projects that interact with t

> 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 Documentation](https://github.com/jaggedsoft/php-binance-api/wiki/1.-Getting-Started)
#### Getting started
```php
require 'vendor/autoload.php';
$api = new Binance\API("<api key>","<secret>");
```

#### Get latest price of a symbol
```php
$ticker = $api->prices();
print_r($ticker); // List prices of all symbols
echo "Price of BNB: {$ticker['BNBBTC']} BTC";
```

### [Documentation](https://github.com/jaggedsoft/php-binance-api/wiki/1.-Getting-Started)
> The primary documentation can be found on the [wiki](https://github.com/jaggedsoft/php-binance-api/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
Expand Down

0 comments on commit 0b7d96b

Please sign in to comment.