Skip to content

feat: add OI / Liquidation / cex-symbol endpoints (55 total)#6

Merged
haminprk merged 3 commits into
mainfrom
chore/regen-sdk-oi-liq-v2
May 13, 2026
Merged

feat: add OI / Liquidation / cex-symbol endpoints (55 total)#6
haminprk merged 3 commits into
mainfrom
chore/regen-sdk-oi-liq-v2

Conversation

@haminprk
Copy link
Copy Markdown
Member

@haminprk haminprk commented Apr 22, 2026

Auto-generated SDK regen picking up 9 new public REST endpoints on the DataMaxi+ data API (44 → 55 total).

Endpoints added

Liquidation

Endpoint Path
liquidation_heatmap GET /api/v1/liquidation/heatmap
liquidation_map GET /api/v1/liquidation/map
liquidation_symbol_history GET /api/v1/liquidation/symbol-history

Open Interest

Endpoint Path
open_interest_overview GET /api/v1/open-interest/overview
open_interest_summary GET /api/v1/open-interest/summary
open_interest_history_aggregated GET /api/v1/open-interest/history-aggregated

CEX Symbol (per-base aggregates)

Endpoint Path
cex_symbol_oi GET /api/v1/cex/symbol/oi
cex_symbol_oi_stats GET /api/v1/cex/symbol/oi-stats
cex_symbol_liquidation GET /api/v1/cex/symbol/liquidation

Usage

use datamaxi::Client;

let client = Client::new("YOUR_API_KEY");

// Liquidation heatmap (token × exchange, rolling window)
let heatmap = client.liquidation_heatmap()
    .window("1h")
    .top_n(10)
    .send()
    .await?;

// Per-token aggregated OI history with per-exchange breakdown
let history = client.open_interest_history_aggregated()
    .token_id("bitcoin")
    .interval("1h")
    .send()
    .await?;

Test plan

  • Generated against the latest OpenAPI spec via datamaxi-codegen
  • cargo check passes
  • cargo build passes

Notes

Generated content only — no manual edits. The corresponding REST documentation (https://docs.datamaxiplus.com) and Python SDK have been updated in parallel.

haminprk and others added 3 commits April 22, 2026 15:33
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds 9 endpoints to the Rust SDK, auto-generated from the updated
data-api openapi.yaml (Bisonai/datamaxi#5804):

  - liquidation_heatmap, liquidation_map, liquidation_symbol_history
  - open_interest_{overview, summary, history_aggregated}
  - cex_symbol_{oi, oi_stats, liquidation}

Generated by datamaxi-codegen `make rust`. Total endpoints: 46 → 55.
@haminprk haminprk changed the title chore: regen SDK for /api/v1/open-interest + /api/v1/liquidation feat: add OI / Liquidation / cex-symbol endpoints (55 total) May 13, 2026
@haminprk haminprk merged commit 1f9f524 into main May 13, 2026
4 checks passed
@haminprk haminprk deleted the chore/regen-sdk-oi-liq-v2 branch May 13, 2026 07:51
haminprk added a commit that referenced this pull request May 13, 2026
Minor bump to reflect the OI / Liquidation / cex-symbol endpoint
additions from #6 (9 new endpoints, 44 → 55 total).
haminprk added a commit that referenced this pull request May 13, 2026
The auto-generated typed wrappers in `src/generated.rs` have existed
since #3 (2024-10) but were never re-exported from `lib.rs`. As a
result every endpoint added through codegen (Liquidation, OpenInterest,
CexSymbol per-base aggregates, and the entire pre-existing surface
beyond CEX Candle / DEX) has been unreachable to external crate
consumers.

Adding `pub mod generated;` is a no-cost fix: nothing else changes,
existing imports under `datamaxi::cex`, `datamaxi::dex`, etc. continue
to work, and the docstring on the module points users at the typed
wrappers as the canonical surface for OI / Liquidation / cex-symbol.

Bumped to v0.3.1 — this is the first release where the OI /
Liquidation typed wrappers from #6 are actually callable.
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