Liking cljdoc? Tell your friends :D

exchange-utils

Clojars Project cljdoc badge

Provides easy-to-use, idiomatic clojure clients for cryptocurrency exchanges.

Right now we have clients for BitMEX, Binance and Deribit.

General guidelines

This lib leverages aleph and manifold. All http/rest client calls return Manifold deferreds. All clients have an as-is? parameter that control whether to keep response data as is or to kebab-case transform keys, defaulting to false.

Http clients take a keyword identifying endpoints and a map of parameters (two for BitMEX). Keywords on requests will be properly transformed, so you can always use kebab case keywords. Correspondence between keywords and routes can be found at each namespace's routes map.

Websocket clients are manifold duplex streams, so you can send data using manifold.stream/put!. Since it takes some time to establish a connection, websocket client factories return deferreds.

License

Copyright © 2020 Polvo Technologies.

Distributed under the MIT License.

Can you improve this documentation?Edit on GitHub

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

× close