(Reuters) - Bank of America Corp would have been required to post $5.1 billion in collateral under derivatives contracts as of March 31 if major ratings agencies had downgraded its debt by two notches, the bank said in a quarterly filing on Thursday.