# Sector Performance

This API returns the top gainers and losers based on a selected filter (price or market cap). Each response includes ranked securities with their price change, market cap, company name, and sector.

**The key path for sectors supports (default: overall sectors):**

* `information`
* `utilities`
* `manufacturing`
* `construction`
* `retail`
* `wholesale`
* `arts_entertainment`
* `finance_insurance`
* `professional_scientific_technical`
* `mining_oil_gas`
* `management_enterprises`
* `admin_support_waste`
* `transportation_warehousing`
* `other_services`
* `education`
* `accommodation_food`
* `health_care_social`
* `real_estate_rental`
* `other`

**Query Parameters**

* `price` (optional)
  Filter by stock price threshold
  Supported values: `1`, `5`, `10`
* `marketcap` (optional)
  Filter by market capitalization threshold
  Supported values: `300M`, `1b`, `10b`, `100b`

**Rules**

* Only one filter can be used at a time:
  * Valid: `price=5`
  * Valid: `marketcap=1b`
  * Invalid: `price=5&marketcap=1b`
* If `price` is provided, `marketcap` must not be included, and vice versa.

**Response**
Returns:

* `gainers`: Top performing securities
* `losers`: Worst performing securities
* Metadata including filter and timestamp

Default to all NMS stocks if no path or query parameters passed in

- **Category:** Equities Market Data
- **Type:** realtime
- **Workspace:** viaNexus
- **Dataset Id:** SECTOR_PERFORMANCE
- **Region:** US

**Access:** [Get access](https://console.vianexus.com/console/marketplace) · [Start free trial](https://console.vianexus.com/auth/register)

## Provider

Published by viaNexus

Website: https://viaNexus.com

## Methods

### Batch API

- `https://api.blueskyapi.com/v1/data/CORE/SECTOR_PERFORMANCE`
- `https://api.blueskyapi.com/v1/data/CORE/SECTOR_PERFORMANCE/:sector`
- `https://api.blueskyapi.com/v1/data/CORE/SECTOR_PERFORMANCE/manufacturing`
- `https://api.blueskyapi.com/v1/data/CORE/SECTOR_PERFORMANCE/manufacturing?price=5`
- `https://api.blueskyapi.com/v1/data/CORE/SECTOR_PERFORMANCE/manufacturing?marketcap=300M`

Example API request: `https://api.blueskyapi.com/v1/data/CORE/SECTOR_PERFORMANCE?last=1`

## Response Attributes

Key          | Type   | Description
-------------|--------|-------------
__asOf\*__ `date` | number | Unix epoch timestamp in milliseconds when this snapshot was generated or last updated.
__bucket\*__  | string | The bucket value for the selected `dimension`.
__dimension\*__  | string | The filter dimension used to group or screen securities.*Supported values:* `price`, `marketcap`
__gainers\*__  | array | List of top gaining securities based on the selected `sector`, `dimension`, and `bucket`. Each entry represents one security and uses the shared fields: `symbol`, `changePercent`, `change`, `price`, `volume`, `marketCap`, `companyName`, and `sectorClassification`.
__losers\*__  | array | List of top losing securities based on the selected `sector`, `dimension`, and `bucket`. Each entry represents one security and uses the shared fields: `symbol`, `changePercent`, `change`, `price`, `volume`, `marketCap`, `companyName`, and `sectorClassification`.
__overallSectorPerformance__  | number | Cap-weighted average return for all eligible stocks in the selected sector, without price or market-cap bucket filtering.
__sector\*__ `key` | string | The bucket value for the selected `dimension`. *Supported values by dimension:* *price:* `over1`, `over5`, `over10`, `overall`, *marketcap:* `over300M`, `over1b`, `over100b`, `overall`
__sectorPerformance__  | number | Cap-weighted average return for stocks in the selected sector, dimension, and bucket.
    
\* required

## Attribution

If you are using viaNexus Platform Data in your site or application, you must display &ldquo;**Data provided by viaNexus a product of Blue-Sky Nexus** &rdquo; (linked to https://viaNexus.com/) somewhere on that site or application.  Please see [Attribution](https://console.vianexus.com/docs/api-basics/attribution) for details.

---

- Page: https://console.vianexus.com/docs/core/equities-market-data/sector_performance
- Category: [Equities Market Data](https://console.vianexus.com/docs/core/equities-market-data)
- Provider: [core](https://console.vianexus.com/docs/core)

Markdown of https://console.vianexus.com/docs/core/equities-market-data/sector_performance. Append `.md` to any docs URL.
