It is not illegal, but SEBI and the exchanges do not regulate or recognise it. Deals made here are not enforceable in court.