Unusual Ring Bought Street Market Madrid

Anyone recognise this item or the not very well stamped marks? It was bought from a street trader in Madrid but the marks don’t seem to match what I read of Spanish marks.