Constructs an instrument from its underlying and settlement assets.
underlyingAsset is the asset that is bought or sold;
settlementAsset is the asset used for cash flow, fees, and P&L.
Throws AssetError when either asset is empty or whitespace-only.
ReadonlysettlementReturns the settlement asset string.
ReadonlyunderlyingReturns the underlying (traded) asset string.
Returns a fresh Instrument holding the same asset pair.
Returns true when both instruments have the same asset pair.
Instrument definition: an underlying (traded) asset settled in another.
This is the canonical
Instrumentvalue object consumed by the market-data registration and resolution methods. Later stages reuse it via [JsInstrument::inner].