You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: finfeedapi/prediction-markets-api-rest/spec/openapi.json
+39-4Lines changed: 39 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -337,10 +337,12 @@
337
337
"Market Activity"
338
338
],
339
339
"summary": "Returns recent trades and recent quotes for a market.",
340
+
"description": "Trades and quotes are returned as separate lists. The `limit` applies independently to each list\n(default 100, max 10000 per list).",
340
341
"parameters": [
341
342
{
342
343
"name": "exchange_id",
343
344
"in": "path",
345
+
"description": "The unique identifier of the exchange.",
344
346
"required": true,
345
347
"schema": {
346
348
"type": "string"
@@ -349,10 +351,21 @@
349
351
{
350
352
"name": "market_id",
351
353
"in": "path",
354
+
"description": "The unique identifier of the market, including the outcome suffix.",
352
355
"required": true,
353
356
"schema": {
354
357
"type": "string"
355
358
}
359
+
},
360
+
{
361
+
"name": "limit",
362
+
"in": "query",
363
+
"description": "Maximum number of trades and quotes to return in each list (1-10000, default 100)",
364
+
"schema": {
365
+
"type": "integer",
366
+
"format": "int32",
367
+
"default": 100
368
+
}
356
369
}
357
370
],
358
371
"responses": {
@@ -393,7 +406,7 @@
393
406
"Market Activity"
394
407
],
395
408
"summary": "Returns historical trades for a market from flat files.",
396
-
"description": "Retrieves historical trade data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each trade also includes time_exchange showing\nwhen the trade actually occurred on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi.",
409
+
"description": "Retrieves historical trade data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\nThe `limit` parameter applies in both cases (default 100, max 10000), including when `date` selects a full day.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each trade also includes time_exchange showing\nwhen the trade actually occurred on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi.",
397
410
"parameters": [
398
411
{
399
412
"name": "exchange_id",
@@ -414,27 +427,31 @@
414
427
{
415
428
"name": "date",
416
429
"in": "query",
430
+
"description": "Full day in ISO 8601 or YYYY-MM-DD (mutually exclusive with time_start/time_end)",
417
431
"schema": {
418
432
"type": "string"
419
433
}
420
434
},
421
435
{
422
436
"name": "time_start",
423
437
"in": "query",
438
+
"description": "Range start in ISO 8601 (required if date is omitted)",
424
439
"schema": {
425
440
"type": "string"
426
441
}
427
442
},
428
443
{
429
444
"name": "time_end",
430
445
"in": "query",
446
+
"description": "Range end in ISO 8601 (optional)",
431
447
"schema": {
432
448
"type": "string"
433
449
}
434
450
},
435
451
{
436
452
"name": "limit",
437
453
"in": "query",
454
+
"description": "Maximum number of trades to return (1-10000, default 100). Applies even when date selects a full day.",
438
455
"schema": {
439
456
"type": "integer",
440
457
"format": "int32",
@@ -489,7 +506,7 @@
489
506
"Market Activity"
490
507
],
491
508
"summary": "Returns historical quotes for a market from flat files.",
492
-
"description": "Retrieves historical quote (bid/ask) data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each quote also includes time_exchange showing\nwhen the quote was created on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi.",
509
+
"description": "Retrieves historical quote (bid/ask) data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\nThe `limit` parameter applies in both cases (default 100, max 10000), including when `date` selects a full day.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each quote also includes time_exchange showing\nwhen the quote was created on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi.",
493
510
"parameters": [
494
511
{
495
512
"name": "exchange_id",
@@ -510,27 +527,31 @@
510
527
{
511
528
"name": "date",
512
529
"in": "query",
530
+
"description": "Full day in ISO 8601 or YYYY-MM-DD (mutually exclusive with time_start/time_end)",
513
531
"schema": {
514
532
"type": "string"
515
533
}
516
534
},
517
535
{
518
536
"name": "time_start",
519
537
"in": "query",
538
+
"description": "Range start in ISO 8601 (required if date is omitted)",
520
539
"schema": {
521
540
"type": "string"
522
541
}
523
542
},
524
543
{
525
544
"name": "time_end",
526
545
"in": "query",
546
+
"description": "Range end in ISO 8601 (optional)",
527
547
"schema": {
528
548
"type": "string"
529
549
}
530
550
},
531
551
{
532
552
"name": "limit",
533
553
"in": "query",
554
+
"description": "Maximum number of quotes to return (1-10000, default 100). Applies even when date selects a full day.",
534
555
"schema": {
535
556
"type": "integer",
536
557
"format": "int32",
@@ -1202,7 +1223,7 @@
1202
1223
"OHLCV"
1203
1224
],
1204
1225
"summary": "Historical data for an exchange",
1205
-
"description": "Get OHLCV timeseries data for an exchange, returned in time ascending order.",
1226
+
"description": "Get OHLCV timeseries data for an exchange, returned in time ascending order.\nTime range is limited to 24 hours. Use `limit` to cap the number of market rows returned.",
1206
1227
"parameters": [
1207
1228
{
1208
1229
"name": "exchange_id",
@@ -1237,6 +1258,16 @@
1237
1258
"schema": {
1238
1259
"type": "string"
1239
1260
}
1261
+
},
1262
+
{
1263
+
"name": "limit",
1264
+
"in": "query",
1265
+
"description": "Maximum number of market rows to return (1-10000, default 100)",
1266
+
"schema": {
1267
+
"type": "integer",
1268
+
"format": "int32",
1269
+
"default": 100
1270
+
}
1240
1271
}
1241
1272
],
1242
1273
"responses": {
@@ -1582,7 +1613,7 @@
1582
1613
"Orderbooks"
1583
1614
],
1584
1615
"summary": "Returns historical orderbook limit orders for a market from flat files.",
1585
-
"description": "Retrieves historical limit order data from flat files stored in external storage (S3).\nReturns raw limit order updates (adds, updates, deletes) rather than reconstructed snapshots.\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each order also includes time_exchange showing\nwhen the order was created/updated on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi.",
1616
+
"description": "Retrieves historical limit order data from flat files stored in external storage (S3).\nReturns raw limit order updates (adds, updates, deletes) rather than reconstructed snapshots.\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\nThe `limit` parameter applies in both cases (default 100, max 10000), including when `date` selects a full day.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each order also includes time_exchange showing\nwhen the order was created/updated on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi.",
1586
1617
"parameters": [
1587
1618
{
1588
1619
"name": "exchange_id",
@@ -1603,27 +1634,31 @@
1603
1634
{
1604
1635
"name": "date",
1605
1636
"in": "query",
1637
+
"description": "Full day in ISO 8601 or YYYY-MM-DD (mutually exclusive with time_start/time_end)",
1606
1638
"schema": {
1607
1639
"type": "string"
1608
1640
}
1609
1641
},
1610
1642
{
1611
1643
"name": "time_start",
1612
1644
"in": "query",
1645
+
"description": "Range start in ISO 8601 (required if date is omitted)",
1613
1646
"schema": {
1614
1647
"type": "string"
1615
1648
}
1616
1649
},
1617
1650
{
1618
1651
"name": "time_end",
1619
1652
"in": "query",
1653
+
"description": "Range end in ISO 8601 (optional)",
1620
1654
"schema": {
1621
1655
"type": "string"
1622
1656
}
1623
1657
},
1624
1658
{
1625
1659
"name": "limit",
1626
1660
"in": "query",
1661
+
"description": "Maximum number of limit order updates to return (1-10000, default 100). Applies even when date selects a full day.",
Copy file name to clipboardExpand all lines: finfeedapi/prediction-markets-api-rest/spec/openapi.yaml
+33-4Lines changed: 33 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -254,17 +254,27 @@ paths:
254
254
tags:
255
255
- Market Activity
256
256
summary: Returns recent trades and recent quotes for a market.
257
+
description: "Trades and quotes are returned as separate lists. The `limit` applies independently to each list\n(default 100, max 10000 per list)."
257
258
parameters:
258
259
- name: exchange_id
259
260
in: path
261
+
description: The unique identifier of the exchange.
260
262
required: true
261
263
schema:
262
264
type: string
263
265
- name: market_id
264
266
in: path
267
+
description: 'The unique identifier of the market, including the outcome suffix.'
265
268
required: true
266
269
schema:
267
270
type: string
271
+
- name: limit
272
+
in: query
273
+
description: 'Maximum number of trades and quotes to return in each list (1-10000, default 100)'
274
+
schema:
275
+
type: integer
276
+
format: int32
277
+
default: 100
268
278
responses:
269
279
'200':
270
280
description: Recent trades and quotes (lists may be empty).
@@ -288,7 +298,7 @@ paths:
288
298
tags:
289
299
- Market Activity
290
300
summary: Returns historical trades for a market from flat files.
291
-
description: "Retrieves historical trade data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each trade also includes time_exchange showing\nwhen the trade actually occurred on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi."
301
+
description: "Retrieves historical trade data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\nThe `limit` parameter applies in both cases (default 100, max 10000), including when `date` selects a full day.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each trade also includes time_exchange showing\nwhen the trade actually occurred on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi."
292
302
parameters:
293
303
- name: exchange_id
294
304
in: path
@@ -302,18 +312,22 @@ paths:
302
312
type: string
303
313
- name: date
304
314
in: query
315
+
description: Full day in ISO 8601 or YYYY-MM-DD (mutually exclusive with time_start/time_end)
305
316
schema:
306
317
type: string
307
318
- name: time_start
308
319
in: query
320
+
description: Range start in ISO 8601 (required if date is omitted)
309
321
schema:
310
322
type: string
311
323
- name: time_end
312
324
in: query
325
+
description: Range end in ISO 8601 (optional)
313
326
schema:
314
327
type: string
315
328
- name: limit
316
329
in: query
330
+
description: 'Maximum number of trades to return (1-10000, default 100). Applies even when date selects a full day.'
317
331
schema:
318
332
type: integer
319
333
format: int32
@@ -347,7 +361,7 @@ paths:
347
361
tags:
348
362
- Market Activity
349
363
summary: Returns historical quotes for a market from flat files.
350
-
description: "Retrieves historical quote (bid/ask) data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each quote also includes time_exchange showing\nwhen the quote was created on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi."
364
+
description: "Retrieves historical quote (bid/ask) data from flat files stored in external storage (S3).\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\nThe `limit` parameter applies in both cases (default 100, max 10000), including when `date` selects a full day.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each quote also includes time_exchange showing\nwhen the quote was created on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi."
351
365
parameters:
352
366
- name: exchange_id
353
367
in: path
@@ -361,18 +375,22 @@ paths:
361
375
type: string
362
376
- name: date
363
377
in: query
378
+
description: Full day in ISO 8601 or YYYY-MM-DD (mutually exclusive with time_start/time_end)
364
379
schema:
365
380
type: string
366
381
- name: time_start
367
382
in: query
383
+
description: Range start in ISO 8601 (required if date is omitted)
368
384
schema:
369
385
type: string
370
386
- name: time_end
371
387
in: query
388
+
description: Range end in ISO 8601 (optional)
372
389
schema:
373
390
type: string
374
391
- name: limit
375
392
in: query
393
+
description: 'Maximum number of quotes to return (1-10000, default 100). Applies even when date selects a full day.'
376
394
schema:
377
395
type: integer
378
396
format: int32
@@ -895,7 +913,7 @@ paths:
895
913
tags:
896
914
- OHLCV
897
915
summary: Historical data for an exchange
898
-
description: 'Get OHLCV timeseries data for an exchange, returned in time ascending order.'
916
+
description: "Get OHLCV timeseries data for an exchange, returned in time ascending order.\nTime range is limited to 24 hours. Use `limit` to cap the number of market rows returned."
899
917
parameters:
900
918
- name: exchange_id
901
919
in: path
@@ -919,6 +937,13 @@ paths:
919
937
description: Timeseries ending time in ISO 8601
920
938
schema:
921
939
type: string
940
+
- name: limit
941
+
in: query
942
+
description: 'Maximum number of market rows to return (1-10000, default 100)'
943
+
schema:
944
+
type: integer
945
+
format: int32
946
+
default: 100
922
947
responses:
923
948
'200':
924
949
description: successful operation
@@ -1146,7 +1171,7 @@ paths:
1146
1171
tags:
1147
1172
- Orderbooks
1148
1173
summary: Returns historical orderbook limit orders for a market from flat files.
1149
-
description: "Retrieves historical limit order data from flat files stored in external storage (S3).\nReturns raw limit order updates (adds, updates, deletes) rather than reconstructed snapshots.\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each order also includes time_exchange showing\nwhen the order was created/updated on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi."
1174
+
description: "Retrieves historical limit order data from flat files stored in external storage (S3).\nReturns raw limit order updates (adds, updates, deletes) rather than reconstructed snapshots.\nSupports hourly granularity with automatic fallback to daily files.\nUse either 'date' for full day or 'time_start'/'time_end' for specific time ranges.\nThe `limit` parameter applies in both cases (default 100, max 10000), including when `date` selects a full day.\n\n**Important:** Results are filtered by data processing time (time_coinapi) - the time when CoinAPI\nreceived and processed the data from the exchange. Each order also includes time_exchange showing\nwhen the order was created/updated on the exchange. Due to API polling delays, time_exchange may be\nearlier than time_coinapi."
1150
1175
parameters:
1151
1176
- name: exchange_id
1152
1177
in: path
@@ -1160,18 +1185,22 @@ paths:
1160
1185
type: string
1161
1186
- name: date
1162
1187
in: query
1188
+
description: Full day in ISO 8601 or YYYY-MM-DD (mutually exclusive with time_start/time_end)
1163
1189
schema:
1164
1190
type: string
1165
1191
- name: time_start
1166
1192
in: query
1193
+
description: Range start in ISO 8601 (required if date is omitted)
1167
1194
schema:
1168
1195
type: string
1169
1196
- name: time_end
1170
1197
in: query
1198
+
description: Range end in ISO 8601 (optional)
1171
1199
schema:
1172
1200
type: string
1173
1201
- name: limit
1174
1202
in: query
1203
+
description: 'Maximum number of limit order updates to return (1-10000, default 100). Applies even when date selects a full day.'
0 commit comments