Skip to main content

at_fetch_data

pip install at_fetch_data

api

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())

Metadata

Release files for at-fetch-data 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for at-fetch-data 1.0.5
File Size Uploaded
at-fetch-data-1.0.5.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for at-fetch-data 1.0.5
File Interpreter ABI Platform
at_fetch_data-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / at-fetch-data-1.0.5.tar.gz

Download URL at-fetch-data-1.0.5.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e33875fd7e55be1fb9cac56b3bace1efae15b872b6fca0ce093b4ba800628290
BLAKE2b-256 checksum
How to use checksums
96775c6dafeba8c1f4e4cd953489d6bee7d1a59a5f2726ea226e5d3043b9bc17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / at_fetch_data-1.0.5-py3-none-any.whl

Download URL at_fetch_data-1.0.5-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2483f25fdad7d252346f5dbad3c6e43cd339f7de6c778b098d6cb4cda093fb7c
BLAKE2b-256 checksum
How to use checksums
2a8d78dc1539cc251ec69624c5986dbef97576d9e7479677c8d9b60ba02636c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page