Libraries 2026
BinanceSpot
A complete Elixir client for the Binance Spot API.
BinanceSpot is an Elixir client for the Binance Spot API. It is built on Req for HTTP, WebSockex for streams, and Decimal for prices and quantities, and it aims to cover the API rather than a convenient subset of it.
Signing
All three signing methods Binance supports are implemented: HMAC, Ed25519, and RSA, with Ed25519 as the recommended option. A client is created with its credentials and signing method, and the signature is applied per request.
User data streams are authenticated directly — there is no listen key to mint, keep alive, or forget to renew. Ed25519 clients open the session with session.logon; HMAC and RSA clients sign each request. The callbacks receive Binance’s own event maps (%{"e" => "executionReport", ...}), so a field added by the exchange is visible without waiting for a struct update.
Orders and precision
Before an order is sent, it is checked against the symbol’s exchange filters: tick size, step size, minimum notional, and the rest. Quantities and prices can be passed as Decimal and are rounded to the filters automatically. That is the difference between a client that fails at the exchange with -1013 and one that explains the problem locally.
Operations
Rate limits are tracked from the response headers rather than guessed, and telemetry events expose requests, retries, and limits for observability. Full typespecs and documentation sit on the API, and the HTTP layer is mock-friendly through Req.Test.
Market data, spot and margin trading, account information, and both public and private WebSocket streams are covered. Public streams can be started with a handler behaviour and subscribed to at runtime.
Status
In development. The source is on GitLab; the README documents signing, filters, streams, and the client API.