# barchart-ondemand-client-java
**Repository Path**: mirrors_barchart/barchart-ondemand-client-java
## Basic Information
- **Project Name**: barchart-ondemand-client-java
- **Description**: A Java client for Barchart OnDemand
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-07-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Java client for Barchart OnDemand
[Check out some examples here](https://github.com/barchart/barchart-ondemand-client-java/wiki/Fetching-Data)
[See how to use the client in your project here](https://github.com/barchart/barchart-ondemand-example-java)
### Currently supports
* getQuote
* getQuoteEod
* getEquitiesByExchange
* getFuturesByExchange
* getFuturesOptions
* getShortDatedFuturesOptions
* getProfile
* getFinancialHighlights
* getFinancialRatios
* getIncomeStatements
* getBalanceSheets
* getCompetitors
* getInsiders
* getRatings
* getIndexMembers
* getCorporateActions
* getEarningsEstimates
* getLeaders
* getHighsLows
* getInstrumentDefinition
* getFuturesSpecifications
* getFuturesExpirations
* getWeather
* getUSDAGrainPrices
### Example Code
```java
private final BarchartOnDemandClient onDemand = new BarchartOnDemandClient.Builder().apiKey("CHANGE-ME").build();
/* build a new getQuotes request */
final QuoteRequest.Builder builder = new QuoteRequest.Builder();
/* add symbols to request */
builder.symbols(new String[] { "AAPL", "GOOG" });
/* set mode to real-time */
builder.mode(QuoteRequestMode.REAL_TIME);
/* add optional request fields */
builder.fields(new QuoteRequestField[] { QuoteRequestField._52_WEEK_HIGH_DATE });
/* fetch results */
final Quotes quotes = onDemand.fetch(builder.build());
for (Quote q : quotes.all()) {
System.out.println("Quote for : " + q.getSymbol() + " = " + q);
}
System.out.println("Quote by symbol = " + JsonUtil.intoJson(quotes.bySymbol("AAPL")));
```
### Adding to your project
##### Plain Jar
[Download the latest version here](https://github.com/barchart/barchart-ondemand-client-java/releases/tag/barchart-ondemand-client-2.0.2)
##### Maven
```xml
com.barchart.base
barchart-ondemand-client
2.0.2
com.barchart.base
barchart-ondemand-client
1.0.20
```