Module: QuadrigaCX::Public
- Included in:
- Client
- Defined in:
- lib/quadrigacx/client/public.rb
Instance Method Summary collapse
-
#order_book(params = {}) ⇒ Object
List all open orders.
-
#ticker(params = {}) ⇒ Object
Return trading information.
-
#transactions(params = {}) ⇒ Object
Return descending JSON list of recent trades.
Instance Method Details
#order_book(params = {}) ⇒ Object
List all open orders.
book - optional, book to return orders for. Default btc_cad. group - optional, group orders with the same price (0 - false; 1 - true). Default: 1.
14 15 16 |
# File 'lib/quadrigacx/client/public.rb', line 14 def order_book params={} request(:get, '/order_book', params) end |
#ticker(params = {}) ⇒ Object
Return trading information.
book - optional, book to return orders for. Default btc_cad.
6 7 8 |
# File 'lib/quadrigacx/client/public.rb', line 6 def ticker params={} request(:get, '/ticker', params) end |
#transactions(params = {}) ⇒ Object
Return descending JSON list of recent trades.
book - optional, book to return orders for (default btc_cad). time - optional, time frame for transaction export (“minute” - 1 minute, “hour” - 1 hour). Default: hour.
22 23 24 |
# File 'lib/quadrigacx/client/public.rb', line 22 def transactions params={} request(:get, '/transactions', params) end |