Typical flow
GET /v1/chainsandGET /v1/tokens— catalogGET /v1/pairs— confirm a concrete direction (all four sides required)GET /v1/pairs/search— list counterpart tokens for one sideGET /v1/quote— rates; each item hasrateId(Redis snapshot, 5 minutes) and optional providerquoteIdPOST /v1/swap— create the order; passrateIdto lock the shown quote; storetransactionId+accessTokenGET /v1/transactions/{id}— poll status (idis the YiFi UUID from step 5)POST /v1/transactions/{provider}/dex/set-deposit-hash?access_token=— after the user broadcasts a DEX deposit (once)
Last updated
Was this helpful?