OpenSea · Schema

SwapPriceImpact

Price impact of the swap

NFTMarketplaceWeb3BlockchainTradingDigital Assets

Properties

Name Type Description
usd string Price impact in USD (negative means user loses value)
percent string Price impact as a percentage (negative means user loses value)
View JSON Schema on GitHub

JSON Schema

SwapPriceImpact.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opensea.io/schemas/SwapPriceImpact",
  "title": "SwapPriceImpact",
  "type": "object",
  "description": "Price impact of the swap",
  "properties": {
    "usd": {
      "type": "string",
      "description": "Price impact in USD (negative means user loses value)",
      "example": -1.5
    },
    "percent": {
      "type": "string",
      "description": "Price impact as a percentage (negative means user loses value)",
      "example": -0.08
    }
  },
  "required": [
    "percent",
    "usd"
  ]
}