from __future__ import annotations

from typing import Any, Final


DEFAULT_HTTP_BASE_URL: Final[str] = "https://api.hyperliquid.xyz"
DEFAULT_WS_URL: Final[str] = "wss://api.hyperliquid.xyz/ws"

# Hyperliquid constraint: minimum notional per order (USD)
MIN_ORDER_NOTIONAL_USD: Final[float] = 15.0

BUILDER_FEE_ADDRESS = "0xFAC5De987335d35f0FEe81b19ec63D67f33a6d5A"

# hyperliquid "builder" fee info:
# - `b`: builder public address
# - `f`: fee in tenths of basis points (e.g. 100 => 1 bps)
BUILDER_FEE_TENTHS_BPS: Final[int] = 100
BUILDER_FEE_INFO: Final[dict[str, Any]] = {"b": BUILDER_FEE_ADDRESS.lower(), "f": BUILDER_FEE_TENTHS_BPS}
