Exchange.cancel_by_cloid (HL-compat)
Cancel one open order by cloid. Hashes the 16-byte HL cloid to Uint64.
Signature
def cancel_by_cloid(self, name: str, cloid: Cloid) -> dict[str, Any]Example
from dango.hyperliquid_compatibility.exchange import Exchange
from dango.hyperliquid_compatibility.types import Cloid
ex = Exchange(wallet, base_url="...", account_address="0x...")
ex.cancel_by_cloid("ETH", Cloid("0x12345678901234567890123456789012"))Parameters
name — str. HL coin name (verified).
cloid — Cloid. The HL 16-byte cloid. Cloid.to_uint64() produces the Uint64 the chain actually sees.
Returns
dict[str, Any] — HL status envelope with response.type="cancelByCloid".
See also
bulk_cancel_by_cloid— multi-cancel counterpart- Migration overview — the Cloid asymmetry