Skip to content

chore(codegen): regen _endpoints.py from datamaxi-backend openapi#122

Merged
martinkersner merged 1 commit into
mainfrom
codegen/regen-endpoints
Jul 1, 2026
Merged

chore(codegen): regen _endpoints.py from datamaxi-backend openapi#122
martinkersner merged 1 commit into
mainfrom
codegen/regen-endpoints

Conversation

@martinkersner

@martinkersner martinkersner commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

Regenerated datamaxi/_endpoints.py from datamaxi-backend@main (717057c82; openapi last modified by backend #7613 1c1fef5dd, which excludes front-api routes from the data-api spec) via datamaxi-codegen make update-python. Rebuilt against the current spec so the registry fully matches the live backend implementation.

Real registry changes (vs main)

  • Removed front-api endpoints front_header + front_premium_tags (/api/v1/front/*, no longer in openapi.yaml per backend #7613)
  • New params: token_include, token_exclude on premium
  • Type fixes: funding_rate_history page/limit strint (defaults 1 / 10)
  • Defaults: premium.base requiredFalse + BTC default; ticker.conversion_base default USDT + enum [USD, USDT]; token.limit default 10010
  • required-flag corrections: cex_announcement.marketFalse; cex_candle_symbols.exchangeTrue; forex.symbolTrue; ticker.marketTrue (3 ticker endpoints)

Formatting

Tests / verification

  • py_compile OK; registry imports (49 endpoints).
  • Offline suite green: pytest -m "not integration"113 passed, 11 skipped (112 integration deselected).
  • No SDK/test code references the removed front_* endpoints.

Known limitation

  • One enum line (key sort options) exceeds 88 cols and is not wrapped by the emitter — known codegen gap. _endpoints.py is excluded from black in this repo, so non-blocking.

Regenerated via datamaxi-codegen `make update-python` off
datamaxi-backend@main (717057c82; openapi last modified by #7613
1c1fef5dd, which excludes front-api routes from the data-api spec).

Real registry changes vs origin/main:
- Remove front-api endpoints front_header + front_premium_tags
  (/api/v1/front/*, now excluded from openapi.yaml per backend #7613).
- Add premium params token_include / token_exclude.
- funding_rate_history page/limit str->int (defaults 1 / 10).
- premium.base required->False + BTC default.
- ticker.conversion_base default USDT + enum [USD, USDT].
- required-flag corrections: cex_announcement.market->False,
  cex_candle_symbols.exchange->True, forex.symbol->True,
  ticker.market->True (3 endpoints).
- token limit default 100->10.

Formatting: black-clean emitter output (enum 'x'->"x", empty
params {}) from datamaxi-codegen #22.
@martinkersner martinkersner force-pushed the codegen/regen-endpoints branch from f225986 to e6257ba Compare July 1, 2026 07:17
@martinkersner martinkersner merged commit 1e46620 into main Jul 1, 2026
7 checks passed
@martinkersner martinkersner deleted the codegen/regen-endpoints branch July 1, 2026 07:18
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.

1 participant