Skip to content

Conversation

@martinkersner
Copy link
Member

Update

  • Integrate new parameters sourceQuote, targetQuote, and currency
  • Replace symbol (representing both base and quote symbol, e.g. BTC-USDT) to asset (representing only base symbol, e.g. BTC)

Usage

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

Fetch all premium data

maxi.premium.get()

Fetch all premium data related to Upbit as a source exchange

maxi.premium.get(sourceExchange="upbit")

Fetch all premium data between Upbit (source) and Binance (target)

maxi.premium.get(sourceExchange="upbit", targetExchange="binance")

Fetch BTC premium data between Upbit (source) and Binance (target)

maxi.premium.get(sourceExchange="upbit", targetExchange="binance", asset="BTC")

Fetch BTC premium data between Upbit (source) and Binance (target) where price difference is denominated in KRW

maxi.premium.get(sourceExchange="upbit", targetExchange="binance", asset="BTC", currency="KRW")

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!

@martinkersner
Copy link
Member Author

Will be part of #70

@martinkersner martinkersner deleted the feat/update-premium-params branch March 8, 2025 04:02
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