For BoP and IIP(International Investment Position):
--IIP section of IMF IFS and Balance of Payment Statistics (BoPS)
--The IMF Coordinated Portfolio Investment Survey (CPIS) covering 60 investor countries and 220 destination territories (from 2007)
--Bilateral estimates of foreign holdings of portfolio equity assets in the US and US holdings of equity overseas (US Treasury)
To adjust for market value:
--MSCI world index
For Debt Data:
--World Bank GDF & IMF WEO database
--WB & IMF Quarterly External Debt Database (QEDS)
--BIS