Module: Bitsor

Extended by:
Configurable
Defined in:
lib/bitsor.rb,
lib/bitsor/error.rb,
lib/bitsor/client.rb,
lib/bitsor/default.rb,
lib/bitsor/version.rb,
lib/bitsor/normalizer.rb,
lib/bitsor/client/fees.rb,
lib/bitsor/client/ledger.rb,
lib/bitsor/client/orders.rb,
lib/bitsor/client/ticker.rb,
lib/bitsor/client/trades.rb,
lib/bitsor/client/balance.rb,
lib/bitsor/client/funding.rb,
lib/bitsor/client/order_book.rb,
lib/bitsor/client/open_orders.rb,
lib/bitsor/client/user_trades.rb,
lib/bitsor/client/withdrawals.rb,
lib/bitsor/client/order_trades.rb,
lib/bitsor/client/phone_number.rb,
lib/bitsor/concerns/connection.rb,
lib/bitsor/concerns/rate_limit.rb,
lib/bitsor/client/kyc_documents.rb,
lib/bitsor/client/mx_bank_codes.rb,
lib/bitsor/client/account_status.rb,
lib/bitsor/concerns/authorizable.rb,
lib/bitsor/concerns/configurable.rb,
lib/bitsor/client/available_books.rb,
lib/bitsor/client/spei_withdrawal.rb,
lib/bitsor/client/ether_withdrawal.rb,
lib/bitsor/client/bitcoin_withdrawal.rb,
lib/bitsor/client/phone_verification.rb,
lib/bitsor/client/funding_destination.rb,
lib/bitsor/client/debit_card_withdrawal.rb,
lib/bitsor/client/phone_number_withdrawal.rb

Defined Under Namespace

Modules: Authorizable, Configurable, Connection, Default Classes: BadGateway, BadRequest, Client, ClientError, Error, Forbidden, InternalServerError, MethodNotAllowed, Normalizer, NotAcceptable, NotFound, NotImplemented, RateLimit, ServerError, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity

Constant Summary collapse

MAJOR =

Current major release.

Returns:

  • (Integer)
0
MINOR =

Current minor release.

Returns:

  • (Integer)
1
PATCH =

Current patch level.

Returns:

  • (Integer)
2
VERSION =

Full release version.

Returns:

  • (String)
[MAJOR, MINOR, PATCH].join('.').freeze

Instance Attribute Summary

Attributes included from Configurable

#api_key, #api_secret, #client_id

Class Method Summary collapse

Methods included from Configurable

api_endpoint, configure, keys, reset!

Class Method Details

.clientObject



11
12
13
14
# File 'lib/bitsor.rb', line 11

def client
  return @client if defined?(@client)
  @client = Bitsor::Client.new(options)
end