Skip to main content

No project description provided

Project description

at_fetch_data

pip install at_fetch_data
poetry add at_fetch_data

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

at-fetch-data-1.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

at_fetch_data-1.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file at-fetch-data-1.0.2.tar.gz.

File metadata

  • Download URL: at-fetch-data-1.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for at-fetch-data-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a5aaf72457432e06544197e888e0ad1afb05e0a799a8a2a4aa626672a355fc7f
MD5 e4817bab4f5fb090459d4a23550bee15
BLAKE2b-256 94d83e0f6fabfea4474632a855e499ea40e281b039c9e556b8245f96ca0af816

See more details on using hashes here.

File details

Details for the file at_fetch_data-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for at_fetch_data-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 620c7985aa85281a17561b030b2e7353f2774479fba84f0de9e385191f6a19c1
MD5 d3cc3cd3e13121526105615c71fe0cde
BLAKE2b-256 a63bbfab458efa4346df522d53cfbccee18663cf6398dd4778bf29f40d3d6d89

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page