Function getIndexOf

  • Get the asset index of an AssetId, will return index only for scalar and categorical assets.

    Returns

    number | null

    Parameters

    • assetId: {
          CategoricalOutcome: [MarketId, number];
      } | {
          ScalarOutcome: [MarketId, "Short" | "Long"];
      }

      AssetId

    Returns number

Generated using TypeDoc