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<NBar> |
getCryptoBars(Set<String> symbols,
String category,
String timespan,
int count,
Boolean realTimeRequired) |
List<CryptoInstrumentDetail> |
getCryptoInstrument(InstrumentQueryParam param) |
List<Snapshot> |
getCryptoSnapshots(Set<String> symbols,
String category) |
List<EodBars> |
getEodBars(Set<String> instrumentIds,
String date,
Integer count)
Only for Webull JP
|
List<NBar> |
getFuturesBars(List<String> symbols,
String category,
String timespan,
int count,
Boolean realTimeRequired) |
DepthOfBook |
getFuturesDepth(String symbol,
String category,
String depth) |
List<FuturesInstrument> |
getFuturesInstruments(Set<String> symbols,
String category) |
List<FuturesInstrument> |
getFuturesInstrumentsByCode(String code,
String category,
String contractType) |
List<FuturesProduct> |
getFuturesProducts(String category) |
List<Snapshot> |
getFuturesSnapshots(Set<String> symbols,
String category) |
Tick |
getFutureTicks(String symbol,
String category,
int count) |
List<Instrument> |
getInstruments(Set<String> symbols,
String category) |
List<StockInstrumentDetail> |
getInstrumentsV1(InstrumentQueryParam param) |
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 IDataClientpublic Tick getTicks(String symbol, String category, int count, List<String> tradingSessions)
getTicks in interface IDataClientpublic List<NBar> getFuturesBars(List<String> symbols, String category, String timespan, int count, Boolean realTimeRequired)
getFuturesBars in interface IDataClientpublic DepthOfBook getFuturesDepth(String symbol, String category, String depth)
getFuturesDepth in interface IDataClientpublic List<Snapshot> getFuturesSnapshots(Set<String> symbols, String category)
getFuturesSnapshots in interface IDataClientpublic Tick getFutureTicks(String symbol, String category, int count)
getFutureTicks in interface IDataClientpublic List<FuturesProduct> getFuturesProducts(String category)
getFuturesProducts in interface IDataClientpublic List<FuturesInstrument> getFuturesInstruments(Set<String> symbols, String category)
getFuturesInstruments in interface IDataClientpublic List<FuturesInstrument> getFuturesInstrumentsByCode(String code, String category, String contractType)
getFuturesInstrumentsByCode in interface IDataClientpublic List<Snapshot> getCryptoSnapshots(Set<String> symbols, String category)
getCryptoSnapshots in interface IDataClientpublic List<NBar> getCryptoBars(Set<String> symbols, String category, String timespan, int count, Boolean realTimeRequired)
getCryptoBars in interface IDataClientpublic List<StockInstrumentDetail> getInstrumentsV1(InstrumentQueryParam param)
getInstrumentsV1 in interface IDataClientpublic List<CryptoInstrumentDetail> getCryptoInstrument(InstrumentQueryParam param)
getCryptoInstrument in interface IDataClientCopyright © 2025 Webull. All rights reserved.