XY Finance
Search…
v1
We have got the version number for our APIs as from now! Endpoints without a version number will be deprecated from June.

Breaking Changes

Endpoint

Previously we had

https://openapi.xy.finance

Presently we introduce

https://open-api.xy.finance/v1
Note the hyphen between open and api as well as the /v1 at the end

API [Get Quote]

Fields added in response

  • statusCode: The status of the quotation
  • fromTokenValue: The value of the given amount of fromToken
  • toTokenValue: The value of the toToken of the quote

Fields removed from response

  • estimatedGasFee

API [Get Allowance]

Fields added in response

  • chainId: The ID of the given chain
  • tokenAddress: The checksummed address of the given token
  • owner: The owner of the tokens
  • spender: The spender of the tokens
  • allowance: The available token amount of the owner to be spent by the spender

Fields removed from response

  • value

API [Build Approval Transaction]

Parameters removed

  • owner

Fields added in response

  • msg: The additional message of response
  • tokenAddress: The checksummed address of the given token
  • spender: The spender of the tokens
  • amount: The amount of the allowance approved

Fields removed from response

  • owner

API [Build Swap Transaction]

Fields added in response

  • statusCode: The status of the quotation
  • fromTokenValue: The value of the given amount of fromToken
  • toTokenValue: The value of the toToken of the quote

API [Get Cross Chain Status]

Fields added in response

  • txHash: To replace the original field tx in response

Fields removed from response

  • tx: Deprecated and superseded by the new field txHash