forked from alpacahq/alpaca-trade-api-csharp
/
INewsArticle.cs
85 lines (72 loc) · 2.07 KB
/
INewsArticle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
namespace Alpaca.Markets;
/// <summary>
/// Encapsulates the basic news article information from Alpaca APIs.
/// </summary>
public interface INewsArticle
{
/// <summary>
/// Gets news article unique identifier.
/// </summary>
[UsedImplicitly]
public Int64 Id { get; }
/// <summary>
/// Gets headline or title of the article.
/// </summary>
[UsedImplicitly]
public String Headline { get; }
/// <summary>
/// Gets news article creation timestamp in UTC.
/// </summary>
[UsedImplicitly]
public DateTime CreatedAtUtc { get; }
/// <summary>
/// Gets news article updating timestamp in UTC.
/// </summary>
[UsedImplicitly]
public DateTime UpdatedAtUtc { get; }
/// <summary>
/// Gets original author of news article.
/// </summary>
[UsedImplicitly]
public String Author { get; }
/// <summary>
/// Gets summary text for the article (may be first sentence of content).
/// </summary>
[UsedImplicitly]
public String Summary { get; }
/// <summary>
/// Gets content of the news article (might contain HTML).
/// </summary>
[UsedImplicitly]
public String Content { get; }
/// <summary>
/// Gets URL of article (if applicable).
/// </summary>
[UsedImplicitly]
public Uri? ArticleUrl { get; }
/// <summary>
/// Gets source where the news originated from.
/// </summary>
[UsedImplicitly]
public String Source { get; }
/// <summary>
/// Gets list of related or mentioned symbols.
/// </summary>
[UsedImplicitly]
public IReadOnlyList<String> Symbols { get; }
/// <summary>
/// Gets the thumbnail image URL for the news article.
/// </summary>
[UsedImplicitly]
public Uri? ThumbImageUrl { get; }
/// <summary>
/// Gets the small image URL for the news article.
/// </summary>
[UsedImplicitly]
public Uri? SmallImageUrl { get; }
/// <summary>
/// Gets the large image URL for the news article.
/// </summary>
[UsedImplicitly]
public Uri? LargeImageUrl { get; }
}