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

Add DexTrade client (v0.13.0) #46

Merged
merged 6 commits into from
Jul 20, 2024
Merged

Conversation

martinkersner
Copy link
Member

This PR introduces DexTrade client accessible from Datamaxi.datamaxi. It provides two methods get and exchanges to receive the DEX trade data and supported exchanges, respectively.

Example of fetching WKLAY-KPING trading data from kaiaswap

The get method supports pagination parameters: page, limit and sort. To learn more details visit https://python.datamaxiplus.com/dex-trade

from datamaxi import Datamaxi

api_key = "YOUR API KEY"
maxi = Datamaxi(api_key=api_key)

maxi.dex_trade.get(exchange='kaiaswap', symbol='WKLAY-KPING')

Example of fetching supported exchanges

from datamaxi import Datamaxi

# this call does not require API key
maxi = Datamaxi()

maxi.dex_trade.exchanges()

@martinkersner martinkersner changed the title Add DexTrade client Add DexTrade client (v0.13.0) Jul 20, 2024
@martinkersner martinkersner merged commit cfa5e64 into main Jul 20, 2024
7 checks passed
@martinkersner martinkersner deleted the feat/add-dex-trade-client branch July 20, 2024 05:42
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