Class: Kaesen::Bitflyerfx

Inherits:
Bitflyer show all
Defined in:
lib/kaesen/bitflyerfx.rb

Overview

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

Instance Attribute Summary

Attributes inherited from Market

#api_key, #api_secret, #name, #url_private, #url_public

Instance Method Summary collapse

Methods inherited from Bitflyer

#buy, #cancel, #cancel_all, #depth, #market_buy, #market_sell, #opens, #sell, #ticker

Methods inherited from Market

#buy, #cancel, #cancel_all, #depth, #market_buy, #market_sell, #opens, #sell, #ticker, unBigDecimal

Constructor Details

#initialize(options = {}) {|_self| ... } ⇒ Bitflyerfx

Returns a new instance of Bitflyerfx.

Yields:

  • (_self)

Yield Parameters:



16
17
18
19
20
21
22
23
24
25
# File 'lib/kaesen/bitflyerfx.rb', line 16

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

Instance Method Details

#balanceObject

Raises:

  • (NotImplemented)


27
28
29
# File 'lib/kaesen/bitflyerfx.rb', line 27

def balance
  raise NotImplemented.new() # getcollateral
end