Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions paths/news.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,22 @@
- name: offset
in: query
required: false
description: The offset of the data. Maximum 9000; to reach older articles, narrow the period with from and to
description: The offset of the data. The sum of offset and limit must not exceed 10000; to reach older articles, narrow the period with from and to
schema:
type: integer
default: 0
minimum: 0
maximum: 9000
maximum: 10000
- name: direction
in: query
required: false
description: Sort order. 0 returns the newest articles first. 1 returns articles in the order they entered the database, so you can page forward through a period with offset without duplicates. With 1, from and to are required and the window between them must not exceed 31 days
schema:
type: integer
default: 0
enum:
- 0
- 1
- name: fmt
in: query
required: false
Expand Down Expand Up @@ -130,5 +140,7 @@
description: Unauthorized
'404':
description: No news articles found
'422':
description: Validation error, for example direction=1 without from and to, a from-to window longer than 31 days, or offset plus limit above 10000
tags:
- News
9 changes: 9 additions & 0 deletions scripts/postman-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,15 @@ folders:
t: "earnings"
limit: "10"
fmt: "json"
- name: "News — Forward Paging (direction=1)"
query_overrides:
s: "AAPL.US"
direction: "1"
from: "2025-01-01"
to: "2025-01-07"
limit: "10"
offset: "0"
fmt: "json"
- path: "/sentiments"
variants:
- name: "News Sentiment — AAPL.US, BTC-USD.CC"
Expand Down
Loading