class Darwinex::Product

Attributes

info_api[R]
product_name[R]

Public Class Methods

new(product_name:, info_api:) click to toggle source
# File lib/darwinex/product.rb, line 7
def initialize(product_name:, info_api:)
  @product_name = product_name
  @info_api = info_api
end

Public Instance Methods

badges() click to toggle source
# File lib/darwinex/product.rb, line 25
def badges
  info_api.get_badges(product_name)
end
candles(resolution: nil, from:, to:) click to toggle source
# File lib/darwinex/product.rb, line 12
def candles(resolution: nil, from:, to:)
  info_api.get_candles(
    product_name,
    resolution: resolution,
    from: from,
    to: to
  )
end
capacity() click to toggle source
# File lib/darwinex/product.rb, line 57
def capacity
  info_api.get_capacity(product_name)
end
close_strategy() click to toggle source
# File lib/darwinex/product.rb, line 29
def close_strategy
  info_api.get_close_strategy(product_name)
end
duration_consistency() click to toggle source
# File lib/darwinex/product.rb, line 33
def duration_consistency
  info_api.get_duration_consistency(product_name)
end
dxscore() click to toggle source
# File lib/darwinex/product.rb, line 21
def dxscore
  info_api.get_dxscore(product_name)
end
experience() click to toggle source
# File lib/darwinex/product.rb, line 37
def experience
  info_api.get_experience(product_name)
end
losing_consistency() click to toggle source
# File lib/darwinex/product.rb, line 41
def losing_consistency
  info_api.get_losing_consistency(product_name)
end
market_correlation() click to toggle source
# File lib/darwinex/product.rb, line 45
def market_correlation
  info_api.get_market_correlation(product_name)
end
monthly_divergence() click to toggle source
# File lib/darwinex/product.rb, line 85
def monthly_divergence
  info_api.get_monthly_divergence(product_name)
end
open_strategy() click to toggle source
# File lib/darwinex/product.rb, line 53
def open_strategy
  info_api.get_open_strategy(product_name)
end
order_divergence() click to toggle source
# File lib/darwinex/product.rb, line 77
def order_divergence
  info_api.get_order_divergence(product_name)
end
performance() click to toggle source
# File lib/darwinex/product.rb, line 49
def performance
  info_api.get_performance(product_name)
end
quotes(from: nil, to: nil) click to toggle source
# File lib/darwinex/product.rb, line 61
def quotes(from: nil, to: nil)
  info_api.get_quotes(product_name, from: from, to: to)
end
return_divergence() click to toggle source
# File lib/darwinex/product.rb, line 81
def return_divergence
  info_api.get_return_divergence(product_name)
end
risk_adjustment() click to toggle source
# File lib/darwinex/product.rb, line 65
def risk_adjustment
  info_api.get_risk_adjustment(product_name)
end
risk_stability() click to toggle source
# File lib/darwinex/product.rb, line 69
def risk_stability
  info_api.get_risk_stability(product_name)
end
scores(badge: nil) click to toggle source
# File lib/darwinex/product.rb, line 93
def scores(badge: nil)
  if badge.nil?
    info_api.get_product_scores(product_name)
  else
    info_api.get_product_scores_badge(product_name, badge)
  end
end
status() click to toggle source
# File lib/darwinex/product.rb, line 89
def status
  info_api.get_product_status(product_name)
end
winning_consistency() click to toggle source
# File lib/darwinex/product.rb, line 73
def winning_consistency
  info_api.get_winning_consistency(product_name)
end