Sha256: 2031e06028eb454ad8ba7150f0e65e0eaa108e293bf9e43268bc4cfa8dd7d552

Contents?: true

Size: 740 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
kaesen-0.1.1 lib/kaesen/bitflyerfx.rb