Yes, you are right, the coin looks like being from the Ottoman Empire - it is dated AH1223, so it would be from Mustafa IV or more likely Mahmud II, who ascended to the throne that year.
To me it looks like a gold Zari-i Mahbub of Mahmud II from the Qustantiniuyya (Constantinople) mint.