sabramooz/laravel-binance
最新稳定版本:v1.1
Composer 安装命令:
composer require sabramooz/laravel-binance
包简介
Implementation of Binance trading API for Laravel
README 文档
README
Laravel implementation of the Binance crypto exchange trading API
https://scrutinizer-ci.com/g/sabramooz/laravel-binance/
Install
composer require sabramooz/laravel-binance
Utilises autoloading in Laravel 5.5+. For older versions add the following lines to your config/app.php
'providers' => [ ... sabramooz\binance\BinanceServiceProvider::class, ... ], 'aliases' => [ ... 'Binance' => sabramooz\binance\BinanceAPIFacade::class, ],
Usage
$binance = new \sabramooz\binance\BinanceAPI(); dump($binance->getAvgPrice("BTCUSDT")); dump($binance->getAvgPrice("ETHUSDT"));
Result
array:2 [▼
"mins" => 5
"price" => "37009.43501853"
]
array:2 [▼
"mins" => 5
"price" => "1407.75224237"
]
Binance API Doc
https://binance-docs.github.io/apidocs/spot/en/#market-data-endpoints
🙋 Contributing
If you find an issue or have a better way to do something, feel free to open an issue, or a pull request. If you use laravel-binance in your open source project, create a pull request to provide its URL as a sample application in the README.md file.
❗ Security
If you discover any security-related issues, please email pooya.alen1990@gmail.com instead of using the issue tracker.
统计信息
- 总下载量: 492
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-19