Overview

Namespaces

  • Sotr
    • Crypto
      • Bitstamp
      • Btce

Classes

  • AbstractApi
  • AbstractRequestSigner
  • AccountBalance
  • CurrencyPair
  • Ticker
  • TimestampNonceGenerator

Interfaces

  • CurrencyPairResolverInterface
  • ExchangeApiInterface
  • NonceGeneratorInterface
  • RequestSignerInterface
  • Overview
  • Namespace
  • Class

Class AbstractApi

Sotr\Crypto\AbstractApi implements Sotr\Crypto\ExchangeApiInterface

Direct known subclasses

Sotr\Crypto\Bitstamp\BitstampApi, Sotr\Crypto\Btce\BtceApi
Abstract
Namespace: Sotr\Crypto
Located at AbstractApi.php
Methods summary
public
# __construct( $key = null, $secret = null )
abstract public string
# getPublicBaseUri( )

Returns the base URI of this exchange's public API.

Returns the base URI of this exchange's public API.

Returns

string

Implementation of

Sotr\Crypto\ExchangeApiInterface::getPublicBaseUri()
abstract public string
# getTradingBaseUri( )

Returns the base URI of this exchange's private and/or trading API.

Returns the base URI of this exchange's private and/or trading API.

Returns

string

Implementation of

Sotr\Crypto\ExchangeApiInterface::getTradingBaseUri()
abstract public Sotr\Crypto\Ticker
# getTicker( Sotr\Crypto\CurrencyPair $pair = null )

Gets the latest ticker for the given currency pair.

Gets the latest ticker for the given currency pair.

Parameters

$pair

Returns

Sotr\Crypto\Ticker

Implementation of

Sotr\Crypto\ExchangeApiInterface::getTicker()
abstract public Sotr\Crypto\AccountBalance
# getBalance( )

Gets the user account's balance.

Gets the user account's balance.

Returns

Sotr\Crypto\AccountBalance

Implementation of

Sotr\Crypto\ExchangeApiInterface::getBalance()
public
# setClient( GuzzleHttp\ClientInterface $client )
public
# setCurrencyPairResolver( Sotr\Crypto\CurrencyPairResolverInterface $resolver )
Properties summary
protected GuzzleHttp\Client $client

The Guzzle client.

The Guzzle client.

#
protected Sotr\Crypto\CurrencyPairResolverInterface $resolver

The currency pair resolver.

The currency pair resolver.

# null
protected string $key

The customer's API key.

The customer's API key.

#
protected string $secret

The customer's API secret.

The customer's API secret.

#
API documentation generated by ApiGen