Skip to content

feat(swap-feed): exolix#952

Open
binarybaron wants to merge 1 commit intomasterfrom
feat/swap-feed-exolix
Open

feat(swap-feed): exolix#952
binarybaron wants to merge 1 commit intomasterfrom
feat/swap-feed-exolix

Conversation

@binarybaron
Copy link
Copy Markdown

@binarybaron binarybaron commented Apr 10, 2026

Adds an XMR/BTC price feed backed by the Exolix rate endpoint, polled every 30s and adapted to the existing ticker::connect stream machinery used by the websocket feeds. When maker.exolix_api_key is set in the asb config, Exolix is included alongside Kraken, Bitfinex, and KuCoin in the averaged ask price; otherwise the feed stays disabled and behavior is unchanged.

The initial fetch runs synchronously so a bad API key or URL fails fast; transient per-poll failures are logged and retried on the next tick instead of tearing down the feed. The rate is parsed via its decimal string representation to avoid float drift.

A new exolix_ticker binary under swap-feed/src/bin reads an API key from argv or EXOLIX_API_KEY and prints live updates for hand-testing.

Adds a REST-based XMR/BTC price feed backed by the Exolix rate endpoint,
polled every 30s and adapted to the existing ticker::connect stream
machinery used by the websocket feeds. When an exolix_api_key is set in
the asb config, Exolix is included alongside Kraken, Bitfinex, and KuCoin
in the averaged ask price; otherwise the feed stays disabled and behavior
is unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant