@apifreaks/openapi-specs 0.4.17 → 0.4.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,7 +95,7 @@ paths:
95
95
  changePercent: -1.15
96
96
  unresolved:
97
97
  FAKESYM:
98
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
98
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
99
99
  headers:
100
100
  X-AF-Credits-Cost:
101
101
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -176,7 +176,7 @@ paths:
176
176
  message: The symbol is not supported, please visit the documentation for a list of supported symbols
177
177
  unresolved:
178
178
  FAKESYM:
179
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
179
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
180
180
  noData:
181
181
  summary: No data available for the given date range
182
182
  value:
@@ -0,0 +1,539 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Commodity Intraday Rates API
4
+ version: 2.0.0
5
+ description: Timestamped prices for one commodity on any UTC day, at an interval from one minute to one day. Each point is the single price recorded at that exact time, keyed by its ISO 8601 UTC timestamp. A response holds up to 100 points; when the day has more, `nextStartTime` is the value to send as `startTime` for the next page. Available only for commodities updated every second, every minute, or every 10 minutes.
6
+ contact:
7
+ name: APIFreaks Support
8
+ url: https://apifreaks.com/contact
9
+ email: support@apifreaks.com
10
+ servers:
11
+ - url: https://api.apifreaks.com/v2.0
12
+ description: Commodity Intraday Rates API Server
13
+ paths:
14
+ /commodity/rates/intraday:
15
+ get:
16
+ tags:
17
+ - Commodity APIs
18
+ summary: Get intraday commodity rates
19
+ description: Returns the prices of one commodity through a UTC day at the requested interval, keyed by UTC timestamp. Each request costs a flat 50 credits however many points it returns.
20
+ operationId: getCommodityIntradayRates
21
+ parameters:
22
+ - name: symbols
23
+ in: query
24
+ required: true
25
+ description: Exactly one commodity symbol. Case-insensitive. Sending two or more returns a 400. Only symbols updated every second, every minute, or every 10 minutes have intraday rates; symbols updated hourly or less often return a 400. Use the Commodity Symbols endpoint for all valid values.
26
+ schema:
27
+ type: string
28
+ - name: interval
29
+ in: query
30
+ required: true
31
+ description: Spacing between points. Case-insensitive. Symbols updated every 10 minutes accept only `10m`, `30m`, `1h`, `2h`, `4h`, `8h`, `12h`, `1d`.
32
+ schema:
33
+ type: string
34
+ enum:
35
+ - 1m
36
+ - 5m
37
+ - 10m
38
+ - 15m
39
+ - 30m
40
+ - 45m
41
+ - 1h
42
+ - 2h
43
+ - 4h
44
+ - 8h
45
+ - 12h
46
+ - 1d
47
+ - name: date
48
+ in: query
49
+ required: true
50
+ description: The UTC day to read, in `YYYY-MM-DD` format. Cannot be in the future. For today, points stop at the current UTC minute.
51
+ schema:
52
+ type: string
53
+ format: date
54
+ pattern: ^\d{4}-\d{2}-\d{2}$
55
+ - name: startTime
56
+ in: query
57
+ required: false
58
+ description: First mark of the window, as a 24-hour UTC time in `HH:mm`. Must fall on a mark of the interval (for example, `14:30` works for `5m` or `30m`, but not for `1h`). For `1d` it can only be `00:00`.
59
+ schema:
60
+ type: string
61
+ pattern: ^([01]\d|2[0-3]):[0-5]\d$
62
+ default: '00:00'
63
+ - name: metadata
64
+ in: query
65
+ required: false
66
+ description: Whether to include the `metadata` object. Pass `false` to receive only the prices.
67
+ schema:
68
+ type: boolean
69
+ default: true
70
+ responses:
71
+ '200':
72
+ description: Successful operation
73
+ content:
74
+ application/json:
75
+ schema:
76
+ $ref: '#/components/schemas/CommodityIntradayResponse'
77
+ examples:
78
+ hourlyPartOfDay:
79
+ summary: Hourly gold prices from 18:00 UTC
80
+ value:
81
+ success: true
82
+ symbol: XAU
83
+ date: '2026-10-14'
84
+ interval: 1h
85
+ startTime: '18:00'
86
+ count: 6
87
+ nextStartTime: null
88
+ rates:
89
+ '2026-10-14T18:00:00Z': 4084.75
90
+ '2026-10-14T19:00:00Z': 4097.03
91
+ '2026-10-14T20:00:00Z': 4101.92
92
+ '2026-10-14T21:00:00Z': 4105.72
93
+ '2026-10-14T22:00:00Z': 4105.72
94
+ '2026-10-14T23:00:00Z': 4106.41
95
+ metadata:
96
+ XAU:
97
+ unit: T.oz
98
+ quote: USD
99
+ firstPageOfMinuteData:
100
+ summary: First page of one-minute data, more pages available
101
+ value:
102
+ success: true
103
+ symbol: WTIOIL-FUT
104
+ date: '2026-10-14'
105
+ interval: 1m
106
+ startTime: '00:00'
107
+ count: 100
108
+ nextStartTime: '01:40'
109
+ rates:
110
+ '2026-10-14T00:00:00Z': 94.69
111
+ '2026-10-14T00:01:00Z': 94.81
112
+ '2026-10-14T00:02:00Z': 94.82
113
+ '2026-10-14T00:03:00Z': 94.82
114
+ '2026-10-14T00:04:00Z': 94.79
115
+ '2026-10-14T00:05:00Z': 94.8
116
+ '2026-10-14T00:06:00Z': 94.8
117
+ '2026-10-14T00:07:00Z': 94.78
118
+ '2026-10-14T00:08:00Z': 94.73
119
+ '2026-10-14T00:09:00Z': 94.73
120
+ '2026-10-14T00:10:00Z': 94.74
121
+ '2026-10-14T00:11:00Z': 94.72
122
+ '2026-10-14T00:12:00Z': 94.78
123
+ '2026-10-14T00:13:00Z': 94.81
124
+ '2026-10-14T00:14:00Z': 94.81
125
+ '2026-10-14T00:15:00Z': 94.72
126
+ '2026-10-14T00:16:00Z': 94.84
127
+ '2026-10-14T00:17:00Z': 94.98
128
+ '2026-10-14T00:18:00Z': 94.89
129
+ '2026-10-14T00:19:00Z': 94.83
130
+ '2026-10-14T00:20:00Z': 94.87
131
+ '2026-10-14T00:21:00Z': 94.86
132
+ '2026-10-14T00:22:00Z': 94.88
133
+ '2026-10-14T00:23:00Z': 94.9
134
+ '2026-10-14T00:24:00Z': 94.92
135
+ '2026-10-14T00:25:00Z': 95.01
136
+ '2026-10-14T00:26:00Z': 95.04
137
+ '2026-10-14T00:27:00Z': 94.98
138
+ '2026-10-14T00:28:00Z': 94.98
139
+ '2026-10-14T00:29:00Z': 95
140
+ '2026-10-14T00:30:00Z': 94.94
141
+ '2026-10-14T00:31:00Z': 94.99
142
+ '2026-10-14T00:32:00Z': 94.98
143
+ '2026-10-14T00:33:00Z': 94.97
144
+ '2026-10-14T00:34:00Z': 94.97
145
+ '2026-10-14T00:35:00Z': 94.99
146
+ '2026-10-14T00:36:00Z': 95
147
+ '2026-10-14T00:37:00Z': 95.02
148
+ '2026-10-14T00:38:00Z': 94.99
149
+ '2026-10-14T00:39:00Z': 94.93
150
+ '2026-10-14T00:40:00Z': 94.95
151
+ '2026-10-14T00:41:00Z': 94.99
152
+ '2026-10-14T00:42:00Z': 94.96
153
+ '2026-10-14T00:43:00Z': 94.94
154
+ '2026-10-14T00:44:00Z': 94.94
155
+ '2026-10-14T00:45:00Z': 94.95
156
+ '2026-10-14T00:46:00Z': 94.94
157
+ '2026-10-14T00:47:00Z': 94.94
158
+ '2026-10-14T00:48:00Z': 94.99
159
+ '2026-10-14T00:49:00Z': 94.97
160
+ '2026-10-14T00:50:00Z': 94.98
161
+ '2026-10-14T00:51:00Z': 95.04
162
+ '2026-10-14T00:52:00Z': 95.02
163
+ '2026-10-14T00:53:00Z': 95.06
164
+ '2026-10-14T00:54:00Z': 95.05
165
+ '2026-10-14T00:55:00Z': 95.03
166
+ '2026-10-14T00:56:00Z': 95.02
167
+ '2026-10-14T00:57:00Z': 95.02
168
+ '2026-10-14T00:58:00Z': 95.01
169
+ '2026-10-14T00:59:00Z': 95.09
170
+ '2026-10-14T01:00:00Z': 95.09
171
+ '2026-10-14T01:01:00Z': 95.24
172
+ '2026-10-14T01:02:00Z': 95.27
173
+ '2026-10-14T01:03:00Z': 95.24
174
+ '2026-10-14T01:04:00Z': 95.3
175
+ '2026-10-14T01:05:00Z': 95.38
176
+ '2026-10-14T01:06:00Z': 95.38
177
+ '2026-10-14T01:07:00Z': 95.29
178
+ '2026-10-14T01:08:00Z': 95.36
179
+ '2026-10-14T01:09:00Z': 95.31
180
+ '2026-10-14T01:10:00Z': 95.29
181
+ '2026-10-14T01:11:00Z': 95.4
182
+ '2026-10-14T01:12:00Z': 95.36
183
+ '2026-10-14T01:13:00Z': 95.27
184
+ '2026-10-14T01:14:00Z': 95.31
185
+ '2026-10-14T01:15:00Z': 95.35
186
+ '2026-10-14T01:16:00Z': 95.4
187
+ '2026-10-14T01:17:00Z': 95.37
188
+ '2026-10-14T01:18:00Z': 95.4
189
+ '2026-10-14T01:19:00Z': 95.4
190
+ '2026-10-14T01:20:00Z': 95.37
191
+ '2026-10-14T01:21:00Z': 95.35
192
+ '2026-10-14T01:22:00Z': 95.35
193
+ '2026-10-14T01:23:00Z': 95.33
194
+ '2026-10-14T01:24:00Z': 95.3
195
+ '2026-10-14T01:25:00Z': 95.28
196
+ '2026-10-14T01:26:00Z': 95.29
197
+ '2026-10-14T01:27:00Z': 95.27
198
+ '2026-10-14T01:28:00Z': 95.29
199
+ '2026-10-14T01:29:00Z': 95.3
200
+ '2026-10-14T01:30:00Z': 95.35
201
+ '2026-10-14T01:31:00Z': 95.17
202
+ '2026-10-14T01:32:00Z': 95.18
203
+ '2026-10-14T01:33:00Z': 95.18
204
+ '2026-10-14T01:34:00Z': 95.2
205
+ '2026-10-14T01:35:00Z': 95.23
206
+ '2026-10-14T01:36:00Z': 95.21
207
+ '2026-10-14T01:37:00Z': 95.25
208
+ '2026-10-14T01:38:00Z': 95.25
209
+ '2026-10-14T01:39:00Z': 95.29
210
+ metadata:
211
+ WTIOIL-FUT:
212
+ unit: Bbl
213
+ quote: USD
214
+ withoutMetadata:
215
+ summary: metadata=false returns only the prices
216
+ value:
217
+ success: true
218
+ symbol: XAU
219
+ date: '2026-10-14'
220
+ interval: 4h
221
+ startTime: '12:00'
222
+ count: 3
223
+ nextStartTime: null
224
+ rates:
225
+ '2026-10-14T12:00:00Z': 4139.81
226
+ '2026-10-14T16:00:00Z': 4080.88
227
+ '2026-10-14T20:00:00Z': 4101.92
228
+ symbolAliasAnswered:
229
+ summary: A symbol alias is answered under the matching symbol
230
+ value:
231
+ success: true
232
+ symbol: XAU
233
+ date: '2026-10-14'
234
+ interval: 4h
235
+ startTime: '12:00'
236
+ count: 3
237
+ nextStartTime: null
238
+ rates:
239
+ '2026-10-14T12:00:00Z': 4139.81
240
+ '2026-10-14T16:00:00Z': 4080.88
241
+ '2026-10-14T20:00:00Z': 4101.92
242
+ metadata:
243
+ XAU:
244
+ unit: T.oz
245
+ quote: USD
246
+ unresolved:
247
+ GOLD:
248
+ message: GOLD is not a symbol code used by this API. Gold is available as "XAU", so its rate was returned under that symbol.
249
+ resolvedTo: XAU
250
+ headers:
251
+ X-AF-Credits-Cost:
252
+ $ref: '#/components/headers/X-AF-Credits-Cost'
253
+ '400':
254
+ description: 'Bad Request: Missing or invalid parameters, or the symbol has no intraday rates'
255
+ content:
256
+ application/json:
257
+ schema:
258
+ $ref: '#/components/schemas/ErrorResponse'
259
+ examples:
260
+ missingSymbols:
261
+ summary: Missing required symbols parameter
262
+ value:
263
+ error: Invalid Param Exception
264
+ message: please pass correct parameters
265
+ path: /v2.0/commodity/rates/intraday
266
+ status: 400
267
+ timestamp: '2026-10-27T09:47:11.299Z'
268
+ missingInterval:
269
+ summary: Missing required interval parameter
270
+ value:
271
+ error: Invalid Param Exception
272
+ message: please pass correct parameters
273
+ path: /v2.0/commodity/rates/intraday
274
+ status: 400
275
+ timestamp: '2026-10-27T09:47:11.299Z'
276
+ missingDate:
277
+ summary: Missing required date parameter
278
+ value:
279
+ error: Invalid Param Exception
280
+ message: please pass correct parameters
281
+ path: /v2.0/commodity/rates/intraday
282
+ status: 400
283
+ timestamp: '2026-10-27T09:47:11.299Z'
284
+ multipleSymbols:
285
+ summary: More than one symbol sent
286
+ value:
287
+ timestamp: '2026-10-27T09:12:41.901Z'
288
+ path: /rates/intraday
289
+ code: 400
290
+ error: VALIDATION_ERROR
291
+ message: intraday accepts exactly one symbol in the symbols parameter
292
+ invalidInterval:
293
+ summary: Interval not available for the symbol
294
+ value:
295
+ timestamp: '2026-10-27T10:05:54.904Z'
296
+ path: /rates/intraday
297
+ code: 400
298
+ error: VALIDATION_ERROR
299
+ message: 'Invalid interval ''5m'' for TIOC: valid intervals for TIOC are 10m, 30m, 1h, 2h, 4h, 8h, 12h, 1d'
300
+ invalidDateFormat:
301
+ summary: Date is not in YYYY-MM-DD format
302
+ value:
303
+ timestamp: '2026-10-27T09:12:42.377Z'
304
+ path: /rates/intraday
305
+ code: 400
306
+ error: VALIDATION_ERROR
307
+ message: 'Invalid date format: expected YYYY-MM-DD'
308
+ dateNotExist:
309
+ summary: Date does not exist on the calendar
310
+ value:
311
+ timestamp: '2026-10-27T09:12:42.619Z'
312
+ path: /rates/intraday
313
+ code: 400
314
+ error: VALIDATION_ERROR
315
+ message: 'Invalid Date: The provided date does not exist.'
316
+ futureDate:
317
+ summary: Date is in the future
318
+ value:
319
+ timestamp: '2026-10-27T09:12:42.858Z'
320
+ path: /rates/intraday
321
+ code: 400
322
+ error: VALIDATION_ERROR
323
+ message: 'Invalid date: intraday rates are not available for future dates'
324
+ invalidStartTime:
325
+ summary: startTime is not a 24-hour HH:mm time
326
+ value:
327
+ timestamp: '2026-10-27T09:12:43.093Z'
328
+ path: /rates/intraday
329
+ code: 400
330
+ error: VALIDATION_ERROR
331
+ message: 'Invalid startTime: expected a 24-hour time in HH:mm (UTC), e.g. 14:30'
332
+ startTimeNotOnMark:
333
+ summary: startTime does not fall on a mark of the interval
334
+ value:
335
+ timestamp: '2026-10-27T09:12:43.330Z'
336
+ path: /rates/intraday
337
+ code: 400
338
+ error: VALIDATION_ERROR
339
+ message: 'Invalid startTime ''14:30'': it must fall on a 1h mark (minutes since 00:00 divisible by 60)'
340
+ noIntradayForSymbol:
341
+ summary: Symbol is updated hourly or less often
342
+ value:
343
+ timestamp: '2026-10-27T09:12:43.571Z'
344
+ path: /rates/intraday
345
+ code: 400
346
+ error: BAD_REQUEST
347
+ message: 'Intraday rates are not available for NG-EU: they exist only for symbols updated every second, minute or 10 minutes'
348
+ unknownInterval:
349
+ summary: Interval is not a supported value
350
+ value:
351
+ timestamp: '2026-10-27T09:45:36.355Z'
352
+ path: /rates/intraday
353
+ code: 400
354
+ error: VALIDATION_ERROR
355
+ message: 'Invalid interval ''7m'': use one of 1m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 4h, 8h, 12h, 1d'
356
+ headers:
357
+ X-AF-Credits-Cost:
358
+ $ref: '#/components/headers/X-AF-Credits-Cost'
359
+ '404':
360
+ description: 'Not found: Symbol not supported, or no data for the requested window'
361
+ content:
362
+ application/json:
363
+ schema:
364
+ $ref: '#/components/schemas/ErrorResponse'
365
+ examples:
366
+ symbolNotFound:
367
+ summary: Symbol Not Found
368
+ value:
369
+ timestamp: '2026-10-27T09:12:44.012Z'
370
+ path: /rates/intraday
371
+ code: 404
372
+ error: SYMBOL_NOT_FOUND
373
+ message: The symbol is not supported, please visit the documentation for a list of supported symbols
374
+ unresolved:
375
+ FAKESYM:
376
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
377
+ noDataInWindow:
378
+ summary: No intraday data for the specified window
379
+ value:
380
+ timestamp: '2026-10-27T09:12:44.268Z'
381
+ path: /rates/intraday
382
+ code: 404
383
+ error: DATA_NOT_FOUND
384
+ message: No intraday data found for the specified window
385
+ headers:
386
+ X-AF-Credits-Cost:
387
+ $ref: '#/components/headers/X-AF-Credits-Cost'
388
+ components:
389
+ securitySchemes:
390
+ ApiKeyAuthHeader:
391
+ type: apiKey
392
+ in: header
393
+ name: X-apiKey
394
+ description: Pass your API key via the X-apiKey request header.
395
+ ApiKeyAuthQuery:
396
+ type: apiKey
397
+ in: query
398
+ name: apiKey
399
+ description: Pass your API key via the apiKey query parameter.
400
+ schemas:
401
+ CommodityIntradayResponse:
402
+ type: object
403
+ description: Intraday response containing the prices of the requested symbol keyed by UTC timestamp.
404
+ required:
405
+ - success
406
+ - symbol
407
+ - date
408
+ - interval
409
+ - startTime
410
+ - count
411
+ - nextStartTime
412
+ - rates
413
+ properties:
414
+ success:
415
+ type: boolean
416
+ description: '`true` for successful requests.'
417
+ symbol:
418
+ type: string
419
+ description: The symbol the prices belong to.
420
+ date:
421
+ type: string
422
+ description: 'The UTC day requested. Format: `YYYY-MM-DD`.'
423
+ pattern: ^\d{4}-\d{2}-\d{2}$
424
+ interval:
425
+ type: string
426
+ description: The interval used, in lowercase form (`5M` comes back as `5m`).
427
+ enum:
428
+ - 1m
429
+ - 5m
430
+ - 10m
431
+ - 15m
432
+ - 30m
433
+ - 45m
434
+ - 1h
435
+ - 2h
436
+ - 4h
437
+ - 8h
438
+ - 12h
439
+ - 1d
440
+ startTime:
441
+ type: string
442
+ description: First mark of the window, `HH:mm` UTC.
443
+ pattern: ^([01]\d|2[0-3]):[0-5]\d$
444
+ count:
445
+ type: integer
446
+ description: Number of points in `rates` (at most 100).
447
+ maximum: 100
448
+ minimum: 0
449
+ nextStartTime:
450
+ anyOf:
451
+ - type: string
452
+ pattern: ^([01]\d|2[0-3]):[0-5]\d$
453
+ - type: 'null'
454
+ description: '`HH:mm` value to pass as `startTime` for the next page, or `null` when the window reached the end of the day (or the current minute, for today).'
455
+ rates:
456
+ type: object
457
+ description: Prices keyed by ISO 8601 UTC timestamp (for example `2026-10-14T18:00:00Z`), in ascending order. Values are rounded to two decimals. A mark with no recorded price is left out rather than filled in.
458
+ additionalProperties:
459
+ type: number
460
+ format: float
461
+ metadata:
462
+ type: object
463
+ description: Unit and currency of the prices, keyed by the requested symbol. Omitted when the request sets `metadata=false`.
464
+ additionalProperties:
465
+ $ref: '#/components/schemas/CommodityIntradayMetadata'
466
+ unresolved:
467
+ type: object
468
+ description: Present when the symbol you sent was matched to a single alternative (200, with `resolvedTo`, for example `GOLD` answered as `XAU`), or not recognized at all (404, with a `suggestions` array when close matches exist).
469
+ additionalProperties:
470
+ type: object
471
+ properties:
472
+ message:
473
+ type: string
474
+ description: Detail message explaining how this symbol was handled.
475
+ resolvedTo:
476
+ type: string
477
+ description: The supported symbol the request was answered with.
478
+ suggestions:
479
+ type: array
480
+ description: Optional list of supported symbols that closely match the unresolved symbol.
481
+ items:
482
+ type: string
483
+ CommodityIntradayMetadata:
484
+ type: object
485
+ description: Unit and currency of the prices for one commodity.
486
+ properties:
487
+ unit:
488
+ type: string
489
+ description: Unit the commodity is priced in (for example `T.oz` or `Bbl`).
490
+ quote:
491
+ type: string
492
+ description: Currency the prices are quoted in (for example `USD`).
493
+ ErrorResponse:
494
+ type: object
495
+ description: 'Standard error envelope returned by the API on failed requests. Gateway-level validation errors populate status; commodity-service errors (date/symbol/data validation) populate code instead: check whichever is present.'
496
+ required:
497
+ - message
498
+ properties:
499
+ error:
500
+ type: string
501
+ description: Short error category or exception type (e.g., Invalid Param Exception, VALIDATION_ERROR, SYMBOL_NOT_FOUND, DATA_NOT_FOUND).
502
+ message:
503
+ type: string
504
+ description: Human-readable error message describing the failure.
505
+ path:
506
+ type: string
507
+ description: API endpoint path (gateway errors) or internal service path (commodity-service errors) that produced the error.
508
+ status:
509
+ type: integer
510
+ description: HTTP status code. Present on gateway-level errors.
511
+ code:
512
+ type: integer
513
+ description: HTTP status code. Present on commodity-service errors instead of status.
514
+ timestamp:
515
+ type: string
516
+ format: date-time
517
+ description: Timestamp when the error occurred (ISO 8601).
518
+ unresolved:
519
+ type: object
520
+ description: Present only on SYMBOL_NOT_FOUND errors. Map of each unresolved symbol to a detail message and optional close-match suggestions.
521
+ additionalProperties:
522
+ type: object
523
+ properties:
524
+ message:
525
+ type: string
526
+ description: Detail message explaining why this symbol was not resolved.
527
+ suggestions:
528
+ type: array
529
+ description: Optional list of supported symbols that closely match the unresolved symbol.
530
+ items:
531
+ type: string
532
+ headers:
533
+ X-AF-Credits-Cost:
534
+ description: Specifies the number of credits consumed by the current request.
535
+ schema:
536
+ type: integer
537
+ security:
538
+ - ApiKeyAuthHeader: []
539
+ - ApiKeyAuthQuery: []
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: Live Commodity Prices API - Real Time Market Insights
4
4
  version: 2.0.0
5
- description: Real-time prices for 245+ commodities in a single request, updated on a rolling ~1 minute cadence. Optionally convert prices into a target quote currency. Unresolved symbols degrade to a 206 partial response instead of failing the whole request.
5
+ description: Real-time prices for 520+ commodities in a single request, updated on a rolling ~1 minute cadence. Optionally convert prices into a target quote currency. Unresolved symbols degrade to a 206 partial response instead of failing the whole request.
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -97,7 +97,7 @@ paths:
97
97
  quote: USD
98
98
  unresolved:
99
99
  FAKESYM:
100
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
100
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
101
101
  partialWithSuggestions:
102
102
  summary: Unresolved symbol with close-match suggestions
103
103
  value:
@@ -171,7 +171,7 @@ paths:
171
171
  message: The symbol is not supported, please visit the documentation for a list of supported symbols
172
172
  unresolved:
173
173
  FAKESYM:
174
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
174
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
175
175
  symbolNotFoundWithSuggestions:
176
176
  summary: Symbol Not Found, with close-match suggestions
177
177
  value:
@@ -2,7 +2,7 @@ openapi: 3.1.1
2
2
  info:
3
3
  title: Commodity Symbols API Reference
4
4
  version: 2.0.0
5
- description: 'Full catalog of 245+ supported commodities across Metals, Energy, Agriculture, Industrial, Raw Materials, Oils and Meals, Textiles, Meats, Poultry, and Livestock, with pricing currency, unit, and update interval per symbol. Deprecated symbols stay listed with `status: "inactive"` and a `deprecationDate`.'
5
+ description: 'Full catalog of 520+ supported commodities across Metals, Energy, Agriculture, Industrial, Raw Materials, Oils and Meals, Textiles, Meats, Poultry, and Livestock, with pricing currency, unit, and update interval per symbol. Deprecated symbols stay listed with `status: "inactive"` and a `deprecationDate`.'
6
6
  contact:
7
7
  name: APIFreaks Support
8
8
  url: https://apifreaks.com/contact
@@ -141,7 +141,7 @@ paths:
141
141
  close: 2671.8
142
142
  unresolved:
143
143
  FAKESYM:
144
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
144
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
145
145
  headers:
146
146
  X-AF-Credits-Cost:
147
147
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -222,7 +222,7 @@ paths:
222
222
  message: The symbol is not supported, please visit the documentation for a list of supported symbols
223
223
  unresolved:
224
224
  FAKESYM:
225
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
225
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
226
226
  dataNotFound:
227
227
  summary: No data available for the given date range
228
228
  value:
@@ -102,7 +102,7 @@ paths:
102
102
  close: 2689.44
103
103
  unresolved:
104
104
  FAKESYM:
105
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
105
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
106
106
  headers:
107
107
  X-AF-Credits-Cost:
108
108
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -175,7 +175,7 @@ paths:
175
175
  message: The symbol is not supported, please visit the documentation for a list of supported symbols
176
176
  unresolved:
177
177
  FAKESYM:
178
- message: We don't support this symbol, please visit our symbols page to see supported symbols.
178
+ message: We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses.
179
179
  rateNotFound:
180
180
  summary: Rate Not Found
181
181
  value:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apifreaks/openapi-specs",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "Public OpenAPI 3.1 specifications for all APIFreaks API products.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/specs/README.md CHANGED
@@ -179,6 +179,7 @@ Grouped by folder. Slug is the stable id; the name links to the file.
179
179
  | `historical-commodity-prices` | [Historical Commodity Prices](commodity/historical-commodity-prices.json) |
180
180
  | `commodity-fluctuation` | [Commodity Fluctuation](commodity/commodity-fluctuation.json) |
181
181
  | `commodity-time-series` | [Commodity Time Series](commodity/commodity-time-series.json) |
182
+ | `commodity-intraday-rates` | [Commodity Intraday Rates](commodity/commodity-intraday-rates.json) |
182
183
  | `commodity-symbols` | [Commodity Symbols](commodity/commodity-symbols.json) |
183
184
 
184
185
  ### Financial
@@ -127,7 +127,7 @@
127
127
  },
128
128
  "unresolved": {
129
129
  "FAKESYM": {
130
- "message": "We don't support this symbol, please visit our symbols page to see supported symbols."
130
+ "message": "We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses."
131
131
  }
132
132
  }
133
133
  }
@@ -243,7 +243,7 @@
243
243
  "message": "The symbol is not supported, please visit the documentation for a list of supported symbols",
244
244
  "unresolved": {
245
245
  "FAKESYM": {
246
- "message": "We don't support this symbol, please visit our symbols page to see supported symbols."
246
+ "message": "We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses."
247
247
  }
248
248
  }
249
249
  }