Skip to content

Commit 318632e

Browse files
martinkersnergithub-actions[bot]
authored andcommitted
chore: sync generated _endpoints.py with backend spec
1 parent 239bfd8 commit 318632e

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

datamaxi/_responses.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ class LiquidationMapResponse:
499499
assumptions: Optional[LiquidationMapAssumptions] = None
500500
base: str = ""
501501
buckets: List[LiquidationMapBucket] = field(default_factory=list)
502-
# Cumulative totals — separately surfaced so the FE doesn't have to re-sum to drive the cumulative line series (Coinglass-style).
503502
cumulative_long_usd: float = 0.0
504503
cumulative_short_usd: float = 0.0
505504
current_price: float = 0.0
@@ -604,15 +603,10 @@ def from_dict(cls, data: dict) -> LiquidationStatsResponse:
604603

605604
@dataclass
606605
class LiquidationSymbolHistoryBucket:
607-
# Liquidated long positions in USD over this bucket (Side='sell').
608606
long_usd: float = 0.0
609-
# Candle close mid for the same bucket. nil when no candle exists (very early in a newly listed pair, or when the price feed is down). FE renders the price line with `connectNulls=false` so gaps stay visible instead of being smoothed across.
610607
price: Optional[float] = None
611-
# Liquidated short positions in USD over this bucket (Side='buy').
612608
short_usd: float = 0.0
613-
# Convenience sum so the FE can drive a "total" line without re-add.
614609
total_usd: float = 0.0
615-
# Unix ms timestamp at the start of the interval bucket.
616610
ts: int = 0
617611

618612
@classmethod
@@ -634,7 +628,6 @@ class LiquidationSymbolHistoryResponse:
634628
interval: str = ""
635629
quote: str = ""
636630
symbol: str = ""
637-
# Totals over the window — handy for a header line without making the FE re-aggregate the bucket list.
638631
total_long_usd: float = 0.0
639632
total_short_usd: float = 0.0
640633
window: str = ""
@@ -818,7 +811,6 @@ def from_dict(cls, data: dict) -> OpenInterestResponse:
818811
class OpenInterestSummaryExchangesummary:
819812
exchange: str = ""
820813
open_interest_usd: float = 0.0
821-
# Number of tokens this exchange has non-zero OI for.
822814
tokens: int = 0
823815

824816
@classmethod
@@ -832,13 +824,10 @@ def from_dict(cls, data: dict) -> OpenInterestSummaryExchangesummary:
832824

833825
@dataclass
834826
class OpenInterestSummaryResponse:
835-
# sorted desc, all venues with data
836827
exchanges: List[OpenInterestSummaryExchangesummary] = field(default_factory=list)
837828
generated_at: int = 0
838829
grand_total: float = 0.0
839-
# top N by OI desc
840830
tokens: List[OpenInterestSummaryTokensummary] = field(default_factory=list)
841-
# Token universe size — useful in the FE to label the KPI as "BTC of 1,234 tokens" instead of just "BTC".
842831
total_tokens: int = 0
843832

844833
@classmethod
@@ -862,7 +851,6 @@ class OpenInterestSummaryTokensummary:
862851
open_interest_usd: float = 0.0
863852
symbol: str = ""
864853
token_id: str = ""
865-
# Number of exchanges this token is listed on with non-zero OI. Useful for the breakdown card to show e.g. "BTC · 8 venues".
866854
venues: int = 0
867855

868856
@classmethod

0 commit comments

Comments
 (0)