Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

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

namestr. HL coin name (verified).

cloidCloid. 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