If you should have a cocaine habit then put your baby on formula. Cocaine or many other drugs (even over the counter drugs) should not be used while breast feeding. 'Cocaine and its metabolite benzoylecgonine were found in maternal milk for 36 hours.'
Cocaine used during breastfeeding is never safe in any amount. Women who use cocaine regularly should not breastfeed, as it would be almost impossible to avoid infant exposure. Cocaine readily passes into breast milk and appears to be readily absorbed from an infant's intestinal tract. Infant cocaine exposure is related to increased (dangerous) heart rate, increased blood pressure, extreme irritability, agitation, increased startle reflex, choking and vomiting. The metabolites of cocaine are slowly metabolized and a breastfed infants urine can test positive for cocaine for days after exposure. Occasionally a woman will use cocaine once during the time she is lactating, and the recommendation for breastfeeding then is for a woman to "pump and dump" her milk for 36-48 hours after cocaine use before resuming breastfeeding. In the interim the baby could be fed either drug-free expressed breast milk (obtained and stored properly prior to cocaine use) or an artificial formula." http://www.netwellness.org/question.cfm/...In fact, cocaine levels in the maternal milk can be eight times as high as the level of cocaine in the mother's blood. This is because cocaine is highly soluable in fat, see Peters H. Theorell CJ. 1990. Fetal and neonatal effects of maternal cocaine use. Journal of Obstetric, Gynecologic, and Neonatal Nursing 20: 121-12.