Catalyzes the hydrolysis of nucleoside triphosphates and diphosphates in a calcium- or magnesium-dependent manner. Has a strong preference for nucleoside diphosphates, preferentially hydrolyzes GDP, IDP, and UDP, with slower hydrolysis of CDP, ITP, GTP, CTP, ADP, and UTP and virtually no hydrolysis of ATP (PubMed:10948193, PubMed:11041856, PubMed:14529283). The membrane bound form might support glycosylation reactions in the Golgi apparatus and, when released from cells, might catalyze the hydrolysis of extracellular nucleotides (PubMed:10948193, PubMed:11041856, PubMed:14529283). {ECO:0000269|PubMed:10948193, ECO:0000269|PubMed:11041856, ECO:0000269|PubMed:14529283}. This is the function of Ensembl gene identifier ENSG00000197586 (ENTPD6, ectonucleoside triphosphate diphosphohydrolase 6).