Module: Kucoin::Rest::Private::Markets
- Included in:
- Client
- Defined in:
- lib/kucoin/rest/private/markets.rb
Instance Method Summary collapse
- #favorite_symbols(options: {}) ⇒ Object
- #stick_symbols(options: {}) ⇒ Object
-
#user_market_symbols(market: nil, symbol: nil, filter: nil, options: {}) ⇒ Object
Market: BTC, ETH, etc.
Instance Method Details
#favorite_symbols(options: {}) ⇒ Object
30 31 32 33 |
# File 'lib/kucoin/rest/private/markets.rb', line 30 def favorite_symbols(options: {}) .merge!(authenticate: true) response = get("/market/fav-symbols", params: {}, options: )&.fetch("data", {}) end |
#stick_symbols(options: {}) ⇒ Object
25 26 27 28 |
# File 'lib/kucoin/rest/private/markets.rb', line 25 def stick_symbols(options: {}) .merge!(authenticate: true) response = get("/market/stick-symbols", params: {}, options: )&.fetch("data", {}) end |
#user_market_symbols(market: nil, symbol: nil, filter: nil, options: {}) ⇒ Object
Market: BTC, ETH, etc. Symbol: HPB-ETH, ITC-ETH etc. Filter: FAVOURITE / STICK
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/kucoin/rest/private/markets.rb', line 10 def user_market_symbols(market: nil, symbol: nil, filter: nil, options: {}) .merge!(authenticate: true) params = { market: market.to_s.upcase, symbol: symbol.to_s.upcase, filter: filter.to_s.upcase } params.delete_if { |key, value| value.nil? || value.to_s.empty? } response = get("/market/symbols", params: params, options: )&.fetch("data", {}) ::Kucoin::Models::Ticker.parse(response) if response end |