This is the official Java library for Finazon, offering access to:
- Lists of datasets, publishers, markets, and tickers.
- Market data: ticker snapshots, time series, trades, and technical indicators.
- Data from specific datasets such as Benzinga, Binance, Crypto, Forex, SEC, and SIP.
🔑 API key is essential. If you haven't got one yet, sign up here.
You can now integrate this library in your project via Maven.
<dependency>
<groupId>io.finazon</groupId>
<artifactId>finazon-grpc-java</artifactId>
<version>1.0</version>
</dependency> implementation "io.finazon:finazon-grpc-java:1.0"
package io.finazon.example;
import io.finazon.GetTimeSeriesRequest;
import io.finazon.TimeSeries;
import io.finazon.TimeSeriesService;
import io.grpc.StatusRuntimeException;
public class Main {
public static void main(String[] args) {
try {
TimeSeries result = TimeSeriesService
.blockingStub("your_api_key")
.getTimeSeries(
GetTimeSeriesRequest.newBuilder()
.setPageSize(10)
.setTicker("BTC/USD")
.setDataset("crypto")
.setInterval("1h")
.build()
)
.getResultList()
.get(0);
System.out.println(String.format("Last 1h candle for BTC/USD: \n%s", result));
} catch (StatusRuntimeException e) {
System.out.println(e.getStatus().getCode() + ": " + e.getStatus().getDescription());
}
}
}Replace "your_api_key" with your actual key.
📝 Expected output:
Last 1h candle for BTC/USD:
timestamp: 1709366400
open: 62080.37
close: 61934.56
high: 62138.45
low: 61859.43
volume: 114.09
Delve deeper with our official documentation.
Explore practical scenarios in the examples directory.
- 🌐 Visit our contact page.
- 🛠 Or our support center.
- Fork and clone:
$ git clone https://github.com/finazon-io/finazon-grpc-java.git. - Branch out:
$ cd finazon-grpc-java && git checkout -b my-feature. - Commit changes and test.
- Push your branch and open a pull request with a comprehensive description.
For more guidance on contributing, see the GitHub Docs on GitHub.
This project is licensed under the MIT License. See the LICENSE.txt file in this repository for more details.