Liking cljdoc? Tell your friends :D

polvo.utils.deribit


expandclj

(expand x)

Helper for generating combinatorial channel names.

Helper for generating combinatorial channel names.
sourceraw docstring

http-clientclj

(http-client & options)

A closure over fn request allowing to provide default args for testing? api-key, api-secret and as-is? Returning function may be called with a param map or named args.

A closure over fn request allowing to provide default args for testing? api-key, api-secret and as-is?
Returning function may be called with a param map or named args.
sourceraw docstring

http-requestclj

(http-request route
              &
              {:keys [params testing? key secret as-is?]
               :or {params {} testing? false key nil secret nil as-is? false}})
source

kw->subscriptionclj

Available conversions from keywords to channels.

Available conversions from keywords to channels.
sourceraw docstring

parse-instrumentclj

(parse-instrument instrument)

Parses a instrument name. Returns nil if instrument name is invalid.

Parses a instrument name. Returns nil if instrument name is invalid.
sourceraw docstring

routesclj

source

sendclj

(send deribit-ws route & [params & {:keys [id] :or {id nil}}])

Sends a message asyncronously using a map created with polvo.utils.deribit/ws-client. You can optionally identify requests with an integer :id.

Sends a message asyncronously using a map created with `polvo.utils.deribit/ws-client`.
You can optionally identify requests with an integer `:id`.
sourceraw docstring

ws-clientclj

(ws-client &
           {:keys [key secret handlers testing? as-is?]
            :or {key nil secret nil handlers {} testing? false as-is? false}})

Creates a websocket client. Handlers are passed to gniazdo.core/client (see stalefruits/gniazdo. Returns a map with keys :client (the actual client) and :opts with metadata.

Creates a websocket client. Handlers are passed to `gniazdo.core/client`
(see [stalefruits/gniazdo](https://github.com/stalefruits/gniazdo).
Returns a map with keys `:client` (the actual client) and `:opts` with metadata.
sourceraw docstring

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

× close