MIDAS API client.
Spec-driven HTTP client built on Martian. The OpenAPI spec bundled in resources/midas-spec/openapi.yaml is the single source of truth for endpoint definitions and parameter validation.
Authentication flow:
MIDAS API client. Spec-driven HTTP client built on Martian. The OpenAPI spec bundled in resources/midas-spec/openapi.yaml is the single source of truth for endpoint definitions and parameter validation. Authentication flow: 1. Call (get-token username password) to obtain a 10-minute bearer token 2. Call (create-client token) to create an authenticated Martian client 3. Use the client with API functions (rin-list, rate-values, etc.)
MIDAS entity coercion: raw API responses → idiomatic Clojure maps.
Two-layer data model: Raw layer — direct JSON→EDN, PascalCase keys, string values Coerced layer — namespaced keywords, native types (java.time, BigDecimal)
All coerced entities carry the original raw data as :midas/raw metadata.
MIDAS entity coercion: raw API responses → idiomatic Clojure maps. Two-layer data model: Raw layer — direct JSON→EDN, PascalCase keys, string values Coerced layer — namespaced keywords, native types (java.time, BigDecimal) All coerced entities carry the original raw data as :midas/raw metadata.
Malli schemas for coerced MIDAS entities (the public contract).
Malli schemas for coerced MIDAS entities (the public contract).
Malli schemas for raw MIDAS API responses (boundary validation).
Malli schemas for raw MIDAS API responses (boundary validation).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |