Skip to content

fiat-onramp-cost: Meld adapter verified live (POST + JSON body, BASIC base64(key), Meld-Version header) - #2409

Merged
Flotapponnier merged 1 commit into
devfrom
fix/meld-adapter
Sep 16, 2026
Merged

Flotapponnier merged 1 commit into
devfrom
fix/meld-adapter

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

First live exercise of the Meld adapter, with the sandbox key received today.

Two blind-from-docs mistakes fixed: the endpoint is POST with a JSON body (GET → 405) and the auth is BASIC base64(key) where the dashboard key is already id:secret (base64(key + ":") → 403). Meld-Version: 2025-03-04 pinned, partnerFee parsed as nullable, 400/404 mapped to ErrNoQuote. One local harness cycle with MELD_SANDBOX=true → 6 quotes, labels via=meld provider=banxa cohort=aggregator.

Not deployed and Meld not added back to the spec: the key is sandbox-scoped (api.meld.io → 403) and sandbox rates are synthetic (BTC at 90,274 EUR vs 65,676 mid = +3,749 bps). Production key pending; CHECKLIST.md updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D

…ody, BASIC base64(key), Meld-Version header; partnerFee nullable

The adapter was written from docs and would have failed twice: GET gives
405 (POST only) and base64(key + ":") gives 403 (the dashboard key is
already id:secret). One local cycle with MELD_SANDBOX=true produces 6
quotes with the right labels. Sandbox rates are synthetic (+3,749 bps on
BTC), so Meld stays out of the spec until a production key arrives.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D
@Flotapponnier
Flotapponnier merged commit 5bab24c into dev Sep 16, 2026
1 check failed
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.

2 participants