pub fn outcome_asset_id_to_instrument_id(
asset_id: HyperliquidAssetId,
) -> Result<InstrumentId>Expand description
Converts an outcome (HIP-4) asset ID to its canonical Nautilus instrument ID.
The instrument ID uses the form {outcome_index}-{YES|NO}-OUTCOME.HYPERLIQUID,
symmetric with -PERP / -SPOT, so the human reading the ID can see which
question and side they’re trading. The venue wire forms (#<encoding> /
+<encoding>) are preserved on the instrument’s raw_symbol and base
alias, not on the Nautilus symbol.
§Errors
Returns an error if asset_id is not a valid outcome asset ID.