changedOutput schema / (root)
Previous value: -{
- "$defs": {
- "Meta": {
- "additionalProperties": false,
- "properties": {
- "age_seconds": {
- "description": "Age of the data at response time",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "as_of": {
- "description": "When the data was read from the ledger",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- "cache": {
- "enum": [
- "hit",
- "miss",
- "stale"
- ],
- "type": "string"
- },
- "ledger_index": {
- "description": "Validated ledger the data comes from",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "stale": {
- "description": "True when served past its fresh TTL (stale-on-error)",
- "type": "boolean"
- }
- },
- "required": [
- "ledger_index",
- "as_of",
- "age_seconds",
- "cache",
- "stale"
- ],
- "type": "object"
- }
- },
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "amount": {
- "description": "Decimal string",
- "type": "string"
- },
- "avg_price": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "avg_price_after_fees": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "base": {
- "type": "string"
- },
- "best_price": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "depth": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "filled": {
- "description": "Decimal string",
- "type": "string"
- },
- "insufficient_liquidity": {
- "type": "boolean"
- },
- "meta": {
- "$ref": "#/$defs/Meta"
- },
- "partial": {
- "type": "boolean"
- },
- "quote": {
- "type": "string"
- },
- "side": {
- "const": "buy",
- "type": "string"
- },
- "slippage_pct": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Percent, null when liquidity is insufficient"
- },
- "transfer_fee": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "transfer_fee_applied": {
- "type": "boolean"
- },
- "venues": {
- "additionalProperties": false,
- "description": "CLOB vs AMM comparison for the same amount; no routing split",
- "properties": {
- "amm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "avg_price": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Quote paid per base received, null when it cannot fill"
- },
- "avg_price_after_fees": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "avg_price x issuer TransferRate, null when the rate is unknown"
- },
- "cost": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Total quote paid for `amount`, null when it cannot fill"
- },
- "insufficient_liquidity": {
- "type": "boolean"
- },
- "slippage_pct": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Percent vs the fee-free pool spot price (includes the trading fee), null when it cannot fill"
- },
- "spot_price": {
- "description": "Pool spot price, quote per base, excluding fee and impact",
- "type": "string"
- },
- "trading_fee": {
- "description": "Pool trading fee as a fraction, like /v1/xrpl/amm",
- "type": "string"
- }
- },
- "required": [
- "avg_price",
- "cost",
- "slippage_pct",
- "insufficient_liquidity",
- "avg_price_after_fees",
- "spot_price",
- "trading_fee"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Null when the pair has no pool or the pool could not be read (see amm_status)"
- },
- "amm_status": {
- "description": "State of the AMM read: ok, stale (served past its fresh window), no_pool, unavailable",
- "enum": [
- "ok",
- "stale",
- "no_pool",
- "unavailable"
- ],
- "type": "string"
- },
- "best": {
- "anyOf": [
- {
- "enum": [
- "clob",
- "amm"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Cheaper venue by avg_price (ties go to the CLOB), null when neither can fill"
- },
- "clob": {
- "additionalProperties": false,
- "properties": {
- "avg_price": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Quote paid per base received, null when it cannot fill"
- },
- "avg_price_after_fees": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "avg_price x issuer TransferRate, null when the rate is unknown"
- },
- "cost": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Total quote paid for `amount`, null when it cannot fill"
- },
- "insufficient_liquidity": {
- "type": "boolean"
- },
- "slippage_pct": {
- "anyOf": [
- {
- "description": "Decimal string",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Percent vs the best ask, null when it cannot fill"
- }
- },
- "required": [
- "avg_price",
- "cost",
- "slippage_pct",
- "insufficient_liquidity",
- "avg_price_after_fees"
- ],
- "type": "object"
- }
- },
- "required": [
- "best",
- "amm_status",
- "clob",
- "amm"
- ],
- "type": "object"
- }
- },
- "required": [
- "base",
- "quote",
- "side",
- "depth",
- "amount",
- "filled",
- "partial",
- "insufficient_liquidity",
- "best_price",
- "avg_price",
- "slippage_pct",
- "transfer_fee_applied",
- "transfer_fee",
- "avg_price_after_fees",
- "venues",
- "meta"
- ],
- "type": "object"
-}New value: +null