Metadata-Version: 2.1
Name: at-fetch
Version: 0.1.3
Summary: 
License: MIT
Author: thecatshidog
Requires-Python: >=3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx[http2] (>=0.24.0,<0.25.0)
Requires-Dist: pandas (>=2.0.1,<3.0.0)
Description-Content-Type: text/markdown

## at_fetch

```
pip install at_fetch
poetry add at_fetch
```

### example

```
poetry install
poetry run python -m example.start_time
```

### usage

```
from fetch.fetch import Fetch
import asyncio
import time


async def main():
    request = Fetch()
    start_time = 1533684900
    end_time = 1533687900
    symbol = "btcusdt"
    interval = "1m"
    start = time.time()
    # await asyncio.sleep(1)
    res = await request.get_all_klines_data(
        "http://47.243.179.153:8000/api/kline/spot", symbol, interval, start_time, end_time
    )
    end = time.time()
    exec_time = end - start
    print("exec_time", exec_time)
    # res已经是按照顺序的dataframe数据格式
    print(res)


asyncio.run(main())

```
