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

Pagination #41

Merged
merged 4 commits into from
Jul 9, 2024
Merged

Pagination #41

merged 4 commits into from
Jul 9, 2024

Conversation

martinkersner
Copy link
Member

@martinkersner martinkersner commented Jul 9, 2024

Funding Rate

from datamaxi.binance import Binance

api_key = "YOUR API KEY"
binance = Binance(api_key=api_key)

df, next_request = binance.funding_rate(symbol="BTC-USDT", limit=10, pandas=True)

# plot funding rate
df["f"].plot()

# request next 10 funding rate data
df, next_request = next_request()

Candle

from datamaxi.datamaxi import Datamaxi

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

df, next_request = maxi.candle(exchange="binance", market="spot", symbol="BTC-USDT", limit=10, pandas=True)

# plot close price
df["c"].plot()

# request next 10 candles
df, next_request = next_request()

@martinkersner martinkersner self-assigned this Jul 9, 2024
@martinkersner martinkersner marked this pull request as ready for review July 9, 2024 03:04
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 9d93990 into main Jul 9, 2024
7 checks passed
@martinkersner martinkersner deleted the i-905/feat/pagination-support branch July 9, 2024 04:30
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.

2 participants