Module: Cryptum::API::Fees

Defined in:
lib/cryptum/api/fees.rb

Overview

Module specifically related to orders history retrieval.

Class Method Summary collapse

Class Method Details

.get(opts = {}) ⇒ Object

Obtain latest order history



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cryptum/api/fees.rb', line 9

public_class_method def self.get(opts = {})
  option_choice = opts[:option_choice]
  env = opts[:env]

  fees_api_call = '/fees'

  Cryptum::API::Rest.call(
    option_choice: option_choice,
    env: env,
    http_method: :GET,
    api_call: fees_api_call
  )
rescue Interrupt, StandardError => e
  Cryptum::Log.append(level: :error, msg: e, which_self: self)
end

.helpObject

Display Usage for this Module



26
27
28
29
30
31
32
33
# File 'lib/cryptum/api/fees.rb', line 26

public_class_method def self.help
  puts "USAGE:
    fees = #{self}.get(
      env: 'required - Coinbase::Option::Environment.get Object',
      option_choice: 'required - Coinbase::Option::Choice Object'
    )
  "
end