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.4.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file at-fetch-data-1.0.4.tar.gz
.
File metadata
- Download URL: at-fetch-data-1.0.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4400f0b30252ddfeb382d1dba2f96292bb1f5b8f7c56725efc02d55c966feb90 |
|
MD5 | 352a9f7abef8f307191c4767e985589d |
|
BLAKE2b-256 | 43d01edd0ab0f4bd307ad5f379c8b13f6703b49209b07408567689d9d035bc54 |
File details
Details for the file at_fetch_data-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: at_fetch_data-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d53ee78c0b0d1841e66e1b56e9ba6518a9535b34f4551fc4c75c07863d69e1a9 |
|
MD5 | 21d04902760d4a7e42ede07e119fe790 |
|
BLAKE2b-256 | 75c988b2ff3c40942787fc74a10666af7981133d54bc822da4320cd9fcfe1410 |