getPrice API is working.
removed all code related to event listening from C++ side. Added checkExisting.