children#

Category.children#

Get the child categories of this category.

Returns:

A list of child Category objects.

Return type:

List[Category]

Raises:

RuntimeError – If the client is not set for this Category.

Example

>>> categories = fred_client.get_category(13)
>>> for category in categories:
>>>     children = category.children
>>>     for child in children:
>>>         print(child.name)
'Exports'
'Imports'
'Income Payments & Receipts'
'U.S. International Finance'

Note: This property is meant for simple relational requests, for more complex queries use the client methods directly.