This document describes the front API exposed by io.randomseed.bankster.api.*.
It is a curated, stable facade over the core namespaces (currency, money,
registry) and should be the default entry point for application code.
Frozen API for major 2:
io.randomseed.bankster.api.v2 and its sub-namespaces mirror
io.randomseed.bankster.api.* for the Bankster 2.x line.io.randomseed.bankster.api.v2.* is equivalent to
io.randomseed.bankster.api.*.Note: this is an overview, not an exhaustive arity-level reference.
io.randomseed.bankster.api - umbrella facade (money/currency/scale helpers).io.randomseed.bankster.api.currency - currency resolution, predicates,
registry operations, and serialization helpers.io.randomseed.bankster.api.money - money constructors, arithmetic,
parsing/formatting, and serialization helpers.io.randomseed.bankster.api.registry - registry helpers (default/state/with,
hierarchy helpers) plus selected registry aliases.io.randomseed.bankster.api.ops - operator-style functions intended for
intentional :refer :all.nil when no match is found.Examples:
api.currency/resolve (strict) vs api.currency/resolve-try (soft)api.money/resolve (strict) vs api.money/resolve-try (soft)io.randomseed.bankster.api (umbrella)money, money-try - front constructors for Money (strict/soft).currency - front constructor for Currency (strict).rounding-mode, scale-apply, amount, scale, auto-scaled? - convenience helpers over scale.info - polymorphic info helper (currency/info / money/info).io.randomseed.bankster.api.currencyResolution / constructors
resolve, resolve-try, resolve-all, newof (macro alias), normalizewith, with-default, with-registryAccessors
id, id-str, code, code-str, nr, scale, domain, kind, symbolinfo, to-map (and JSON/EDN helpers)Predicates / traits / kinds
currency?, possible?, definitive?, auto-scaled?, crypto?, iso?has-trait?, of-trait?, has-kind?, of-kind?, of-domain?Registry operations
register, register!, unregister, unregister!add-traits, set-traits, remove-traitsio.randomseed.bankster.api.moneyConstructors / coercion
resolve, resolve-trymajor, minor, of-registry, cast, cast-tryamount, currency, info, normalizerounding-mode, scale-applyArithmetic
add, sub, mul, divround, round-to, allocate, distributeComparisons / predicates
compare, eq?, ne?, gt?, ge?, lt?, le?pos?, neg?, zero?, same-currencies?Parsing / formatting
parse, parse-major, parse-minorformat, unparseSerialization
to-map, to-json-string, from-json, from-edn, etc.io.randomseed.bankster.api.registrydefault, or-defaultwith, statehierarchy-derive, hierarchy-derive!io.randomseed.bankster.api.opsOperator-style functions aligned with core arithmetic and comparisons:
+, -, *, /=, not=, <, <=, >, >=pos?, neg?, compare, numeric castsUse this namespace when you intentionally want :refer :all.
api.* in application code for stability and ergonomics.io.randomseed.bankster.money, currency, registry)
remain available for lower-level control and internal use.Can you improve this documentation?Edit on GitHub
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 |