Liking cljdoc? Tell your friends :D

xpusher.async


bitstamp-coerce-orderbookclj

(bitstamp-coerce-orderbook str-big-decimals? ob)
source

connectclj

(connect pusher)
source

disconnectclj

(disconnect pusher)
source

new-bitstamp-pusherclj

(new-bitstamp-pusher
  {:keys [pusher-key str-big-decimals?] :as opts :or {str-big-decimals? true}})

Opens a new connection with the Coin Mate Pusher server, subscribes a requested channel and returns a following tuple [pusher pusher-channel status-ch data-ch]

  • pusher a Pusher instance
  • pusher a subscribed Channel instance
  • status-ch an async channel containing a pusher and channel messages as a tuple [action data]
  • data-ch an async channel containing data for the subscribed channel as a tuple [channel-name event-name data]

The function takes an option object:

  • channel-name a channel name to subscribe
  • pusher-key a Pusher key, default de504dc5763aeef9ff52
  • event-name an event name to bind on the subscribed channel
  • status-buffer-or-n a buffer-or-n for the status channel
  • data-buffer-or-n a buffer-or-n for the data channel
  • str-big-decimals? when true coerce a volume and price (in strings) as BigDecimal, default true
Opens a new connection with the Coin Mate Pusher server, subscribes a requested channel and returns a following tuple
 [pusher pusher-channel status-ch data-ch]
 - `pusher` a Pusher instance
 - `pusher` a subscribed Channel instance
 - `status-ch` an async channel containing a pusher and channel messages as a tuple `[action data]`
 - `data-ch` an async channel containing data for the subscribed channel as a tuple `[channel-name event-name data]`

The function takes an option object:
 - `channel-name` a channel name to subscribe
 - `pusher-key` a Pusher key, default de504dc5763aeef9ff52
 - `event-name` an event name to bind on the subscribed channel
 - `status-buffer-or-n` a buffer-or-n for the status channel
 - `data-buffer-or-n` a buffer-or-n for the data channel
 - `str-big-decimals?` when `true` coerce a volume and price (in strings) as `BigDecimal`, default `true`
sourceraw docstring

new-coinmate-pusherclj

(new-coinmate-pusher {:keys [pusher-key] :as opts})

Opens a new connection with the Coin Mate Pusher server, subscribes a requested channel and returns a following tuple [pusher pusher-channel status-ch data-ch]

  • pusher a Pusher instance
  • pusher a subscribed Channel instance
  • status-ch an async channel containing a pusher and channel messages as a tuple [action data]
  • data-ch an async channel containing data for the subscribed channel as a tuple [channel-name event-name data]

The function takes an option object:

  • channel-name a channel name to subscribe
  • pusher-key a Pusher key, default af76597b6b928970fbb0
  • event-name an event name to bind on the subscribed channel
  • status-buffer-or-n a buffer-or-n for the status channel
  • data-buffer-or-n a buffer-or-n for the data channel
Opens a new connection with the Coin Mate Pusher server, subscribes a requested channel and returns a following tuple
 [pusher pusher-channel status-ch data-ch]
 - `pusher` a Pusher instance
 - `pusher` a subscribed Channel instance
 - `status-ch` an async channel containing a pusher and channel messages as a tuple `[action data]`
 - `data-ch` an async channel containing data for the subscribed channel as a tuple `[channel-name event-name data]`

The function takes an option object:
 - `channel-name` a channel name to subscribe
 - `pusher-key` a Pusher key, default af76597b6b928970fbb0
 - `event-name` an event name to bind on the subscribed channel
 - `status-buffer-or-n` a buffer-or-n for the status channel
 - `data-buffer-or-n` a buffer-or-n for the data channel
sourceraw docstring

pusher-factoryclj

(pusher-factory pusher
                coerce-orderbook
                {:keys [channel-name pusher-key event-name status-buffer-or-n
                        data-buffer-or-n]
                 :as opts})
source

state->keywordclj

(state->keyword state)
source

subscription-listenerclj

(subscription-listener callback coerce-orderbook)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close