How can I verify that an item has been sold / bought in the ge?

I can’t get my script to verify that an item has been bought or sold to sleep or continue with any action. Beforehand thank you very much

https://rspeer.nyc3.cdn.digitaloceanspaces.com/front-site/javadocs/index.html