A Bugis Riau keris or from another origin? The blade is a little too long as compared to the sheath but the fitting seems original. A bargain for 40 USD anyway, congrats!
Regards
If you could see more clearly in the pictures, it appears that the sheath may have been longer, perhaps there was a separate buntut?