{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vybenetwork-com/json-schema/vybenetwork-com-trade-price-market-return-schema.json",
  "title": "TradePriceMarketReturn",
  "description": "Response payload model for trade price market return results returned by this API endpoint.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vybenetwork-com-solana-api-websocket-api-openapi.yml#/components/schemas/TradePriceMarketReturn",
  "properties": {
    "baseMintAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/SolanaId"
        }
      ],
      "description": "The base token mint address used to identify the market or trade side.",
      "nullable": true
    },
    "baseTokenAmount": {
      "description": "The amount of the base token in the market",
      "type": [
        "string",
        "null"
      ]
    },
    "baseTokenName": {
      "description": "Name of the base token",
      "type": [
        "string",
        "null"
      ]
    },
    "baseTokenSymbol": {
      "description": "Ticker for the base token",
      "type": [
        "string",
        "null"
      ]
    },
    "baseTokenVaultAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/SolanaId"
        }
      ],
      "description": "The base token vault address for this market account.",
      "nullable": true
    },
    "marketAddress": {
      "$ref": "#/$defs/SolanaId"
    },
    "marketName": {
      "description": "Name of the market",
      "type": [
        "string",
        "null"
      ]
    },
    "pairedMintAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/SolanaId"
        }
      ],
      "description": "The reference/quote token mint (SOL/USDC/stablecoin) paired with tradedMintAddress, by the same economic orientation. Null when the pair has no well-known quote side.",
      "nullable": true
    },
    "programAddress": {
      "$ref": "#/$defs/SolanaId"
    },
    "programName": {
      "description": "Name of the program",
      "type": [
        "string",
        "null"
      ]
    },
    "quoteMintAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/SolanaId"
        }
      ],
      "description": "The quote token mint address used to identify the market or trade side.",
      "nullable": true
    },
    "quoteTokenAmount": {
      "description": "The amount of the quote token in the market",
      "type": [
        "string",
        "null"
      ]
    },
    "quoteTokenName": {
      "description": "Name of the quote token",
      "type": [
        "string",
        "null"
      ]
    },
    "quoteTokenSymbol": {
      "description": "Ticker for the quote token",
      "type": [
        "string",
        "null"
      ]
    },
    "quoteTokenVaultAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/SolanaId"
        }
      ],
      "description": "The quote token vault address for this market account.",
      "nullable": true
    },
    "tradedMintAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/SolanaId"
        }
      ],
      "description": "The traded (non-reference) token mint, by economic orientation (whichever side is NOT a well-known quote: SOL/USDC/stablecoins). Additive to baseMintAddress (which is positional/unchanged). Null when both or neither side is a known quote (e.g. token-to-token pools).",
      "nullable": true
    },
    "updatedAt": {
      "description": "Latest update Time",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "marketAddress",
    "programAddress",
    "updatedAt"
  ],
  "type": "object",
  "$defs": {
    "SolanaId": {
      "description": "Typed Solana public key identifier used across request parameters and response fields.",
      "format": "pubkey",
      "type": "string"
    }
  }
}