public class DataClient extends Object implements IDataClient
| Constructor and Description |
|---|
DataClient(HttpApiClient apiClient) |
DataClient(HttpApiConfig config) |
| Modifier and Type | Method and Description |
|---|---|
List<Bar> |
getBars(String symbol,
String category,
String timespan,
int count) |
List<Bar> |
getBars(String symbol,
String category,
String timespan,
int count,
Boolean realTimeRequired,
List<String> tradingSessions) |
BatchBarResponse |
getBatchBars(List<String> symbols,
String category,
String timespan,
int count)
Get batch bars for multiple symbols.
|
BatchBarResponse |
getBatchBars(List<String> symbols,
String category,
String timespan,
int count,
Boolean realTimeRequired,
List<String> tradingSessions)
Get batch bars for multiple symbols.
|
List<CorpAction> |
getCorpAction(CorpActionRequest action)
Only for Webull JP
|
List<EodBars> |
getEodBars(Set<String> instrumentIds,
String date,
Integer count)
Only for Webull JP
|
List<Instrument> |
getInstruments(Set<String> symbols,
String category) |
Quote |
getQuote(String symbol,
String category,
String depth,
Boolean overnightRequired) |
List<Snapshot> |
getSnapshots(Set<String> symbols,
String category,
Boolean extendHourRequired,
Boolean overnightRequired) |
Tick |
getTicks(String symbol,
String category,
int count,
List<String> tradingSessions) |
DataClient |
setUserId(String userId)
Set user ID which will be added as x-user-id header to all requests
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBars, getTickspublic DataClient(HttpApiConfig config)
public DataClient(HttpApiClient apiClient)
public DataClient setUserId(String userId)
userId - user IDpublic List<Instrument> getInstruments(Set<String> symbols, String category)
getInstruments in interface IDataClientpublic List<Bar> getBars(String symbol, String category, String timespan, int count)
getBars in interface IDataClientpublic BatchBarResponse getBatchBars(List<String> symbols, String category, String timespan, int count)
IDataClientgetBatchBars in interface IDataClientpublic List<Bar> getBars(String symbol, String category, String timespan, int count, Boolean realTimeRequired, List<String> tradingSessions)
getBars in interface IDataClientpublic BatchBarResponse getBatchBars(List<String> symbols, String category, String timespan, int count, Boolean realTimeRequired, List<String> tradingSessions)
IDataClientgetBatchBars in interface IDataClientpublic List<EodBars> getEodBars(Set<String> instrumentIds, String date, Integer count)
IDataClientgetEodBars in interface IDataClientpublic List<CorpAction> getCorpAction(CorpActionRequest action)
IDataClientgetCorpAction in interface IDataClientpublic Quote getQuote(String symbol, String category, String depth, Boolean overnightRequired)
getQuote in interface IDataClientpublic List<Snapshot> getSnapshots(Set<String> symbols, String category, Boolean extendHourRequired, Boolean overnightRequired)
getSnapshots in interface IDataClientCopyright © 2025 Webull. All rights reserved.