Shift
To trade with SideShift.ai, users must first create a shift. A shift can be of type fixed or variable rate.
Fixed rate
- In these shifts, the locked-in rate for 15 minutes includes all fees in the rate calculation. The rate is locked in after the quote is created using the
/quotes
endpoint. After 15 minutes, the quote and the shift expire, and any deposit made to the shift will be refunded. To create a fixed-rate shift, a quote must be requested first using the/quotes
endpoint, and then the shift must be created using the/shifts/fixed
endpoint.
Variable rate
- For these shifts, the rate is not locked in until the user makes a deposit, at which point the network fees are added in the rate calculation. These shifts are valid for 7 days and can be requested in one step using the
/shifts/variable
endpoint.
tip
For integrations that allow their users to input an amount before creating either a fixed or variable rate shift, the /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 coin
networkFeeUsd
, denominated inUSD
Both represent the estimated sum of network fees that will be charged for the shift.