Skip to main content

No project description provided

Project description

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

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

Uploaded Source

Built Distribution

at_fetch_data-1.0.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: at-fetch-data-1.0.5.tar.gz
  • Upload date:
  • Size: 3.0 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.5.tar.gz
Algorithm Hash digest
SHA256 e33875fd7e55be1fb9cac56b3bace1efae15b872b6fca0ce093b4ba800628290
MD5 af55f4fda398efa9c42fafb16d069ed0
BLAKE2b-256 96775c6dafeba8c1f4e4cd953489d6bee7d1a59a5f2726ea226e5d3043b9bc17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for at_fetch_data-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2483f25fdad7d252346f5dbad3c6e43cd339f7de6c778b098d6cb4cda093fb7c
MD5 5cce4eaef13b1e7756acb8a2608c3193
BLAKE2b-256 2a8d78dc1539cc251ec69624c5986dbef97576d9e7479677c8d9b60ba02636c0

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