Class: Devilicious::Market::Bitcurex
- Defined in:
- lib/devilicious/markets/bitcurex.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#fiat_currency ⇒ Object
NOTE: eur.bitcurex.com/
8 9 10 |
# File 'lib/devilicious/markets/bitcurex.rb', line 8 def fiat_currency "EUR" end |
#refresh_order_book! ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/devilicious/markets/bitcurex.rb', line 16 def refresh_order_book! json = get_json("https://#{fiat_currency.downcase}.bitcurex.com/data/orderbook.json") or return asks = format_asks_bids(json["asks"]) bids = format_asks_bids(json["bids"]) mark_as_refreshed @order_book = OrderBook.new(asks: asks, bids: bids) end |
#trade_fee ⇒ Object
12 13 14 |
# File 'lib/devilicious/markets/bitcurex.rb', line 12 def trade_fee BigDecimal.new("0.004").freeze # 0.4% - see https://eur.bitcurex.com/op%C5%82aty-i-limity end |