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

order

Fetch a single resting limit order by id. Returns None if the order does not exist.

Signature

def order(self, order_id: OrderId) -> dict[str, Any] | None

Example

from dango.info import Info
from dango.utils.constants import MAINNET_API_URL
from dango.utils.types import OrderId
 
info = Info("https://api-mainnet.dango.zone", skip_ws=True)
result = info.order(OrderId("12345"))
if result is not None:
    print(result["pair_id"], result["size"], result["limit_price"])

Parameters

order_idOrderId. The chain-assigned order id.

Returns

dict[str, Any] | None — order details, or None for unknown ids. Shape matches QueryOrderResponse — cast if you want typed access.

See also