Trade Validation

In order to check if a trade will go through or not and at what values/prices Futureswap harnesses an off-chain API that tries to predict these outcomes. These are called the validation API's.

They return all relevant details for the specific trading including:

  • Market Price at which it would be opened at. This includes any slippage

  • Current Index price

  • Liquidation Price

  • Collateral amount in stable

  • The trade fee

  • The estimated current gas cost

  • The total cost for trade