Provides REST and Websocket clients for Bitmex.
Provides REST and Websocket clients for Bitmex.
(authenticate! s api-key api-secret)
Authenticates with given key an secret.
Authenticates with given key an secret.
(expand subscription)
Converts keywords and keyword-instrument pairs to subscription strings.
Subscription follows ::subscription
spec.
Converts keywords and keyword-instrument pairs to subscription strings. Subscription follows `::subscription` spec.
(mp-authenticate! s id topic key secret)
Authenticates an account in a multiplex connection.
Authenticates an account in a multiplex connection.
(mp-client accounts {:keys [as-is? testnet?] :or {as-is? false testnet? false}})
Creates and initializes a multiplex connection.
Creates and initializes a multiplex connection.
(mp-close-stream! s id topic)
Closes a stream in a multiplex connection.
Closes a stream in a multiplex connection.
(mp-open-stream! s id topic)
Opens a stream in a multiplex connection.
Opens a stream in a multiplex connection.
(mp-subscribe! s id topic subscriptions)
Subscribes to topics in a multiplex connection.
Subscribes to topics in a multiplex connection.
(mp-unsubscribe! s id topic subscriptions)
Unsubscribes to topics in a multiplex connection.
Unsubscribes to topics in a multiplex connection.
(rest-client {:keys [key secret expiration as-is? testnet?]
:or {expiration 5000 as-is? false testnet? false}
:as opts})
Creates an http client for bitmex with the given keys
Options:
expiration
: expiration in milliseconds. See https://www.bitmex.com/app/apiKeysUsage
as-is?
: when false
does not convert keys to kebab-case keywords
testing?
: if true
, uses testnet
Creates an http client for bitmex with the given keys Options: `expiration`: expiration in milliseconds. See https://www.bitmex.com/app/apiKeysUsage `as-is?`: when `false` does not convert keys to kebab-case keywords `testing?`: if `true`, uses testnet
Relationship between keywords and API endpoints. See https://www.bitmex.com/api/explorer/
Relationship between keywords and API endpoints. See https://www.bitmex.com/api/explorer/
(subscribe! s subscriptions)
Subscribes. Subscriptions are expanded with expand
.
Subscribes. Subscriptions are expanded with `expand`.
(unsubscribe! s subscriptions)
Unsubscribes. Subscriptions are expanded with expand
.
Unsubscribes. Subscriptions are expanded with `expand`.
(ws-client {:keys [key secret as-is? testnet? subscriptions]
:or {as-is? false testnet? false subscriptions []}
:as opts})
Returns an deferred yielding a duplex manifold
stream connected to BitMEX websocket API.
Options:
as-is?
: when false
does not convert keys to kebab-case keywords.
testnet?
: if true
, uses testnet.
subscriptions
: a sequence of subscriptions. They are expanded using expand
.
Returns an deferred yielding a duplex `manifold` stream connected to BitMEX websocket API. Options: `as-is?`: when `false` does not convert keys to kebab-case keywords. `testnet?`: if `true`, uses testnet. `subscriptions`: a sequence of subscriptions. They are expanded using `expand`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close