3 ms·The IRS gets information from your brokerage on your trades with the proceeds and cost basis for each.by not2b 5y agoThe IRS gets information from your brokerage on your trades with the proceeds and cost basis for each.