You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Gets OHLCV data regarding the last price converted to the target currency for all symbols or for the specified symbols
361
+
#
362
+
# Candles are used for OHLC representation
363
+
#
364
+
# The result contains candles with non-zero volume only (no trades = no candles)
365
+
#
366
+
# Conversion from the symbol quote currency to the target currency is the mean of "best" bid price and "best" ask price in the order book. If there is no "best" bid or ask price, the last price is returned.
367
+
#
368
+
# Requires no API key Access Rights
369
+
#
370
+
# https://api.exchange.cryptomkt.com/#candles
371
+
#
372
+
# +String+ +target_currency+:: Target currency for conversion
373
+
# +Array[String]+ +symbols+:: Optional. A list of symbols
# Gets OHLCV data regarding the last price converted to the target currency for the specified symbol
388
+
#
389
+
# Candles are used for OHLC representation
390
+
#
391
+
# The result contains candles with non-zero volume only (no trades = no candles)
392
+
#
393
+
# Conversion from the symbol quote currency to the target currency is the mean of "best" bid price and "best" ask price in the order book. If there is no "best" bid or ask price, the last price is returned.
394
+
#
395
+
# Requires no API key Access Rights
396
+
#
397
+
# https://api.exchange.cryptomkt.com/#candles
398
+
#
399
+
# +String+ +target_currency+:: Target currency for conversion
Copy file name to clipboardExpand all lines: lib/cryptomarket/websocket/market_data_client.rb
+29-7Lines changed: 29 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ class MarketDataClient < MarketDataClientCore
26
26
# ==== Params
27
27
# +Proc+ +callback+:: A +Proc+ that recieves notifications as a hash of trades indexed by symbol, and the type of notification (either 'snapshot' or 'update')
28
28
# +Array[String]+ +symbols+:: A list of symbol ids
29
-
# +Integer+ +limit+:: Number of historical entries returned in the first feed. Min is 0. Max is 1000. Default is 0
29
+
# +Integer+ +limit+:: Number of historical entries returned in the first feed. Min is 0. Max is 1_000. Default is 0
30
30
# +Proc+ +result_callback+:: Optional. A +Proc+ of two arguments, An exception and a result, called either with the exception or with the result, a list of subscribed symbols
# +Proc+ +callback+:: A +Proc+ that recieves notifications as a hash of candles indexed by symbol, and the type of notification (either 'snapshot' or 'update')
# subscribes to a feed of candles regarding the last price converted to the target currency for all symbols or for the specified symbols
61
+
#
62
+
# Candles are used for the representation of a specific symbol as an OHLC chart
63
+
#
64
+
# Conversion from the symbol quote currency to the target currency is the mean of "best" bid price and "best" ask price in the order book. If there is no "best" bid or ask price, the last price is returned.
# +Proc+ +callback+:: A +Proc+ that recieves notifications as a hash of candles indexed by symbol, and the type of notification (either 'snapshot' or 'update')
71
+
# +String+ +target_currency+:: Target currency for conversion
# +Proc+ +callback+:: A +Proc+ that recieves notifications as a hash of top of orderbooks indexed by symbol, and the type of notification (only 'data')
# A transaction notification occurs each time a transaction has been changed, such as creating a transaction, updating the pending state (e.g., the hash assigned) or completing a transaction
0 commit comments