{"openapi":"3.1.0","info":{"title":"Hands-off utilities API","version":"0.1.0","description":"Micropaid utilities for agents: a crypto position-size calculator and a Polish business-day calendar. Pay per request in USDC via x402 (Base and/or Solana). No account required.","x-guidance":"Start with GET /v1/catalog and GET /health (free). Paid routes are POST /v1/risk/position, GET /v1/pl/business-days, and POST /v1/pl/is-business-day at $0.01 USDC each. Expect HTTP 402 with payment terms, sign, and retry. Holiday lists at GET /v1/pl/holidays are free."},"servers":[{"url":"https://hands-off-x402.pages.dev","description":"This deployment"}],"paths":{"/health":{"get":{"operationId":"health","summary":"Health and merchant configuration (no secrets)","security":[],"responses":{"200":{"description":"OK"}}}},"/openapi.json":{"get":{"operationId":"openapi","summary":"OpenAPI 3.1 document for discovery","security":[],"responses":{"200":{"description":"OpenAPI document"}}}},"/v1/catalog":{"get":{"operationId":"catalog","summary":"Free catalog of endpoints and prices","security":[],"responses":{"200":{"description":"Catalog"}}}},"/v1/pl/holidays":{"get":{"operationId":"plHolidays","summary":"Official Polish public holidays for a year (free)","security":[],"parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","minimum":2020,"maximum":2035}}],"responses":{"200":{"description":"Holiday list"},"400":{"description":"Bad request"}}}},"/v1/pl/business-days":{"get":{"operationId":"plBusinessDays","summary":"Polish business days in a date range","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2026-12-01"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2026-12-31"}}],"responses":{"200":{"description":"Business-day list and counts","content":{"application/json":{"schema":{"type":"object","properties":{"businessDayCount":{"type":"integer"},"businessDays":{"type":"array","items":{"type":"string"}}}}}}},"402":{"description":"Payment Required — retry with a signed x402 PAYMENT-SIGNATURE header"}}}},"/v1/pl/is-business-day":{"post":{"operationId":"plIsBusinessDay","summary":"Check one calendar date in Poland","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date","example":"2026-11-11"}},"required":["date"]}}}},"responses":{"200":{"description":"Classification"},"400":{"description":"Bad request"},"402":{"description":"Payment Required — retry with a signed x402 PAYMENT-SIGNATURE header"}}}},"/v1/risk/position":{"post":{"operationId":"riskPosition","summary":"Position size from equity, risk percent, entry and stop","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"equity":{"type":"number","example":10000},"riskPercent":{"type":"number","example":1},"entry":{"type":"number","example":100},"stop":{"type":"number","example":97},"side":{"type":"string","enum":["long","short"]},"leverage":{"type":"number"},"contractSize":{"type":"number"}},"required":["equity","riskPercent","entry","stop"]}}}},"responses":{"200":{"description":"Position size, notional, R-multiples"},"400":{"description":"Bad request"},"402":{"description":"Payment Required — retry with a signed x402 PAYMENT-SIGNATURE header"}}}}},"x-merchant":{"configured":true,"networks":{"evm":"eip155:8453","svm":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},"priceUsd":"0.01"}}