Skip to main content

Get Swap Price

Get Swap Price

Query Parameters
  • sellToken string required

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

  • buyToken string required

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

  • sellAmount string required

    Possible values: Value must match regular expression ^[0-9]+$

  • slippagePercentage number

    Default value: 0.01

  • excludedSources string
  • includedSources string
  • maxHops number

    Default value: 3

  • takerAddress string

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

  • maxPaths number

    Default value: 4

Responses

Default Response


Schema
  • price number required
  • guarunteedPrice number required
  • expectedOutput string required
  • minimumOutput string required
  • estimatedPriceImpact number required
Loading...