Sha256: 48e16d0fc84e301f71dcad85c2b2340583a5499c63fcb5a3c076d5b2764325c5

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

require_relative 'market.rb'
require 'net/http'
require 'openssl'
require 'json'
require 'date'
require 'bigdecimal'

module Kaesen
  # bitFlyer FX Wrapper Class
  # https://lightning.bitflyer.jp/docs?lang=ja
  ## API制限
  ## . Private API は 1 分間に約 200 回を上限とします。
  ## . IP アドレスごとに 1 分間に約 500 回を上限とします。

  class Bitflyerfx < Bitflyer
    def initialize(options = {})
      super()
      @name        = "bitFlyerFX"
      @product_code = "FX_BTC_JPY"

      options.each do |key, value|
        instance_variable_set("@#{key}", value)
      end
      yield(self) if block_given?
    end

    def balance
      raise NotImplemented.new() # getcollateral
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kaesen-0.2.1 lib/kaesen/bitflyerfx.rb
kaesen-0.2.0 lib/kaesen/bitflyerfx.rb