# Policy Overview

Under the hood, policies are the driving force of Dexible's execution engine. They determine whether an order should execute, wait, pause, or cancel. Dexible currently supports the following policies:

| Policy           | Description                                                                                                                                                                                                                                    | Params                                                                                  |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| **BoundedDelay** | Specifies a time delay between rounds                                                                                                                                                                                                          | <p>timeWindowSeconds</p><p>randomizeDelay</p>                                           |
| **Expiration**   | Specifies an expiration period in seconds. This will force an order to cancel when evaluating to true.                                                                                                                                         | seconds                                                                                 |
| **FailLimit**    | Specifies a max number of failures for an order. This is automatically added to every order with a max of 30% of order's number of rounds (i.e. you cannot add this yourself). This will cause an order to cancel if it has too many failures. | maxFailures                                                                             |
| **GasCost**      | Specifies the gas type to apply to the order. This is required for every order.                                                                                                                                                                | <p>gasType (relative | fixed)</p><p>amount (if fixed)</p><p>deviation (if relative)</p> |
| **LimitPrice**   | Specifies a min price that the market must meet to execute the order.                                                                                                                                                                          | price (see Prices)                                                                      |
| **PriceBounds**  | Specifies a base price and an upper/lower bound.                                                                                                                                                                                               | <p>basePrice (see Prices)</p><p>upperBoundPercent</p><p>lowerBoundPercent</p>           |
| **Slippage**     | Specifies the amount of slippage allowed per round. This is required for all orders.                                                                                                                                                           | amount (.5 == .5%)                                                                      |
| **StopPrice**    | Specifies an activation (trigger) price and whether the market price should be above or below the activation price.                                                                                                                            | <p>trigger (see Prices)</p><p>above (boolean)</p>                                       |
| **StopLimit**    | Specifies and activation (trigger) price and a limit price. The activation should be above market and the limit should be at a price higher than the activation.                                                                               | <p>trigger (see Prices)<br>limitPrice (see Prices)</p>                                  |

More will be added as the Dexible features expand. But with this set of policies, powerful algos can be realized.
