feat: Initialize PolyWeather project structure including modules for data collection, analysis, strategy, trading, utilities, configuration, and a Streamlit dashboard.

This commit is contained in:
2569718930@qq.com
2026-02-05 19:52:02 +08:00
commit 9617425c6e
33 changed files with 3928 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import requests
import os
from dotenv import load_dotenv
load_dotenv()
def get_updates():
token = os.getenv("TELEGRAM_BOT_TOKEN")
proxy = os.getenv("HTTPS_PROXY")
proxies = {"http": proxy, "https": proxy} if proxy else None
url = f"https://api.telegram.org/bot{token}/getUpdates"
try:
resp = requests.get(url, proxies=proxies)
data = resp.json()
print(f"Updates: {data}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
get_updates()