> ## Documentation Index
> Fetch the complete documentation index at: https://benzinga.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ticker Trends

> tickerTrends()

[\< BACK](/sdks/languages/java#tickertrends)

## Overview

### Available Operations

* [get](#get) - Get ticker trend data
* [getList](#getlist) - Get ticker trend list data

## get

Get ticker trend data

### Example Usage

```java theme={null}
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()) {
            // handle response
        }
    }
}
```

### Parameters

| Parameter | Type                                                                              | Required             | Description                                |
| --------- | --------------------------------------------------------------------------------- | -------------------- | ------------------------------------------ |
| `request` | [GetTickerTrendDataRequest](../../models/operations/GetTickerTrendDataRequest.md) | :heavy\_check\_mark: | The request object to use for the request. |

### Response

**[GetTickerTrendDataResponse](../../models/operations/GetTickerTrendDataResponse.md)**

### Errors

| Error Type                                  | Status Code | Content Type     |
| ------------------------------------------- | ----------- | ---------------- |
| models/errors/BzhttpResp                    | 400         | application/json |
| models/errors/HttpapiTickerTrendAPIResponse | 500         | application/json |
| models/errors/APIException                  | 4XX, 5XX    | \*/\*            |

## getList

Get ticker trend list data

### Example Usage

```java theme={null}
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()) {
            // handle response
        }
    }
}
```

### Parameters

| Parameter | Type                                                                                      | Required             | Description                                |
| --------- | ----------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------ |
| `request` | [GetTickerTrendListDataRequest](../../models/operations/GetTickerTrendListDataRequest.md) | :heavy\_check\_mark: | The request object to use for the request. |

### Response

**[GetTickerTrendListDataResponse](../../models/operations/GetTickerTrendListDataResponse.md)**

### Errors

| Error Type                                          | Status Code | Content Type     |
| --------------------------------------------------- | ----------- | ---------------- |
| models/errors/BzhttpResp                            | 400         | application/json |
| models/errors/HttpapiTrendingTickersListAPIResponse | 500         | application/json |
| models/errors/APIException                          | 4XX, 5XX    | \*/\*            |
