No, you can not assign a class to anything other than an actual transaction

You could track the stock market, but it will be a major pain to do so in QBO

QBO can not handle¬† stock splits, reverse splits, dividends paid other than as income but not associated per stock or […]

Resolution for 'ADR fees issue: 'can I track publicly traded stocks I buy and sell using the track inventory feature in QB Online? Can I specify a class to my inventory list?' available: Yes.

The ADR fees issue or error code is a known issue in Quickbooks Online (QBO) and/or Quickbooks. Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Quickbooks issue to ensure minimal downtime and continue running your business. First try to resolve the ADR fees issue yourself by looking for a resolution described in the article. If it is a complex ADR fees issue or you are unable to solve the issue, you may contact us by clicking here or by using other ADR fees support options.

For more information about resolving issues related to ADR fees in Quickbooks/QBO or to get support for the issue 'can I track publicly traded stocks I buy and sell using the track inventory feature in QB Online? Can I specify a class to my inventory list?', click the link below: