Sectors
info
Read more in the API documentation for the sectors
endpoint.
The sectors
endpoint has full support, including query validation.
Endpoint | Function | Client method | Filters class |
---|---|---|---|
"sectors" | sectors | Client.sectors | SectorsFilters |
Usage
- Sync
- Async
Using top-level functions
import bavapi
result = bavapi.sectors("TOKEN", name="Distribution")
Using Client asynchronously
import bavapi
async with bavapi.Client("TOKEN") as bav:
result = await bav.sectors(name="Distribution")
Available filters in function calls
These filters are available directly within the function/method:
- Positional filters:
name
,in_most_influential
- Keyword filters:
sector_id
For other filters, passing an SectorsFilters
instance to the filters
parameter is required.