Overview

Namespaces

  • Sotr
    • Crypto
      • Bitstamp
      • Btce

Classes

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

Interfaces

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

Class AccountBalance

This class represents the current balance of different currencies in a given user account.

Namespace: Sotr\Crypto
Located at AccountBalance.php
Methods summary
public
# __construct( array $balance = [] )

Constructs a new balance instance, optionally with the provided starting balance.

Constructs a new balance instance, optionally with the provided starting balance.

Parameters

$balance
public float
# get( string $currency )

Returns the balance of the given currency.

Returns the balance of the given currency.

Parameters

$currency

Returns

float
public
# set( string $currency, float $value )

Sets the balance of the given currency.

Sets the balance of the given currency.

Parameters

$currency
$value
API documentation generated by ApiGen