This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
See: | |
https://stackoverflow.com/a/74661973/62821 | |
""" | |
from __future__ import annotations | |
import contextlib | |
import dataclasses | |
from collections.abc import AsyncGenerator, Sequence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import ast | |
import os | |
import sys | |
import contextlib | |
import tempfile | |
from pathlib import Path | |
from typing import Dict, Sequence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import pandas as pd | |
import pandas_datareader | |
url = 'https://fintarget.ru/api/strategies/valyutnaya-strategiya' | |
d1 = requests.get(url).json() | |
def proc(val): | |
res = pd.DataFrame(val) | |
res['ts'] = pd.to_datetime(res['t'], unit='ms') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.