NEW DELHI—India's trade deficit shrank by close to 50% in October compared with a year earlier as a weak rupee helped make exports from the South Asian nation more competitive and government restrictions doused demand for imported gold.

Government data released Monday showed that India's trade deficit dropped 48% to $10.56 billion in October. However, it was higher than the $6.76 billion trade deficit in September.