Hi, thanks for posting.
This shape which I might call "barbell like" suggests it was used for olive oil.
If you search this forum for the term "olive oil" you will see a few other examples.
https://forum.antiquebottles-glass.com/search?Search=olive+oil
Yours has a screw-top so is machine made which dates it roughly mid 20th century.