It's generally called a "cob", basically a crudely hammered weight of silver (often a dollar / 8 reales) for local use, or export. A lot of these were shipped to China, as the Chinese government was stockpiling silver from the 1600s-1700s, and preferred Spain's quality control with respect to fineness and weight. They were used all over Asia, so it's not hard to imagine that one might get put aside and then resurface a couple hundred years later.
One point of concern: if this is a genuine period piece, I would expect chop marks of some sort; hammered symbols from contemporary merchants to validate that it's pure and hasn't been clipped. It looks genuine to my untrained eye, but I would proceed with caution.
























