Liking cljdoc? Tell your friends :D

polvo.utils.exchanges.deribit

Provides REST and Websocket clients for Deribit.

Provides REST and Websocket clients for Deribit.
raw docstring

expandclj

(expand x)

Helper for generating combinatorial channel names.

Helper for generating combinatorial channel names.
raw docstring

http-clientclj

(http-client options)

Creates an http client for Deribit.

Options: key, secret: api keys. as-is?: when false does not convert keys to kebab-case keywords. testnet?: if true, uses testnet.

Creates an http client for Deribit.

Options:
`key`, `secret`: api keys.
`as-is?`: when `false` does not convert keys to kebab-case keywords.
`testnet?`: if `true`, uses testnet.
raw docstring

kw->subscriptionclj

Available conversions from keywords to channels.

Available conversions from keywords to channels.
raw docstring

last-idclj

(last-id client)

Last id used by client.

Last id used by client.
raw 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.
raw docstring

routesclj


send!clj

(send! client route params)
(send! client route params id)

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

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

send-and-wait!clj

(send-and-wait! client route params)

Sends a message using a websocket client created with polvo.exchanges.utils.deribit/ws-client wait with

Sends a message using a websocket client created with `polvo.exchanges.utils.deribit/ws-client` wait with 
raw docstring

ws-clientclj

(ws-client {:keys [testnet? as-is? heartbeats on-inactive]
            :or {testnet? false as-is? false heartbeats 10 on-inactive (fn [])}
            :as opts})

Creates a websocket client for Deribit.

Options: key, secret: api keys. as-is?: when false does not convert keys to kebab-case keywords. testnet?: if true, uses testnet. heartbeat: keep connection alive by heartbeats every n seconds. If you don't want it to be automatically handled, set nil. on-inactive: callback for when heartbeat is set and no message is received for 1.5 * heartbeat seconds.

Creates a websocket client for Deribit.

Options:
`key`, `secret`: api keys.
`as-is?`: when `false` does not convert keys to kebab-case keywords.
`testnet?`: if `true`, uses testnet.
`heartbeat`: keep connection alive by heartbeats every n seconds. If you don't want it to be automatically handled,
set nil.
`on-inactive`: callback for when heartbeat is set and no message is received for 1.5 * heartbeat seconds.
raw docstring

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

× close