sadykh / yii2-btce-api
BTC-e api yii2-extensions
1.0.5
2017-10-28 14:31 UTC
Requires
- php: >=7.0.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-29 04:08:59 UTC
README
BTC-e API 类
允许使用 BTC-e 的私有和公共 API。
内置支持:公共 API:货币对费用、货币对行情、货币对交易、货币对深度
Private API:
Trade (Buy/Sell) Orders
Checking on Past Orders
API Query Method
- Auto-recovery from bad noonces
- Allows any method with any parameters to be called on btc-e
Example Usage provided in Example.php
How to integrate:
require_once('btce-api.php');
$BTCeAPI = new BTCeAPI({APIKEY},{APISECRET}[,Optional:{START_NOONCE}]);
Private API Quick Example:
$BTCeAPI->makeOrder($amount, $pair, $direction, $price);
Public API Quick Example:
$BTCeAPI->getPairDepth('btc_usd');