changedInput schema / oneOf
Previous value: -[
- {
- "required": [
- "itemId"
- ]
- },
- {
- "required": [
- "name"
- ]
- }
-]New value: +[
+ {
+ "not": {
+ "required": [
+ "days"
+ ]
+ },
+ "properties": {
+ "source": {
+ "default": "jagex"
+ },
+ "view": {
+ "const": "observations"
+ }
+ }
+ },
+ {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "from"
+ ]
+ },
+ {
+ "required": [
+ "to"
+ ]
+ }
+ ]
+ },
+ "properties": {
+ "days": {
+ "default": 30
+ },
+ "source": {
+ "const": "weirdgloop",
+ "default": "weirdgloop"
+ },
+ "view": {
+ "const": "statistics"
+ }
+ },
+ "required": [
+ "view"
+ ]
+ }
+]
addedInput schema / properties / days
Added value: +{
+ "description": "Defaults to 30 trailing usable daily samples for statistics only; not a calendar-date range",
+ "maximum": 90,
+ "minimum": 7,
+ "type": "integer"
+}
changedInput schema / properties / itemId / description
Previous value: -"Grand Exchange item ID (provide itemId or name)"New value: +"Known GE item ID resolved with lookup_item"
removedInput schema / properties / name
Removed value: -{
- "description": "Item name (provide itemId or name)",
- "minLength": 1,
- "type": "string"
-}
removedInput schema / properties / source / default
Removed value: -"jagex"
changedInput schema / properties / source / description
Previous value: -"Provider/shape: Jagex daily+average maps (default), or raw Weirdgloop daily samples"New value: +"Observations: jagex by default or weirdgloop. Statistics: weirdgloop only, also the default for that view."
addedInput schema / properties / view
Added value: +{
+ "default": "observations",
+ "description": "Raw observations (original default) or computed Weirdgloop statistics",
+ "enum": [
+ "observations",
+ "statistics"
+ ],
+ "type": "string"
+}
addedInput schema / required
Added value: +[
+ "itemId"
+]
removedOutput schema / $schema
Removed value: -"https://json-schema.org/draft/2020-12/schema"
removedOutput schema / additionalProperties
Removed value: -true
addedOutput schema / anyOf
Added value: +[
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": true,
+ "oneOf": [
+ {
+ "required": [
+ "daily",
+ "average"
+ ]
+ },
+ {
+ "required": [
+ "itemId",
+ "source",
+ "samples"
+ ]
+ }
+ ],
+ "properties": {
+ "average": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "Jagex averaged guide prices in coins, keyed by Unix timestamp in milliseconds",
+ "type": "object"
+ },
+ "daily": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "Daily guide prices in coins, keyed by Unix timestamp in milliseconds",
+ "type": "object"
+ },
+ "itemId": {
+ "description": "Grand Exchange item ID",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "samples": {
+ "description": "Chronological usable observations; malformed timestamp/price rows are discarded, unreported volume omitted, and an entirely malformed nonempty feed is an error",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "price": {
+ "description": "Observed guide price in coins",
+ "minimum": 0,
+ "type": "number"
+ },
+ "timestamp": {
+ "description": "UTC Unix timestamp in milliseconds, not seconds",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "volume": {
+ "description": "Provider-reported daily volume, when available",
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "timestamp",
+ "price"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "const": "weirdgloop",
+ "description": "Present for the Weirdgloop sample-array variant"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "avgDailyVolume": {
+ "description": "Unweighted mean of reported daily volumes, rounded to a whole number; unreported values are excluded",
+ "type": "number"
+ },
+ "avgPrice": {
+ "description": "Average price in the window, rounded to whole coins",
+ "type": "number"
+ },
+ "changeAbs": {
+ "description": "latestPrice minus oldestPriceInWindow",
+ "type": "number"
+ },
+ "changePct": {
+ "description": "Percent change across the window, rounded to two decimals; 0 when the oldest price is 0",
+ "type": "number"
+ },
+ "itemId": {
+ "description": "Grand Exchange item ID",
+ "type": "integer"
+ },
+ "latestPrice": {
+ "description": "Newest price in the window, in coins",
+ "type": "number"
+ },
+ "maxPrice": {
+ "description": "Highest price in the window, in coins",
+ "type": "number"
+ },
+ "minPrice": {
+ "description": "Lowest price in the window, in coins",
+ "type": "number"
+ },
+ "name": {
+ "description": "Name supplied by the caller, when given",
+ "type": "string"
+ },
+ "oldestPriceInWindow": {
+ "description": "Oldest price in the window, in coins",
+ "type": "number"
+ },
+ "sampleCount": {
+ "description": "Daily samples inside the window",
+ "type": "integer"
+ },
+ "windowDays": {
+ "description": "Trailing window actually summarized",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "itemId",
+ "windowDays",
+ "sampleCount",
+ "latestPrice",
+ "oldestPriceInWindow",
+ "minPrice",
+ "maxPrice",
+ "avgPrice",
+ "changeAbs",
+ "changePct"
+ ],
+ "type": "object"
+ }
+]
removedOutput schema / oneOf
Removed value: -[
- {
- "required": [
- "daily",
- "average"
- ]
- },
- {
- "required": [
- "itemId",
- "source",
- "samples"
- ]
- }
-]
removedOutput schema / properties
Removed value: -{
- "average": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "Jagex averaged guide prices in coins, keyed by Unix timestamp in milliseconds",
- "type": "object"
- },
- "daily": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "Daily guide prices in coins, keyed by Unix timestamp in milliseconds",
- "type": "object"
- },
- "itemId": {
- "description": "Grand Exchange item ID",
- "minimum": 0,
- "type": "integer"
- },
- "samples": {
- "description": "Chronological usable observations; malformed timestamp/price rows are discarded, unreported volume omitted, and an entirely malformed nonempty feed is an error",
- "items": {
- "additionalProperties": false,
- "properties": {
- "price": {
- "description": "Observed guide price in coins",
- "minimum": 0,
- "type": "number"
- },
- "timestamp": {
- "description": "UTC Unix timestamp in milliseconds, not seconds",
- "minimum": 0,
- "type": "integer"
- },
- "volume": {
- "description": "Provider-reported daily volume, when available",
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "timestamp",
- "price"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "const": "weirdgloop",
- "description": "Present for the Weirdgloop sample-array variant"
- }
-}
removedOutput schema / required
Removed value: -[]