forked from alpacahq/alpaca-trade-api-csharp
/
IAnnouncement.cs
74 lines (62 loc) · 2.29 KB
/
IAnnouncement.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
namespace Alpaca.Markets;
/// <summary>
/// Encapsulates corporate action announcement information from Alpaca REST API.
/// </summary>
[CLSCompliant(false)]
[SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")]
public interface IAnnouncement
{
/// <summary>
/// Gets ID that is specific to a single announcement.
/// </summary>
Guid Id { get; }
/// <summary>
/// Gets ID that remains consistent across all announcements for the same corporate action.
/// Unlike <see cref="Id"/>, this can be used to connect multiple announcements to see how
/// the terms have changed throughout the lifecycle of the corporate action event.
/// </summary>
String CorporateActionId { get; }
/// <summary>
/// Gets corporate action type.
/// </summary>
CorporateActionType Type { get; }
/// <summary>
/// Gets corporate action sub-type.
/// </summary>
CorporateActionSubType SubType { get; }
/// <summary>
/// Gets symbol of the company initiating the announcement.
/// </summary>
String InitiatingSymbol { get; }
/// <summary>
/// Gets CUSIP of the company initiating the announcement.
/// </summary>
String InitiatingCusip { get; }
/// <summary>
/// Gets symbol of the child company involved in the announcement.
/// </summary>
String TargetSymbol { get; }
/// <summary>
/// Gets CUSIP of the child company involved in the announcement.
/// </summary>
String TargetCusip { get; }
/// <summary>
/// Gets the amount of cash to be paid per share held by an account on the record date.
/// </summary>
Decimal Cash { get; }
/// <summary>
/// Gets the denominator to determine any quantity change ratios in positions.
/// </summary>
Decimal OldRate { get; }
/// <summary>
/// Gets the numerator to determine any quantity change ratios in positions.
/// </summary>
Decimal NewRate { get; }
/// <summary>
/// Gets the corporate action date by date type or <c>null</c> if date not specified.
/// </summary>
/// <param name="dateType">Corporate action date type.</param>
/// <returns>Specific date for this corporate action if it's applicable and specified.</returns>
public DateOnly? GetDate(
CorporateActionDateType dateType);
}