config.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ### --------- PROGRAMM CONFIGUARTION
  2. # Program Functionality Switch
  3. update_notion = True
  4. update_TRMNL = True
  5. calculate_benchmark = True
  6. # Program Functionality Configuration
  7. programm_cooldown_time = 15 # Programm cooldown timer in minutes
  8. api_cooldowm_time = 0.1 # API cooldown timer in minutes
  9. trmnl_granularity = 80 # Days in between two data points in the TRMNL chart
  10. ticker_benchmark = "VGWL.DE" # Ticker to benchmark the trades against
  11. # Programm Execution Configuration
  12. selected_logging_level = "warning" # must be one from the list below
  13. logging_levels = ("none", "error", "success", "warning", "info", "debug") # ordered by amount of logs
  14. class log_colors:
  15. error = '\033[91m'
  16. warning = '\033[93m'
  17. success = '\033[92m'
  18. info = '\033[90m'
  19. debug = '\033[4m'
  20. endcode = '\033[0m'
  21. ### --------- API CONFIGURATION
  22. # NOTION
  23. notion_token = "secret_b7PiPL2FqC9QEikqkAEWOht7LmzPMIJMWTzUPWwbw4H"
  24. notion_headers = {
  25. "Authorization": "Bearer " + notion_token,
  26. "Content-Type": "application/json",
  27. "Notion-Version": "2022-02-22"
  28. }
  29. notion_db_id_trades = "95f7a2b697a249d4892d60d855d31bda"
  30. notion_db_id_investments = "2ba10a5f51bd8160ab9ee982bbef8cc3"
  31. notion_db_id_performance = "1c010a5f51bd806f90d8e76a1286cfd4"
  32. # TRMNL
  33. trmnl_headers = {"Content-Type": "application/json"}
  34. trmnl_url_chart_1 = "https://usetrmnl.com/api/custom_plugins/334ea2ed-1f20-459a-bea5-dca2c8cf7714"
  35. trmnl_url_chart_2 = "https://usetrmnl.com/api/custom_plugins/72950759-38df-49eb-99fb-b3e2e67c385e"
  36. trmnl_url_chart_3 = "https://usetrmnl.com/api/custom_plugins/a975543a-51dc-4793-b7fa-d6a101dc4025"