A corporate bond is purchased at its par value of $1,000 and later sold at a discount. This would be indicative of which of the following risks?
A. Opportunity risk
B. Credit risk
C. Currency risk
D. Interest-rate risk