# Endpoints the SDK targets, checked against the pinned spec (.api-version) by
# scripts/check_spec_drift.py. This file lists the spec operations the SDK
# targets; the check validates it BOTH ways:
#   * every line must exist in the pinned spec (no removed/renamed/typo'd op);
#   * the set must equal the REST operations implemented in src/rest.rs, modulo
#     the two documented allowlists in check_spec_drift.py:
#       - CODE_ONLY_OPS    — implemented but ahead of the pinned spec, so kept
#         OUT of this file (adding them here would fail the spec check); e.g.
#         /account/leverage, /orders/by-client-id/*, /transfers, /sub-accounts.
#       - NON_REST_TARGETS — targeted but reached without a REST helper call;
#         e.g. GET /ws (the WebSocket upgrade, opened by the ws client).
# So: add a line here whenever you add a REST wrapper for a spec operation, or
# the drift check fails. Format:
#   METHOD /path   (path placeholders match the spec, e.g. {market_id})
#
# Dual-stack routing (ENG-4947 / gateway elimination ENG-4740): paths under the
# `/api/v1/` prefix are the direct-indexer surface (served at the host root); the
# rest stay on the legacy `/api/exchange` gateway. The path here is the FULL path
# the SDK signs and sends — so a migrated op is listed with its `/api/v1` prefix,
# exactly as it appears in the spec and in the src/rest.rs literal.

# --- Direct-service surface (/api/v1) — migrated off the gateway ---
GET /api/v1/markets/summary
GET /api/v1/tickers
GET /api/v1/markets/{market_id}/ticker
GET /api/v1/markets/{market_id}/orderbook
GET /api/v1/markets/{market_id}/trades
GET /api/v1/markets/{market_id}/candles
GET /api/v1/markets/{market_id}/funding
GET /api/v1/markets/{market_id}/mark-price
GET /api/v1/markets/{market_id}/status
GET /api/v1/account
GET /api/v1/account/rate-limit
POST /api/v1/account/credit
GET /api/v1/positions
GET /api/v1/fills
POST /api/v1/orders
GET /api/v1/orders
DELETE /api/v1/orders
POST /api/v1/orders/batch
DELETE /api/v1/orders/{order_id}

# --- Legacy gateway surface (/api/exchange) — no /api/v1 variant yet ---
GET /markets
GET /markets/{market_id}/adl-events
GET /account/{address}/adl-history
GET /health
GET /keys
POST /keys
DELETE /keys/{key_id}
GET /agents
POST /agents/register
DELETE /agents/{address}
POST /auth/login
GET /orders/{order_id}
PATCH /orders/{order_id}
POST /account/deposit
POST /account/margin
GET /withdrawals
PUT /admin/tiers
GET /admin/tiers
DELETE /admin/tiers/{address}
POST /ws/token
GET /ws
