Function getMarketIdOf

  • Get the MarketId of a scalar or categorical asset id.

    Returns

    MarketId

    Parameters

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

      ScalarAssetId | CategoricalAssetId

    Returns MarketId

Generated using TypeDoc