Module: Bibox::Rest::Private::OrderBook
- Included in:
- Client
- Defined in:
- lib/bibox/rest/private/order_book.rb
Instance Method Summary collapse
Instance Method Details
#extended_order_book(pair: "BIX_ETH", size: 200, options: {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/bibox/rest/private/order_book.rb', line 6 def extended_order_book(pair: "BIX_ETH", size: 200, options: {}) payload = [ { cmd: "api/depth", body: {pair: pair, size: size} } ] response = parse(post("/mdata", data: payload, options: ))&.fetch("result", [])&.first&.fetch("result", {}) ::Bibox::Models::OrderBook.new(response) if response end |