Documentation Index
Fetch the complete documentation index at: https://benzinga-2-locadex-parallel-main.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
< 戻る
- get - ティッカー・トレンドデータを取得
- getList - ティッカー・トレンドリストデータを取得
ticker のトレンドデータを取得
package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.BzhttpResp;
import org.benzinga.BZClient.models.errors.HttpapiTickerTrendAPIResponse;
import org.benzinga.BZClient.models.operations.GetTickerTrendDataRequest;
import org.benzinga.BZClient.models.operations.GetTickerTrendDataResponse;
public class Application {
public static void main(String[] args) throws BzhttpResp, HttpapiTickerTrendAPIResponse, Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetTickerTrendDataRequest req = GetTickerTrendDataRequest.builder()
.interval("<value>")
.tickers("<value>")
.source("<value>")
.build();
GetTickerTrendDataResponse res = sdk.tickerTrends().get()
.request(req)
.call();
if (res.httpapiTickerTrendAPIResponse().isPresent()) {
// レスポンスを処理する
}
}
}
| パラメータ | 型 | 必須 | 説明 |
|---|
request | GetTickerTrendDataRequest | :heavy_check_mark: | このリクエストに使用するリクエストオブジェクト。 |
GetTickerTrendDataResponse
| エラー種別 | ステータスコード | コンテンツタイプ |
|---|
| models/errors/BzhttpResp | 400 | application/json |
| models/errors/HttpapiTickerTrendAPIResponse | 500 | application/json |
| models/errors/APIException | 4XX, 5XX | / |
tickerトレンドリストのデータを取得します
package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.BzhttpResp;
import org.benzinga.BZClient.models.errors.HttpapiTrendingTickersListAPIResponse;
import org.benzinga.BZClient.models.operations.GetTickerTrendListDataRequest;
import org.benzinga.BZClient.models.operations.GetTickerTrendListDataResponse;
public class Application {
public static void main(String[] args) throws BzhttpResp, HttpapiTrendingTickersListAPIResponse, Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetTickerTrendListDataRequest req = GetTickerTrendListDataRequest.builder()
.interval("<value>")
.tickers("<value>")
.source("<value>")
.build();
GetTickerTrendListDataResponse res = sdk.tickerTrends().getList()
.request(req)
.call();
if (res.httpapiTrendingTickersListAPIResponse().isPresent()) {
// レスポンスを処理する
}
}
}
| パラメータ | 型 | 必須 | 説明 |
|---|
request | GetTickerTrendListDataRequest | :heavy_check_mark: | リクエストで使用するリクエストオブジェクト。 |
GetTickerTrendListDataResponse
| エラー種別 | ステータスコード | コンテンツタイプ |
|---|
| models/errors/BzhttpResp | 400 | application/json |
| models/errors/HttpapiTrendingTickersListAPIResponse | 500 | application/json |
| models/errors/APIException | 4XX, 5XX | / |