- Preparing search index...
- The search index is not available
sdk-v2
- getIndexOf(assetId: {
CategoricalOutcome: [MarketId, number];
} | {
ScalarOutcome: [MarketId, "Short" | "Long"];
}): number
-
Parameters
-
assetId: {
CategoricalOutcome: [MarketId, number];
} | {
ScalarOutcome: [MarketId, "Short" | "Long"];
}
Returns number
Get the asset index of an AssetId, will return index only for scalar and categorical assets.
Returns
number | null