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

Reorganize data api endpoints #45

Merged
merged 10 commits into from
Jul 18, 2024

Conversation

martinkersner
Copy link
Member

Datamaxi+ endpoints for candle and funding rate data have been updated. This PR reflects its changes and introduces a new API structure.

Candle

from datamaxi import Datamaxi

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

# get supported exchanges for candle data (does not require API key)
maxi.funding_rate.exchanges()

# get supported symbols for binance spot market (does not require API key)
maxi.funding_rate.symbols("binance", market="spot")

# get supported intervals for binance spot market (does not require API key)
maxi.candle.intervals("binance", market="spot")

# get candle data for BTC-USDT futures market from binance in 1 day intervals
maxi.candle.get("binance", "BTC-USDT", "1d", "futures")

Funding Rate

from datamaxi import Datamaxi

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

# get supported exchanges for funding rate data
maxi.funding_rate.exchanges()

# get supported symbols for binance exchange
maxi.funding_rate.symbols("binance")

# get funding rate data for BTC-USDT from binance
maxi.funding_rate.get("binance", "BTC-USDT")

@martinkersner martinkersner merged commit 4950aee into main Jul 18, 2024
7 checks passed
@martinkersner martinkersner deleted the i-982/feat/reorganize-data-api-endpoints branch July 18, 2024 03:11
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