We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4582cc4 commit d5d408fCopy full SHA for d5d408f
scripts/data_collector/utils.py
@@ -69,9 +69,7 @@ def get_calendar_list(bench_code="CSI300") -> List[pd.Timestamp]:
69
70
def _get_calendar(url):
71
ua = UserAgent()
72
- headers = {
73
- "User-Agent": ua.random
74
- }
+ headers = {"User-Agent": ua.random}
75
_value_list = requests.get(url, timeout=None, headers=headers).json()["data"]["klines"]
76
return sorted(map(lambda x: pd.Timestamp(x.split(",")[0]), _value_list))
77
0 commit comments