Download the PHP package kurisu/laravel-exincore-sdk without Composer
On this page you can find all versions of the php package kurisu/laravel-exincore-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-exincore-sdk
laravel-exincore-sdk
Requirement
Laravel
>= 5.1Composer
PHP
>= 7.0
Installation
配置
-
如果你的 Laravel >=
5.5
,可跳过第一步,从第二步开始即可。否则需要在config/app.php
中注册 ServiceProvider 和 Facade。 -
创建配置文件
-
填写配置,你可以选择如下几种方法中的一种来配置
-
填写
config/exincore.php
和.env
配置此后,调用时就自动载入以上配置。
如果不想私钥被记录到 VCS 中,可以参考此处进行配置
-
你也可以不在
config/exincore.php
中进行任何配置,以如下方式调用即可 - 你也可以在项目中封装自己的方法来更加方便的切换配置。
-
使用
例示
调用
code | description |
---|---|
ExinCore::readExchangeList($baseAsset = null, $exchangeAsset = null) |
查询指定交易对的行情 |
ExinCore::createOrder($baseAsset, $exchangeAsset, $amount) |
创建订单 |
WARNING
有三个不太重要的可配置项
-
是否需要返回原始响应体
-
如果 Mixin Network Api 返回错误码,是否抛出异常
- 设置网络请求超时时间
Alternatives
LICENSE
MIT
All versions of laravel-exincore-sdk with dependencies
PHP Build Version
Package Version
The package kurisu/laravel-exincore-sdk contains the following files
Loading the files please wait ....