Class: Ubea::Exchange::BitcurexEur
- Defined in:
- lib/ubea/exchanges/bitcurex_eur.rb
Instance Attribute Summary
Attributes inherited from Base
#last_rtt, #order_book, #updated_at
Instance Method Summary collapse
Methods inherited from Base
#balance, #id, #name, #short_name
Instance Method Details
#fiat_currency ⇒ Object
NOTE: eur.bitcurex.com/
6 7 8 |
# File 'lib/ubea/exchanges/bitcurex_eur.rb', line 6 def fiat_currency "EUR" end |
#refresh_order_book! ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/ubea/exchanges/bitcurex_eur.rb', line 14 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
10 11 12 |
# File 'lib/ubea/exchanges/bitcurex_eur.rb', line 10 def trade_fee BigDecimal.new("0.004").freeze # 0.4% - see https://eur.bitcurex.com/op%C5%82aty-i-limity end |