It depends in which geography you are, Assuming you are asking this question in context of India then answer is "Its allowed only for the financial institution (banks, MFs etc), individuals cant trade in currency"