No project description provided
Project description
at_fetch
pip install at_fetch
poetry add at_fetch
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-0.1.3.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file at_fetch-0.1.3.tar.gz
.
File metadata
- Download URL: at_fetch-0.1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.0rc1 Linux/5.15.0-58-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 424f3b545d624c91d9e32638bc7d428aeb018b8da97842b98231f9fc651e7091 |
|
MD5 | 421a1132c627fe87cbfc18066911d160 |
|
BLAKE2b-256 | 2aa80c57dcda20149a4c1194a653ad3e1a0e31b5fd8f7dbd15b64d8fcc2cb877 |
File details
Details for the file at_fetch-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: at_fetch-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.0rc1 Linux/5.15.0-58-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b2e0121fc0e41bf61ad4d12bbf225b0cc3ffbf99a0b2c58ebf1c6b885133bf7 |
|
MD5 | 7b5538ba02cea174772f0fb1bba8c5d5 |
|
BLAKE2b-256 | 20c5f855853a11322431838db3b734c0dba4e6460c783b82302496622e2a8b85 |