Class: Devilicious::Market::AnxBtc
- Defined in:
- lib/devilicious/markets/anx_btc.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#fiat_currency ⇒ Object
6 7 8 |
# File 'lib/devilicious/markets/anx_btc.rb', line 6 def fiat_currency "CHF" end |
#refresh_order_book! ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/devilicious/markets/anx_btc.rb', line 14 def refresh_order_book! json = get_json("https://anxpro.com/api/2/BTC#{fiat_currency}/money/depth/full") or return asks = format_asks_bids(json["data"]["asks"]) bids = format_asks_bids(json["data"]["bids"]) mark_as_refreshed @order_book = OrderBook.new(asks: asks, bids: bids) end |
#trade_fee ⇒ Object
10 11 12 |
# File 'lib/devilicious/markets/anx_btc.rb', line 10 def trade_fee BigDecimal.new("0.005").freeze # 0.5%??? - see https://anxbtc.com/faq#tab1 end |