Class: Kaesen::Bitflyerfx
- 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
- #balance ⇒ Object
-
#initialize(options = {}) {|_self| ... } ⇒ Bitflyerfx
constructor
A new instance of Bitflyerfx.
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.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/kaesen/bitflyerfx.rb', line 16 def initialize( = {}) super() @name = "bitFlyerFX" @product_code = "FX_BTC_JPY" .each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end |
Instance Method Details
#balance ⇒ Object
27 28 29 |
# File 'lib/kaesen/bitflyerfx.rb', line 27 def balance raise NotImplemented.new() # getcollateral end |