@qlai - You can use a 3rd party platform for connecting to both IB and TD Ameritrade datafeed. no need to use TOS.
@Zohaibmajeed - As @Grulstmarnn mentioned,
Medved Trader would not be able to get true tick data from IB datafeed, however you could use IB for execution while using a different datafeed. for example, can use IQFeed or QuoteMedia for the tick data which would show every trade. As for your question about TOS and free data, yes, you would need to open a TD Ameritrade account. Not sure if you can do that, but easy enough to try.