For 2018 through 2025, you cannot deduct investment fees. These fees are treated as miscellaneous itemized deductions subject to a 2% of adjusted gross income floor; these deductions have been suspended for this period.
The length of time that an asset is owned and that generally determines long- or short-term capital gain treatment.