Zero XPrice Request
Request model for getting a price quote from ZeroX (without transaction data). All optional parameters can be used to customize the price request.
Parameters
The blockchain identifier (e.g., "eip155:1" for Ethereum Mainnet). Included in request body.
The token to buy. Can be the address or symbol.
The token to sell. Can be the address or symbol.
The amount to sell including all decimals.
Optional transaction origin address.
Optional address to receive swap fees.
Optional swap fee in basis points.
Optional token to use for swap fees.
Optional address to receive trade surplus.
Optional gas price to use for the transaction.
Optional slippage tolerance in basis points.
Optional comma-separated list of sources to exclude.
Optional flag to sell entire balance (converted to "true"/"false" string).