-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionsStrikesResponse.java
More file actions
31 lines (26 loc) · 1 KB
/
Copy pathOptionsStrikesResponse.java
File metadata and controls
31 lines (26 loc) · 1 KB
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
package com.marketdata.sdk;
import com.marketdata.sdk.options.ExpirationStrikes;
import java.time.ZonedDateTime;
import java.util.List;
import org.jspecify.annotations.Nullable;
/**
* Response for {@code options.strikes}: {@link #values()} is the per-expiration strike lists. The
* endpoint also carries an {@code updated} timestamp, exposed via {@link #updated()} ({@code null}
* on the {@code no_data} envelope). Construct only through the resource façade.
*/
public final class OptionsStrikesResponse
extends AbstractMarketDataResponse<List<ExpirationStrikes>> {
private final @Nullable ZonedDateTime updated;
OptionsStrikesResponse(
List<ExpirationStrikes> values,
@Nullable ZonedDateTime updated,
HttpResponseEnvelope envelope,
Format format) {
super(values, envelope, format);
this.updated = updated;
}
/** When the strike table was last refreshed, or {@code null} when the API omitted it. */
public @Nullable ZonedDateTime updated() {
return updated;
}
}