VinterAPI
vinter_sdk
VinterAPI
            Bases: VinterAPIABC
Parameters:
- 
        api_key(str) –Your API key. 
- 
        asset_type(AssetType(str)) –The type of asset you want to get data for. The acceptable asset types listed in the AssetType enum. 
Source code in vintersdk/vinter_sdk.py
                get_active_data
This function returns the data for the active asset
Parameters:
- 
        symbol(str) –The symbol of the asset you want to get data for. 
Returns:
- 
            A dictionary of the data for the active asset–
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for the asset type 
Source code in vintersdk/vinter_sdk.py
            get_all_active_data
This function returns a list of all the active symbols for the asset type
Parameters:
- 
        frequency(Frequency(str), default:None) –The frequency of the asset you want to get data for., by default None 
- 
        symbol_only(bool, default:False) –If True, it returns a list of symbols only, by default False 
Returns:
- 
            Union[list, dict]–A list of data for the active symbols for the asset type 
Source code in vintersdk/vinter_sdk.py
            get_data_by_date
This function takes in a symbol and a date and returns a dictionary of the data for that date
Parameters:
- 
        symbol(str) –The symbol of the asset you want to get data for. 
- 
        date(str) –The date of the data you want to get. format: YYYY-MM-DD 
Returns:
- 
            A dictionary of the data–
Source code in vintersdk/vinter_sdk.py
            get_data_by_range
This function takes in a symbol and a start and end date and returns a dictionary of the data for that period
Parameters:
- 
        symbol(str) –The symbol of the asset you want to get data for. 
- 
        start(str) –The start datatime . format: - YYYY-MM-DD - YYYY-MM-DDTHH:MM:SSZ - YYYY-MM-DDTHH:MM:SS.fffZ
- 
        end(str, default:None) –The end datatime. format: - YYYY-MM-DD - YYYY-MM-DDTHH:MM:SSZ - YYYY-MM-DDTHH:MM:SS.fffZ
- 
        limit(int, default:1000) –The number of data points to return. 
Returns:
- 
            A dictionary of the data–
Source code in vintersdk/vinter_sdk.py
            get_latest_data
It takes a symbol and a limit as parameters, and returns a dictionary of the latest data for that symbol
Parameters:
- 
        symbol(str) –The symbol of the asset you want to get data for. 
- 
        limit(int, default:1) –The number of data points to return. 
Returns:
- 
            A dictionary of the latest data for the symbol and limit.–
Source code in vintersdk/vinter_sdk.py
            get_latest_value
This function takes in a symbol and returns the latest value for that symbol
Parameters:
- 
        symbol(str) –The symbol of the asset you want to get data for. 
Returns:
- 
            The latest value for the symbol–
Source code in vintersdk/vinter_sdk.py
            get_multi_current_rebalance_weight
This function returns the current rebalance weight of multi_assets symbol
Requires the asset_type to be multi_assets
Returns:
- 
            Weight of the current rebalance of the multi_assets symbol–
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type multi_assets 
Source code in vintersdk/vinter_sdk.py
            get_multi_next_rebalance_date
This function returns the next rebalance date of multi_assets symbol
Returns:
- 
            Date of the next rebalance of the multi_assets symbol–OR None if the symbol Rebalance is not scheduled 
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type multi_assets 
Source code in vintersdk/vinter_sdk.py
            get_multi_next_rebalance_weight
This function returns the next rebalance weight of multi_assets symbol
Returns:
- 
            Weight of the next rebalance of the multi_assets symbol–OR None if the symbol Rebalance is not present in the payload 
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type multi_assets 
Source code in vintersdk/vinter_sdk.py
            get_multi_next_review_date
This function returns the next review date of multi_assets symbol
Returns:
- 
            Date of the next review of the multi_assets symbol–OR None if the symbol Review is not scheduled 
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type multi_assets 
Source code in vintersdk/vinter_sdk.py
            get_multi_previous_rebalance_date
This function returns the previous rebalance date of multi_assets symbol
Returns:
- 
            Date of the previous rebalance of the multi_assets symbol–OR None if the symbol Rebalance is not present in the payload 
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type multi_assets 
Source code in vintersdk/vinter_sdk.py
            get_multi_previous_review_date
This function returns the previous review date of multi_assets symbol
Returns:
- 
            Date of the previous review of the multi_assets symbol–OR None if the symbol Review is not present in the payload 
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type multi_assets 
Source code in vintersdk/vinter_sdk.py
            get_single_contributions
This function returns the contributions of the single_assets symbol
Returns:
- 
            A dictionary of the contributions of the single_assets symbol–
Raises:
- 
            ValueError–If the symbol is not a present in the list of active symbols for asset_type single_assets