at_fetch_data
pip install at_fetch_data
api
- get_all_klines_data:
- url:str
- symbol: str
- interval: str
- start_time: int
- end_time: int
- get_kline_count:
- url: str
- symbol: str
- interval: str
- start_time: int
- end_time: int
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())
Metadata
Release files for at-fetch-data 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| at-fetch-data-1.0.5.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| at_fetch_data-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / at-fetch-data-1.0.5.tar.gz
| Download URL | at-fetch-data-1.0.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e33875fd7e55be1fb9cac56b3bace1efae15b872b6fca0ce093b4ba800628290
|
|
BLAKE2b-256 checksum How to use checksums |
96775c6dafeba8c1f4e4cd953489d6bee7d1a59a5f2726ea226e5d3043b9bc17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / at_fetch_data-1.0.5-py3-none-any.whl
| Download URL | at_fetch_data-1.0.5-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2483f25fdad7d252346f5dbad3c6e43cd339f7de6c778b098d6cb4cda093fb7c
|
|
BLAKE2b-256 checksum How to use checksums |
2a8d78dc1539cc251ec69624c5986dbef97576d9e7479677c8d9b60ba02636c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|