Quotations
This page is the central hub for managing all currency rates (quotes) on your crypto exchanger. It displays the complete list of all available rates, their key parameters, and from here the administrator can quickly add, edit, activate, or deactivate any rate. Quotes are the exchange rates your site uses to calculate conversions, for example 1 BTC = 102000 USDT, 1 USDT = 0.93 EUR, and so on — essentially these are the primary data on which the entire exchange process is built; if there are no quotes, the system does not know at what rate to calculate currency conversions.
Detailed description of interface elements:
The "+ Add" button in the top right corner:
The main action button on this page. Clicking it initiates the process of creating a new quote by opening the form to fill out.
Table of existing quotes:
This is the core of the page. It provides an overview of all rates in the system in a structured form. Each row is a separate quote. The columns provide the following information:
#: A unique numeric identifier of the quote in the database. Critically important for technical identification of the record. Sorted by default from new to old.
Group: The name of the group to which this quote is attached. Groups are used for logical sorting of rates (for example, "USDT Directions", "BTC Directions", "Fiat Hryvnia Directions"). This significantly simplifies finding the needed rate when there are many. The group name is available for quick filtering by quote groups.
Formula: The most important field. Displays the mathematical expression by which the final rate for this exchange direction is calculated. This may be a static number (for example, 40) or a dynamic formula consisting of the product of other quotes (for example, Whitebit:BTC_USDT * USDTTRC20_P24UAH). The system automatically computes this formula in real time for conversions.
Value: The rate already calculated by the formula you created. In the screenshot you can see examples of already calculated values. It is important to understand that they are not final, and if your formula includes volatile assets (i.e., coins or currencies with constantly changing rates) they will also update their rates in the system accordingly, so you should not worry that if you created a Bitcoin - USDT quote yesterday at $90,000 per BTC and today its price exceeded $100,000 and you would have to recreate or update the quote. Static quotes remain unchanged if you create a quote without a formula, simply with a value, for example "10".
Actions (Operations column):
Pencil icon (Edit): Clicking this icon opens the edit form for the selected quote, where you can change all parameters: formula, group, status.
Trash icon (Delete): Deletes the selected quote from the system. This action should be performed with caution as it may be irreversible. The system asks for confirmation before deletion.
Practical use: The administrator visits this page to ensure all rates are up to date. They can quickly find a quote by group name, check its formula and, if necessary, disable it for maintenance or edit it if the rate requires adjustment. Now that we understand the quote field labels, let’s proceed to directly creating one of them and examine the whole path to creating an exchange direction using several exchange direction examples. To create a quote we first need to create a group in the Groups menu; by clicking the “+Add” button we will go to the page where we need to fill in fields with our group name and a description comfortable for us and corresponding to this quote.

Next, returning to the Quotes section, click "+ Add" as well
Quote add/edit form
Once in the corresponding menu we need to write a formula that meets our creation requirements, namely: In the first field “Formula” we write the initial calculation formula, where the first word always indicates the source of the rate—in our case the exchange WhiteBit; it could also be another exchange, for example Binance. After a colon we write the first calculation formula, namely the BTC rate to the stablecoin USDT - Whitebit:BTC_USDT. After the system recognizes the mathematical calculation, it will be displayed in parentheses for that quote.

If our exchange direction were simply BTC to USDT, this quote would be enough. But since we need a dynamic calculation for BTC - PrivatBank24 UAH, we need to take the next step: create conditions to display the rate for the second half of the formula USDT-PrivatBank24 UAH. For this we can use either an existing rate for that exchange pair from existing dynamic sources (for example Whitebit:USDT_UAH), which we can do immediately by clicking the "Choose calculation formula" button,

or create a quote with a static value for a specific payout currency, and then create other quotes that will always reference your static value in formulas. For example, if you create a static quote USDT - PrivatBank24 with the value "42", where 42 is your only static quote, you can tie this quote into all subsequent quotes for accepting that currency, for instance: Whitebit:BTC_USDT*(YourSiteName)USDT - PrivatBank24, Binance:ETH_USDT*(YourSiteName)USDT - PrivatBank24. If you later change the rate by which you perform exchanges, you can manually change only the single PrivatBank24 quote value, for example from 42 to 41.5 or increase it to 42.5, and your calculated formulas for all other directions tied to this one will immediately reflect the changes. 3. So, to create a static quote formula, it is sufficient to create a new quote with a convenient static value under a previously created quote group relative to USDT, for example 42 for UAH, 470 for KZT, 0.92 for EUR, 1 to create a quote for a stable currency like USD or USDT, 32.5 for TRY (the numbers are only examples and do not imply you must use the same when creating a particular quote; these are just approximate stable coin to currency ratios).


Create 2 quotes: One with the formula "42" and group "UAH" and the second with the formula "1" and group "Stable" to use the quote when creating a currency later. After creating the simple formula, click publish so the quote appears in the Quotes list. 4. At this stage of getting acquainted with the Quotes section we should have 3 quotes created manually - Whitebit:BTC_USDT, a simple static value for the currency we need (in our case just "42"), and the value "1" which we will use as a quote when creating the USDT(trc20) currency. The next step, if we want a formula we can always influence, is to create conditions for displaying the next part of the calculation formula, namely USDT_42 (USDT/42). For this we need to create 3 currencies in the admin panel under General - Currencies. Follow the field-filling instructions described in the section for creating the following coins: BTC, USDT, P24UAH which will be tied later in your exchange direction - https://lara-script.gitbook.io/docs/ru/funkcional-admin-paneli/obshie/valyuty 5. If you have already followed the entire path following the instructions described in the Currencies and Directions sections, you will return to the Quotes section and, by residual principle, will create a new quote where you will see formulas unfamiliar to you earlier, namely *YourSiteName*:USDTTRC20_P24UAH, i.e. a new calculation formula that will be pulled from the exchange directions you created on the site, and using this formula you will be able to conveniently edit all directions tied to it by changing only the single initial quote for UAH with the formula "42"

In cases when a simple quote is required (for example, BTC → USDT), it is enough to connect a single parser.
However, for more complex directions where there is no direct quote (for example, BTC → UAH), a formula with multiplication or division operations is used:
The system takes two quotations from different sources (either from exchanges or from the internal Self Rate Provider).
Then they are multiplied or divided by each other to form the final rate.
Example:
Parser #1: BTC_USDT (from Binance or WhiteBit).
Parser #2: USDT_UAH (from an exchange, from the NBU rate or from your own site).
Result: the rate BTC → UAH = BTC/USDT × USDT/UAH.
Thus, you can form the so-called "tree of dependent quotes" and in the reverse direction, when one quote is based on another.
Last updated