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.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: at-fetch-data-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 787954cd837b93975e40d5e514ce0e113fe2ee81b8f84243bd114bad05b6afda
MD5 d9478ca741c87e7d65d7cebe8d154022
BLAKE2b-256 3d6248b5eeec11048ec94ee3986b8ebfa3b61091cf4379ff54309a08f07f2cd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for at_fetch_data-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9801d0fcb92fd3fd8e4cb38a2eda3bc16ba5bd29f7d005b4deee1ce420407f90
MD5 ea23dfcd6a9b87c172f101441a930eee
BLAKE2b-256 3e9d4086f29055bc803ce32aa3b420333dccba5e8f104b7f03d318abd503d87d

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