Skip to main content

Markets

Every price query in Quantaprice names a market with two parameters: currency_code and tax_area. Together they decide which market settings apply: the exchange rate used to convert from the pricelist's currency, the VAT rate applied to the price, and the rounding profile that gives the final sales price. A change to any of these settings applies to every pricelist from the moment it takes effect: now, or at the start date you give it.

What this section covers​

Currencies and exchange rates​

Quantaprice includes every currency for which the European Central Bank publishes a daily rate, about 30 in all, and fetches the rates every day. EUR is the base currency: every rate is stored against EUR, and a conversion between two other currencies is calculated through EUR automatically. Historical rates are kept indefinitely, so a price query for a past date always uses the rate in force at that time.

VAT and tax areas​

VAT rates are set per tax area and VAT class. A pricelist is either NET (its prices exclude VAT, which is added when the price is calculated) or GROSS (its prices already include VAT). VAT is applied after currency conversion. Inheritance, bundle pricing and scheduled updates are all applied before it.

Rounding profiles​

Rounding is the last step. A profile rounds the price including VAT, or the price excluding VAT, and the VAT is then calculated from the rounded price. A profile consists of tiers for price ranges. Each tier sets a direction, a number of decimals or an increment, and an optional charm-pricing offset. A profile can be the global default, the default for a currency, or chosen per request. A new account starts with a standard profile that rounds every price to two decimals; see The standard profile.


A VAT rate, exchange rate or rounding profile applies to every pricelist at once, from the moment it takes effect; you cannot override it per pricelist. There is one exception: a price inherited from a pricelist in another currency is converted at a rate that is renewed only when the ECB rate moves past a threshold. See Converting inherited prices.