Module: Bibox::Rest::Public::Trades
- Included in:
- Client
- Defined in:
- lib/bibox/rest/public/trades.rb
Instance Method Summary collapse
Instance Method Details
#trades(pair: "BIX_ETH", size: 200, options: {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bibox/rest/public/trades.rb', line 6 def trades(pair: "BIX_ETH", size: 200, options: {}) path = "/mdata" params = {cmd: "deals", pair: pair, size: size} response = parse(get(path, params: params, options: ))&.fetch("result", {}) ::Bibox::Models::Trade.parse(response) if response end |