lib/mcoin/market/bitfinex.rb in mcoin-0.1.0 vs lib/mcoin/market/bitfinex.rb in mcoin-0.2.0

- old
+ new

@@ -1,14 +1,16 @@ +# frozen_string_literal: true + module Mcoin module Market # :nodoc: class Bitfinex < Base - # rubocop:disable Metrics/LineLength - ENDPOINT = 'https://api.bitfinex.com/v1/pubticker/%<type>s%<currency>s'.freeze + ENDPOINT = 'https://api.bitfinex.com/v1/pubticker/%<type>s%<currency>s' def to_ticker fetch Data::Ticker.new( + :Bitfinex, @type, @currency, last: @data['last_price'], ask: @data['ask'], bid: @data['bid'], low: @data['low'], high: @data['high'], volume: @data['volume']