Package markets.alpaca.client.ws
Class NewsSubscription
java.lang.Object
markets.alpaca.client.ws.NewsSubscription
Describes which symbols to subscribe to news for.
Use "*" to subscribe to news for all symbols.
var sub = NewsSubscription.builder()
.symbols("AAPL", "TSLA")
.build();
stream.subscribe(sub);
// Subscribe to everything:
stream.subscribe(NewsSubscription.builder().symbols("*").build());
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
symbols
-
isEmpty
public boolean isEmpty() -
builder
-