I'm getting an “Invalid trade parameters" error