Add buy function
Fix search single ticket