quote logic and pricing