Class: Bitbot::Trader::Providers::Bitstamp

Inherits:
Bitbot::Trader::Provider show all
Defined in:
lib/bitbot/trader/providers/bitstamp.rb,
lib/bitbot/trader/providers/bitstamp/http_client.rb,
lib/bitbot/trader/providers/bitstamp/open_orders_parser.rb,
lib/bitbot/trader/providers/bitstamp/open_orders_request.rb

Overview

Provider for Bitstamp API

Defined Under Namespace

Classes: HttpClient, OpenOrderParser, OpenOrdersRequest

Instance Attribute Summary

Attributes inherited from Bitbot::Trader::Provider

#client

Instance Method Summary collapse

Methods included from ApiMethods

#account, #open_orders

Constructor Details

#initialize(options, client = HttpClient.build(options)) ⇒ undefined

Initializes Bitstamp provider

Parameters:

  • options (Hash)
  • client (HttpClient) (defaults to: HttpClient.build(options))

Options Hash (options):

  • :username (String)
  • :password (String)


23
24
25
# File 'lib/bitbot/trader/providers/bitstamp.rb', line 23

def initialize(options, client = HttpClient.build(options))
  @client = client
end