Shift
To trade with SideShift.ai, users must first create a shift. A shift can be of type fixed or variable rate.
Fixed rate
- These shifts lock in the exchange rate for 15 minutes, including all fees. The rate is secured once the quote is created using the
/v2/quotesendpoint. After 15 minutes, the quote and the shift expire, and any deposit made to the shift is refunded. To create a fixed-rate shift, first request a quote, then create the shift via the/v2/shifts/fixedendpoint.
Variable rate
- These shifts don’t lock in the rate until the user makes a deposit, at which point network fees are included in the rate calculation. They remain valid for seven days and can be requested in one step using the
/v2/shifts/variableendpoint.
tip
For integrations that allow their users to input an amount before creating either a fixed or variable rate shift, the /v2/pair endpoint can be used to accurately estimate the impact of network fees on the rate for the specified pair. This can be done by setting the input amount as the optional amount query parameter.
When integrations are unaware of the exact amount their users will send for a variable rate shift, they can choose to present on their application either:
settleCoinNetworkFee, denominated insettle coinnetworkFeeUsd, denominated inUSD
Both represent the estimated sum of network fees that will be charged for the shift.