.get_news
Fetches historical news stories published after an optional millisecond timestamp.
Example
begin = client.timestamp() - 24 * 60 * 60 * 1000
stories = client.news.get_news(begin=begin)
for story in stories:
print(story['time'], story['headline'])Parameters
begin
- Type:
int - Optional
- Default:
0
Only returns stories published after this millisecond timestamp.
Return type
list[dict]
Returns matching stories, or an empty list when none match. Story dictionaries can include:
| Key | Description |
|---|---|
id | Story identifier. |
time | Publication timestamp in milliseconds. |
effectiveTime | Timestamp at which the story became market-relevant. |
effectivePrice | Reference price associated with the story, when available. |
headline | Story headline. |
source | Publisher or source, when available. |
priority | Story priority. |
coins | Associated coin symbols. |
summary | Story summary, when available. |
link | Link to the original story, when available. |