top

Sectors

View all available sectors used throughout SWFI.

Retrieve all sectors

Retrieve a list of sectors with no pagination. Sectors collection is referential to other collections.

Get/sectors

Path Parameters

No query or path parameters are needed to get a list of sectors.
List Sectors
curl -v -X GET https://api.swfi.com/v1/sectors \ 
-H "Accept: application/json" \ 
-H "Authorization: $API_KEY"

Success Response

HTTP Status 200
data
TYPEobject[]
Array of strings.

total_items
TYPEinteger
The total length of the data object.
Example response
{
  "data": [
    "Agriculture",
    "Consumer Discretionary",
    "Consumer Staples",
    "Energy",
    "Financials",
    "Fund",
    "Healthcare",
    "Industrials",
    "Information Technology",
    "Infrastructure",
    "Legal",
    "Materials",
    "N/A",
    "Real Estate",
    "Telecommunications",
    "Utilities"
  ],
  "total_items": 16
}

Error Response

message
TYPEstring
A short, human-readable summary of the problem type.

status
TYPEinteger
The HTTP status code (RFC2616, Section 6) generated by the origin server for this occurance of the problem.
Example response
{
  "errors": [
      {
          "path": "/v1/aum/:_id",
          "message": "Not Found"
      }
  ],
  "status": 404
}
Documentation as of 10/19/2022