Module: Kucoin::Rest::Public::Orders

Included in:
Client
Defined in:
lib/kucoin/rest/public/orders.rb

Instance Method Summary collapse

Instance Method Details

#buy_orders(symbol, limit: 100, group: nil, options: {}) ⇒ Object



10
11
12
# File 'lib/kucoin/rest/public/orders.rb', line 10

def buy_orders(symbol, limit: 100, group: nil, options: {})
  get_orders(symbol: symbol, endpoint: "/open/orders-buy", params: order_params(symbol, group, limit), type: "BUY", options: options)
end

#orders(symbol, limit: 100, group: nil, options: {}) ⇒ Object



6
7
8
# File 'lib/kucoin/rest/public/orders.rb', line 6

def orders(symbol, limit: 100, group: nil, options: {})
  get_orders(symbol: symbol, endpoint: "/open/orders", params: order_params(symbol, group, limit), type: nil, options: options)
end

#sell_orders(symbol, limit: 100, group: nil, options: {}) ⇒ Object



14
15
16
# File 'lib/kucoin/rest/public/orders.rb', line 14

def sell_orders(symbol, limit: 100, group: nil, options: {})
  get_orders(symbol: symbol, endpoint: "/open/orders-sell", params: order_params(symbol, group, limit), type: "SELL", options: options)
end