pavlyshyn/bittrex

此软件包最新版本(0.1.0)没有可用的许可信息。

Bittrex加密货币交易所的API包装器

0.1.0 2017-08-05 20:37 UTC

This package is auto-updated.

Last update: 2024-09-27 01:26:49 UTC


README

此软件包是Bittrex.com交易所的包装器。它可以用来检查当前市场、检查您的投资组合以及放置买卖订单。

要求

  • 在bittrex.com上有一个账户,包括API密钥和API密钥。

用法

使用以下命令安装此软件包:

composer require pavlyshyn/bittrex

创建一个bittrex对象的实例,并调用其中的一种可用方法。

use Pavlyshyn\Bittrex\Client;

$key = 'here-comes-the-api-key-from-bittrex';
$secret = 'this-is-the-api-secret-from-bittrex';

// Create a new Bittrex client object
$btx = new Client($key, $secret);

// Get the current values for the BTC-LTC market
$ticker = $btx->ticker('BTC-LTC);

// Get the current orderbook for the BTC-DGB market
$oderBook = $btx->orderBook('BTC-DGB');

// Get your open orders for the BTC-ETH market
$orders = $btx->orderHistory('BTC-ETH);