They touch on the political affinities between the Union and Liberia but no so much the Confederacy and Brazil. I wonder if something similar was going on? Brazil still had slavery at that time. After the Confederates lost I recall learning that some slave-owning farmers moved down to Brazil to continue their slavery-driven farming practices. They only had 20 years though because slavery was banned in Brazil in the 1880s.
No doubt Brazil and the Confederacy would have liked to trade, as there was a strong tie between them as you guessed from the slavery issue. After the war, a number of Confederates (some illegally with their enslaved people) moved to Brazil, where their descendants are known as "Confederados" [1]. However, during the war the Union blockaded Southern ports and few trade items (including coffee) got through.