Material
Access material information from FIO.
Material
Bases: AbstractMaterial, AbstractEndpoint
get
Gets a single material from FIO
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
material_ticker |
str
|
Material Ticker (e.g., "DW") |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
| Type | Description |
|---|---|
MaterialTickerNotFound
|
Material Ticker was not found |
Returns:
| Name | Type | Description |
|---|---|---|
MaterialModel |
MaterialTicker
|
Material |
Source code in fio_wrapper/endpoints/endpoints_v1/material.py
all
Gets all materials from FIO
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
MaterialModelList |
MaterialTickerList
|
List of Materials as List[MaterialModel] |
Source code in fio_wrapper/endpoints/endpoints_v1/material.py
category
Gets all materials of specified category
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
category_name |
str
|
Category name (e.g., "agricultural products") |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
| Type | Description |
|---|---|
MaterialCategoryNotFound
|
Category was not found |
Returns:
| Name | Type | Description |
|---|---|---|
MaterialModelList |
MaterialTickerList
|
List of Materials as List[MaterialModel] |