Datumesh

Calculate

The datumesh command runs on your machine. It answers calls from its own store, and it fetches the cells it does not hold.

Install

Either, with Rust installed: cargo install datumesh (the first line below). Or take the release binary; these commands are for Linux on x86_64. The other release assets of v0.5.2 are aarch64-unknown-linux-musl, aarch64-apple-darwin, x86_64-apple-darwin (each a .tar.gz) and x86_64-pc-windows-msvc (a .zip), each with its .sha256.

# With Rust installed instead: cargo install datumesh
curl -LO https://github.com/datumesh-com/datumesh/releases/download/v0.5.2/datumesh-0.5.2-x86_64-unknown-linux-musl.tar.gz
curl -LO https://github.com/datumesh-com/datumesh/releases/download/v0.5.2/datumesh-0.5.2-x86_64-unknown-linux-musl.tar.gz.sha256
sha256sum -c datumesh-0.5.2-x86_64-unknown-linux-musl.tar.gz.sha256
tar -xzf datumesh-0.5.2-x86_64-unknown-linux-musl.tar.gz
sudo install datumesh-0.5.2-x86_64-unknown-linux-musl/datumesh /usr/local/bin/
datumesh --version
datumesh 0.5.2

A change in the ECB deposit facility rate

The ECB's rates are under the ECB's terms, not an open licence, so the first line below accepts them, once, at the command line. Then the change in the rate between two dates:

datumesh licence accept 'https://www.ecb.europa.eu/services/using-our-site/disclaimer/html/index.en.html'
datumesh calc 'last_before(@ecb/policy_rate("dfr", *), 2026-11-05) - last_before(@ecb/policy_rate("dfr", *), 2025-12-18)'
0.5 percent

The same change, as your own function

Defined with its test, the change is a function of your own, and it gives the same answer:

datumesh define local/dfr_change --formula 'last_before(@ecb/policy_rate("dfr", *), to) - last_before(@ecb/policy_rate("dfr", *), from)' --signature '{"args": {"from": {"type": "date", "valid": true}, "to": {"type": "date", "valid": true}}, "order": ["from", "to"], "returns": {"type": "number", "unit": "percent"}}' --tests '[{"call": "local/dfr_change(2025-12-18, 2026-11-05)", "expect": "0.5"}]'
local/dfr_change(2025-12-18, 2026-11-05)
datumesh get 'local/dfr_change(2025-12-18, 2026-11-05)'

0.5

0.5 percent (https://www.ecb.europa.eu/services/using-our-site/disclaimer/html/index.en.html)

What if the rate of 16 September 2026 were 2.75

The same command computes the change again with that one rate replaced:

local/dfr_change(2025-12-18, 2026-11-05)
datumesh whatif 'local/dfr_change(2025-12-18, 2026-11-05)' --set 'datumesh.com/relay/ecb.europa.eu/policy_rate(dfr, 2026-09-16)=2.75'

0.75

Serve the mesh on your machine

Your machine now answers the same calls, holding what it fetched.

datumesh serve --listen 127.0.0.1:7733 &
curl -s "http://127.0.0.1:7733/cell/datumesh.com/relay/ecb.europa.eu/fx_reference(USD,2026-11-20)"

1.099

The Treasury spread: the licence step

The Treasury data is under a licence that you accept once, at the command line. Until then the command refuses, and names the command to run:

@treasury/par_yield(10Y, 2026-11-20) - @boe/bank_rate(2026-11-20)
datumesh calc '@treasury/par_yield(10Y, 2026-11-20) - @boe/bank_rate(2026-11-20)'
datumesh: unlicensed: licence inheritance (SPEC 8.5) refuses local.invalid/calc_d647bc59d50b3b3c: the input datumesh.com/relay/treasury.gov/par_yield under https://www.law.cornell.edu/uscode/text/17/105: not_declared; the user must accept https://www.law.cornell.edu/uscode/text/17/105 at the command line: datumesh licence accept 'https://www.law.cornell.edu/uscode/text/17/105'

Accept the licence

datumesh licence accept 'https://www.law.cornell.edu/uscode/text/17/105'
licence: https://www.law.cornell.edu/uscode/text/17/105
register: treasury.gov/par_yield_curve
hash: e0f42549…d6d5

Their spread

The answer lists the receipt of each input.

@treasury/par_yield(10Y, 2026-11-20) - @boe/bank_rate(2026-11-20)
datumesh calc '@treasury/par_yield(10Y, 2026-11-20) - @boe/bank_rate(2026-11-20)'
0.92 percent (https://www.law.cornell.edu/uscode/text/17/105)
receipts of the inputs: 3598ce751192…, 37f9d32a9c31…

The spread, as your own function

datumesh define local/spread --formula '@treasury/par_yield(tenor: "10Y", date: date) - @boe/bank_rate(date: date)' --signature '{"args": {"date": {"type": "date", "valid": true}}, "order": ["date"], "returns": {"type": "number", "unit": "percent"}}' --tests '[{"call": "local/spread(2026-11-20)", "expect": "0.92"}]'
local/spread(2026-11-20)
datumesh get 'local/spread(2026-11-20)'

0.92

0.92 percent (https://www.law.cornell.edu/uscode/text/17/105)

What if Bank Rate were 4.5

The local mesh computes the spread again with one input replaced, through the MCP tool whatif. The command datumesh whatif does the same for a call, as above. The page calls the tool on standard input, the way an agent does.

local/spread(2026-11-20)
printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"you","version":"1"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"whatif","arguments":{"request":"local/spread(2026-11-20)","overrides":[{"cell":"datumesh.com/relay/bankofengland.co.uk/bank_rate(2026-11-20)","value":"4.5"}]}}}' \
  | datumesh mcp

0.42

Export

datumesh export
datumesh: E_LICENCE_NOT_PUBLISHABLE: https://www.law.cornell.edu/uscode/text/17/105: a result this machine computed under this licence is never published or exported (datumesh-local 0.5.1, L5)

Results computed under an accepted licence stay on your machine. datumesh export refuses them, with E_LICENCE_NOT_PUBLISHABLE, as the example above shows.

Not yet