Liking cljdoc? Tell your friends :D

polvo.utils.exchanges.bitmex

Provides REST and Websocket clients for Bitmex.

Provides REST and Websocket clients for Bitmex.
raw docstring

authenticate!clj

(authenticate! s api-key api-secret)

Authenticates with given key an secret.

Authenticates with given key an secret.
sourceraw docstring

expandclj

(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.
sourceraw docstring

mp-authenticate!clj

(mp-authenticate! s id topic key secret)

Authenticates an account in a multiplex connection.

Authenticates an account in a multiplex connection.
sourceraw docstring

mp-clientclj

(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.
sourceraw docstring

mp-close-stream!clj

(mp-close-stream! s id topic)

Closes a stream in a multiplex connection.

Closes a stream in a multiplex connection.
sourceraw docstring

mp-open-stream!clj

(mp-open-stream! s id topic)

Opens a stream in a multiplex connection.

Opens a stream in a multiplex connection.
sourceraw docstring

mp-subscribe!clj

(mp-subscribe! s id topic subscriptions)

Subscribes to topics in a multiplex connection.

Subscribes to topics in a multiplex connection.
sourceraw docstring

mp-unsubscribe!clj

(mp-unsubscribe! s id topic subscriptions)

Unsubscribes to topics in a multiplex connection.

Unsubscribes to topics in a multiplex connection.
sourceraw docstring

rest-clientclj

(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
sourceraw docstring

routesclj

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/
sourceraw docstring

subscribe!clj

(subscribe! s subscriptions)

Subscribes. Subscriptions are expanded with expand.

Subscribes. Subscriptions are expanded with `expand`.
sourceraw docstring

unsubscribe!clj

(unsubscribe! s subscriptions)

Unsubscribes. Subscriptions are expanded with expand.

Unsubscribes. Subscriptions are expanded with `expand`.
sourceraw docstring

write-strclj

source

ws-clientclj

(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`.
sourceraw docstring

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

× close