# NOTION FORMATED DATA STRUCTURE
''' trades[notion_page_id] = {
	'ticker' : notion_page["properties"]["Ticker"]["select"]["name"],
	'date_open' : date_open,
	'date_close' : date_close,
	'course_open' : notion_page["properties"]["Open (€)"]["number"],
	'course_close' : notion_page["properties"]["Close (€)"]["number"],
	'course_current' : notion_page["properties"]["Current (€)"]["number"],
	'irr' : notion_page["properties"]["IRR (%)"]["number"],
	'units' : notion_page["properties"]["Units"]["number"],
	'dividends' : notion_page["properties"]["Dividends (€)"]["number"]
}
'''

# YF FORMATTED DATA STRUCTURE
'''yf_data[notion_page_id] = [1670 rows x 2 columns]
Date		 Close	   Dividends
2018-02-14   7.358605  0.0
2018-02-15   7.366426  0.0
2018-02-16   7.366426  0.0
2018-02-19   7.366426  0.0
2018-02-20   7.366426  0.0
...               ...  ...
2025-06-13  11.024000  0.0
2025-06-16  11.050000  0.0
2025-06-17  11.076000  0.0
2025-06-18  11.098500  0.0
2025-06-19  11.129000  0.0
'''

# TRMNL CHART-DATA STRUCTURE
'''var data = [{"name":"Current","data":[["2024-12-31",3982.23],......,["2024-12-01",946.02]]},{"name":"Comparison","data":[["2024-12-30",590.56],......,["2024-12-01",425.28]]}];'''

# TRMNL Special WebHook Payload Strcuture
# The outer "merge variables" is required to send to data through
test_data = '''{
    "merge_variables": 
        {"key": "data"}
}'''

# TRMNL Diagramm Structure
trmnl_object = '''{"merge_variables": {"key": "payload"}}'''