Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split candle data API to maxi.cex.candle.* and maxi.dex.candle.* (v0.19.0) #58

Merged
merged 5 commits into from
Sep 24, 2024

Conversation

martinkersner
Copy link
Member

Updates

  • Split maxi.candle.* to maxi.cex.candle.* and maxi.dex.candle.*
  • Move maxi.dex_trade.* under maxi.dex.trade.*
  • Raise error when error returned from server (previously accessed non-existent field in dict)

Usage

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

CEX Candle

Get exchanges supported by CEX candle

maxi.cex.candle.exchanges(market="...")

Get symbols supported by CEX candle

maxi.cex.candle.symbols()

Get intervals supported by CEX candle

maxi.cex.candle.intervals(exchange="...", market="...")

Get CEX candles

maxi.cex.candle.get(exchange="...", market="...")

DEX Candle

Get chains supported by DEX candle

maxi.dex.candle.chains()

Get exchanges supported by DEX candle

maxi.dex.candle.exchanges()

Get pools supported by DEX candle

maxi.dex.candle.pools(...)

Get DEX candles

maxi.dex.candle.get(chain="...", exchange="...", pool="...")

DEX Trade

Get chains supported by DEX trade

maxi.dex.trade.chains()

Get exchanges supported by DEX trade

maxi.dex.trade.exchanges()

Get pools supported by DEX trade

maxi.dex.trade.pools(...)

Get DEX trade

maxi.dex.trade.get(chain="...", exchange="...", pool="...")

@martinkersner martinkersner self-assigned this Sep 24, 2024
@martinkersner martinkersner force-pushed the i-1511/feat/split-candle-data-api branch from 1081a4f to 756f138 Compare September 24, 2024 08:43
@martinkersner martinkersner marked this pull request as ready for review September 24, 2024 08:44
@martinkersner martinkersner changed the title Split candle data API to maxi.cex.candle.* and maxi.dex.candle.* Split candle data API to maxi.cex.candle.* and maxi.dex.candle.* (v0.19.0) Sep 24, 2024
@martinkersner martinkersner requested review from nick-bisonai and a team and removed request for nick-bisonai September 24, 2024 08:49
Copy link
Contributor

@nick-bisonai nick-bisonai left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Contributor

@hayotbisonai hayotbisonai left a comment

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 a0ad115 into main Sep 24, 2024
7 checks passed
@martinkersner martinkersner deleted the i-1511/feat/split-candle-data-api branch September 24, 2024 09:24
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.

3 participants