Skip to content

Unify candle data - #22

Merged
martinkersner merged 5 commits into
mainfrom
i-21/feat/python-unified-candle
Jun 3, 2024
Merged

Unify candle data#22
martinkersner merged 5 commits into
mainfrom
i-21/feat/python-unified-candle

Conversation

@martinkersner

@martinkersner martinkersner commented Jun 2, 2024

Copy link
Copy Markdown
Member

This PR introduces new Datamaxi class that enables high level access to DataMaxi+ with unified API and returned data type. Specialized classes for centralized exchanges are still available.

Initialization

from datamaxi import Datamaxi
api_key = "INSERT_YOUR_API_KEY"
maxi = Datamaxi(api_key=api_key)

Candle

maxi.candle(exchange="binance", symbol="BTC-USDT")

Intervals

maxi.intervals(exchange="binance")

Symbols

maxi.symbols(exchange="binance")

@martinkersner martinkersner self-assigned this Jun 2, 2024
@martinkersner martinkersner linked an issue Jun 2, 2024 that may be closed by this pull request

@hayotbisonai hayotbisonai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@martinkersner
martinkersner merged commit 769f304 into main Jun 3, 2024
@martinkersner
martinkersner deleted the i-21/feat/python-unified-candle branch June 3, 2024 04:20
martinkersner added a commit that referenced this pull request Jul 1, 2026
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 added a commit that referenced this pull request Jul 1, 2026
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.
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.

Python client unified candle API

2 participants