class BitmexClient::HTTP::Public::Client
Public Class Methods
# File lib/bitmex_client/http/public.rb, line 6 def initialize @connection = Connection.new(nil, nil) end
Public Instance Methods
@see www.bitmex.com/api/explorer/#!/Announcement/Announcement_get
# File lib/bitmex_client/http/public.rb, line 11 def announcement(options = {}) @connection.get('/api/v1/announcement', options).body end
@see www.bitmex.com/api/explorer/#!/Announcement/Announcement_getUrgent
# File lib/bitmex_client/http/public.rb, line 16 def announcement_urgent(options = {}) @connection.get('/api/v1/announcement/urgent', options).body end
@see www.bitmex.com/api/explorer/#!/Funding/Funding_get
# File lib/bitmex_client/http/public.rb, line 21 def funding(options = {}) @connection.get('/api/v1/funding', options).body end
@see www.bitmex.com/api/explorer/#!/Instrument/Instrument_get
# File lib/bitmex_client/http/public.rb, line 26 def instrument(options = {}) @connection.get('/api/v1/instrument', options).body end
@see www.bitmex.com/api/explorer/#!/Instrument/Instrument_getActive
# File lib/bitmex_client/http/public.rb, line 31 def instrument_active @connection.get('/api/v1/instrument/active').body end
@see www.bitmex.com/api/explorer/#!/Insurance/Insurance_get
# File lib/bitmex_client/http/public.rb, line 36 def insurance(options = {}) @connection.get('/api/v1/insurance', options).body end
@see www.bitmex.com/api/explorer/#!/Leaderboard/Leaderboard_get
# File lib/bitmex_client/http/public.rb, line 41 def leaderboard(options = {}) @connection.get('/api/v1/leaderboard', options).body end
@see www.bitmex.com/api/explorer/#!/Liquidation/Liquidation_get
# File lib/bitmex_client/http/public.rb, line 46 def liquidation(options = {}) @connection.get('/api/v1/liquidation', options).body end
@see www.bitmex.com/api/explorer/#!/OrderBook/OrderBook_getL2
# File lib/bitmex_client/http/public.rb, line 51 def order_book_l2(symbol, depth = 25) @connection.get('/api/v1/orderBook/L2', { symbol: symbol, depth: depth }).body end
@see www.bitmex.com/api/explorer/#!/Settlement/Settlement_get
# File lib/bitmex_client/http/public.rb, line 56 def settlement(options = {}) @connection.get('/api/v1/settlement', options).body end
@see www.bitmex.com/api/explorer/#!/Stats/Stats_get
# File lib/bitmex_client/http/public.rb, line 61 def stats @connection.get('/api/v1/stats').body end
@see www.bitmex.com/api/explorer/#!/Stats/Stats_history
# File lib/bitmex_client/http/public.rb, line 66 def stats_history @connection.get('/api/v1/stats/history').body end
@see www.bitmex.com/api/explorer/#!/Stats/Stats_historyUSD
# File lib/bitmex_client/http/public.rb, line 71 def stats_history_usd @connection.get('/api/v1/stats/historyUSD').body end
@see www.bitmex.com/api/explorer/#!/Trade/Trade_get
# File lib/bitmex_client/http/public.rb, line 76 def trade(options = {}) @connection.get('/api/v1/trade', options).body end