Floating rate

Instructions for setting the floating rate

Setting the direction with floating rate

  • In order to enable and configure the ‘Floating Rate’ functionality go to direction settings -> ‘Rate Type’ step -> ‘Rate Calculation Type’ section -> select ‘Floating’ (you will see fields with settings).

Applications created before enabling the floating exchange rate will still have a fixed exchange rate (if you wish to change this, you can manually adjust it for unpaid exchanges using the instructions in "How to Set a Floating Rate for a Specific Exchange").

Exchange Rate Adjustment Settings Fields

Terms and Explanations:

  • Initial Rate — the exchange rate set at the time of creating the request.

  • Actual Rate — the current exchange rate displayed to the client.

  • Received Rate — the rate pulled from the parser, factoring in the "Commission Percentage."

- Downward Adjustment Threshold (in %)

This value defines the minimum percentage change in the received rate compared to the actual rate that will trigger a downward adjustment of the actual exchange rate.

Algorithm:

  • The system compares the current percentage change in the exchange rate with the "Downward Adjustment Threshold":

    • If the percentage drop is greater than the set threshold, the system recalculates and updates the actual exchange rate.

    • Otherwise, no adjustment occurs.

Note: There is no overall limit for downward adjustments.

BTC/USDT Example
  • Set the "Threshold for downward recalculation (in percentage)" value to 0.01%.

  • Current rate: 1 BTC = 10000 USDT.

  • If the price decreases, the received rate becomes: 1 BTC = 9998 USDT.

  • The script compares the percentage change between the actual rate and received rate: 0.02% > 0.01%, so the actual rate is recalculated.

  • The client sees the updated amount with the new rate: 1 BTC = 9998 USDT.

  • If the price decreases by 0.005%, the actual rate becomes 1 BTC = 9997.5001 USDT, but since 0.005% < 0.01%, the actual rate remains unchanged, and the client sees the original amount: 1 BTC = 9998 USDT.

- Upward Adjustment Threshold (in %)

This value defines the minimum percentage change in the received rate compared to the actual rate that will trigger an upward adjustment of the actual exchange rate.

- Overall Upward Deviation Limit (in %)

This value sets the maximum percentage by which the actual exchange rate can increase from the initial rate.

Algorithm for upward adjustment:

  • Step 1: The system compares the current percentage change in the rate with the "Upward Adjustment Threshold":

    • If the change is less than the threshold, the system moves to Step 2.

    • If the change is greater than or equal to the threshold, no adjustment is made.

  • Step 2: The system compares the current change in the rate with the "Upward Adjustment Threshold":

    • If the current percentage change exceeds the threshold, the system recalculates the rate.

    • If the change is smaller, no adjustment occurs.

Option 1
  • Threshold for upward recalculation (in percentage): 10%

  • Overall upward deviation limit (in percentage): 30%

  • Initial rate with commission: 1:100

For example, the rate starts to rise, and the new rate from the parser with the commission becomes 1:131.

The script detects a 31% change from the original rate, checks if it exceeds the "Overall upward deviation limit," sees that 31% > 30%, and thus no recalculation occurs, and the rate remains at 1:100.

Option 2
  • Threshold for upward recalculation (in percentage): 10%

  • Overall upward deviation limit (in percentage): 30%

  • Initial rate with commission: 1:100

The rate slightly decreases to 1:129, the script calculates a 29% change from the initial rate, checks if it exceeds the 30% overall upward deviation limit (it doesn’t), compares it to the 10% threshold for upward recalculation (it does), and recalculates the rate, setting it to 1:129.

How to set a floating rate for a specific exchange

To do this, go to the list of new exchanges and select the exchange where you can set a floating exchange rate for a specific request by clicking the button on the request.

Note! The exchange rate calculation type can only be changed for a new or unpaid exchange.

History of exchange rate changes in the request:

By clicking the chart icon, you can view the history of recalculations for this exchange with percentage adjustments.

Last updated