Provides REST and Websocket clients for Deribit.
Provides REST and Websocket clients for Deribit.
(expand x)
Helper for generating combinatorial channel names.
Helper for generating combinatorial channel names.
(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.
Available conversions from keywords to channels.
Available conversions from keywords to channels.
(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.
(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`.
(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close