@Sangeethmathew
Interesting link, but it is wrong.
@Hawkipa
interest and dividends received are income, some folks post them all to the same named income account, others create two named income accounts, either way works.
You can make a service item named for each, and select the income account on the item screen. Use that item on a sales receipt for the investment broker as a customer, then deposit the funds
OR
go to make deposits, select the income account as the source (from) account for the deposit and enter the amount.
Using an item and sales receipt is better in that it allows you do good reporting