Python wrapper for the Australian Taxation Office YourSuper API
pip install YourSuperAPI
Indicate how many results to return accepts integer between 1 and 9999 or array of two values to indicate range to return.
Positive integer less than 100 to set account holder age.
Positive Integer or Float value to set account balance, used to determine fees for each product.
Boolean value to determine if private super funds will be returned.
Integer value to determine what performance tested super funds will be returned.
- 0 (return all super funds)
- 1 (return only super funds assessed to meet benchmark)
- 2 (return only super funds assessed to fail benchmark)
- 3 (return only super funds not assessed)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data()
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(amountRange=5)
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(amountRange=[10,20])
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(balance=1000.56)
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(age=42)
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(private=True)
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(performance=2)
print(data)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(private=True, age=50, balance=200000)
for superfund in data:
print(superfund["superannuationProviderProductName"])
for subproduct in superfund["subProduct"]:
print(subproduct["fundNetReturnLastSevenYearsPercentageNumber"])
The API returns a Python list of super funds, the structure of each of these funds follows:
{
'performanceRatingCode': 'Performing',
'superannuationProviderDetailFundName': 'QSuper',
'superannuationProviderProductName': 'QSuper Lifetime',
'subProduct': [{
'lifeCycleStageName': 'Focus 1 Group',
'fundNetReturnLastSevenYearsPercentageNumber': 7.98,
'fundNetReturnLastFiveYearsPercentageNumber': 7.37,
'fundNetReturnLastThreeYearsPercentageNumber': 8.2,
'privateFundIndicator': 'N',
'adminFeesDisclosedAmount': 80.0,
'riskLevelCode': 'Medium',
'internetURLAddress': 'https://qsuper.qld.gov.au/our-products/investment-options/lifetime',
'superannuationFundInvestmentStrategyTypeCode': 'Lifecycle',
'superannuationProductSubproductID': 724652609,
'investmentFeesDisclosedAmount': 195.0,
'totalFeesDisclosedAmount': 275.0
}]
}