tickflow 0.1.0.dev1__tar.gz → 0.1.0.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/PKG-INFO +8 -14
  2. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/README.md +7 -13
  3. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/pyproject.toml +1 -1
  4. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow.egg-info/PKG-INFO +8 -14
  5. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/setup.cfg +0 -0
  6. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/__init__.py +0 -0
  7. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/_base_client.py +0 -0
  8. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/_exceptions.py +0 -0
  9. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/_types.py +0 -0
  10. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/client.py +0 -0
  11. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/generated_model.py +0 -0
  12. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/__init__.py +0 -0
  13. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/_base.py +0 -0
  14. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/exchanges.py +0 -0
  15. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/instruments.py +0 -0
  16. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/klines.py +0 -0
  17. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/quotes.py +0 -0
  18. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow/resources/universes.py +0 -0
  19. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow.egg-info/SOURCES.txt +0 -0
  20. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow.egg-info/dependency_links.txt +0 -0
  21. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow.egg-info/requires.txt +0 -0
  22. {tickflow-0.1.0.dev1 → tickflow-0.1.0.dev2}/tickflow.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tickflow
3
- Version: 0.1.0.dev1
3
+ Version: 0.1.0.dev2
4
4
  Summary: TickFlow Python Client
5
5
  Author: TickFlow Team
6
6
  License: MIT
@@ -36,12 +36,6 @@ Requires-Dist: tqdm>=4.60.0; extra == "all"
36
36
 
37
37
  ## 安装
38
38
 
39
- ```bash
40
- pip install tickflow
41
- ```
42
-
43
- 如需 DataFrame 支持和进度条功能:
44
-
45
39
  ```bash
46
40
  pip install tickflow[all]
47
41
  ```
@@ -52,14 +46,14 @@ pip install tickflow[all]
52
46
  from tickflow import TickFlow
53
47
 
54
48
  # 初始化客户端
55
- client = TickFlow(api_key="your-api-key")
49
+ tf = TickFlow(api_key="your-api-key")
56
50
 
57
51
  # 获取 K 线数据
58
- df = client.klines.get("600000.SH", period="1d", count=100, as_dataframe=True)
52
+ df = tf.klines.get("600000.SH", period="1d", count=100, as_dataframe=True)
59
53
  print(df.tail())
60
54
 
61
55
  # 获取实时行情
62
- quotes = client.quotes.get(symbols=["600000.SH", "AAPL.US"])
56
+ quotes = tf.quotes.get(symbols=["600000.SH", "AAPL.US"])
63
57
  for q in quotes:
64
58
  print(f"{q['symbol']}: {q['last_price']}")
65
59
  ```
@@ -71,8 +65,8 @@ import asyncio
71
65
  from tickflow import AsyncTickFlow
72
66
 
73
67
  async def main():
74
- async with AsyncTickFlow(api_key="your-api-key") as client:
75
- df = await client.klines.get("600000.SH", as_dataframe=True)
68
+ async with AsyncTickFlow(api_key="your-api-key") as tf:
69
+ df = await tf.klines.get("600000.SH", as_dataframe=True)
76
70
  print(df.tail())
77
71
 
78
72
  asyncio.run(main())
@@ -82,8 +76,8 @@ asyncio.run(main())
82
76
 
83
77
  ```python
84
78
  # 批量获取大量股票数据,自动分批并发请求
85
- symbols = client.exchanges.get_symbols("SH")[:500]
86
- df = client.klines.batch(
79
+ symbols = tf.exchanges.get_symbols("SH")[:500]
80
+ df = tf.klines.batch(
87
81
  symbols,
88
82
  period="1d",
89
83
  as_dataframe=True,
@@ -4,12 +4,6 @@
4
4
 
5
5
  ## 安装
6
6
 
7
- ```bash
8
- pip install tickflow
9
- ```
10
-
11
- 如需 DataFrame 支持和进度条功能:
12
-
13
7
  ```bash
14
8
  pip install tickflow[all]
15
9
  ```
@@ -20,14 +14,14 @@ pip install tickflow[all]
20
14
  from tickflow import TickFlow
21
15
 
22
16
  # 初始化客户端
23
- client = TickFlow(api_key="your-api-key")
17
+ tf = TickFlow(api_key="your-api-key")
24
18
 
25
19
  # 获取 K 线数据
26
- df = client.klines.get("600000.SH", period="1d", count=100, as_dataframe=True)
20
+ df = tf.klines.get("600000.SH", period="1d", count=100, as_dataframe=True)
27
21
  print(df.tail())
28
22
 
29
23
  # 获取实时行情
30
- quotes = client.quotes.get(symbols=["600000.SH", "AAPL.US"])
24
+ quotes = tf.quotes.get(symbols=["600000.SH", "AAPL.US"])
31
25
  for q in quotes:
32
26
  print(f"{q['symbol']}: {q['last_price']}")
33
27
  ```
@@ -39,8 +33,8 @@ import asyncio
39
33
  from tickflow import AsyncTickFlow
40
34
 
41
35
  async def main():
42
- async with AsyncTickFlow(api_key="your-api-key") as client:
43
- df = await client.klines.get("600000.SH", as_dataframe=True)
36
+ async with AsyncTickFlow(api_key="your-api-key") as tf:
37
+ df = await tf.klines.get("600000.SH", as_dataframe=True)
44
38
  print(df.tail())
45
39
 
46
40
  asyncio.run(main())
@@ -50,8 +44,8 @@ asyncio.run(main())
50
44
 
51
45
  ```python
52
46
  # 批量获取大量股票数据,自动分批并发请求
53
- symbols = client.exchanges.get_symbols("SH")[:500]
54
- df = client.klines.batch(
47
+ symbols = tf.exchanges.get_symbols("SH")[:500]
48
+ df = tf.klines.batch(
55
49
  symbols,
56
50
  period="1d",
57
51
  as_dataframe=True,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tickflow"
3
- version = "0.1.0-dev1"
3
+ version = "0.1.0-dev2"
4
4
  description = "TickFlow Python Client"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tickflow
3
- Version: 0.1.0.dev1
3
+ Version: 0.1.0.dev2
4
4
  Summary: TickFlow Python Client
5
5
  Author: TickFlow Team
6
6
  License: MIT
@@ -36,12 +36,6 @@ Requires-Dist: tqdm>=4.60.0; extra == "all"
36
36
 
37
37
  ## 安装
38
38
 
39
- ```bash
40
- pip install tickflow
41
- ```
42
-
43
- 如需 DataFrame 支持和进度条功能:
44
-
45
39
  ```bash
46
40
  pip install tickflow[all]
47
41
  ```
@@ -52,14 +46,14 @@ pip install tickflow[all]
52
46
  from tickflow import TickFlow
53
47
 
54
48
  # 初始化客户端
55
- client = TickFlow(api_key="your-api-key")
49
+ tf = TickFlow(api_key="your-api-key")
56
50
 
57
51
  # 获取 K 线数据
58
- df = client.klines.get("600000.SH", period="1d", count=100, as_dataframe=True)
52
+ df = tf.klines.get("600000.SH", period="1d", count=100, as_dataframe=True)
59
53
  print(df.tail())
60
54
 
61
55
  # 获取实时行情
62
- quotes = client.quotes.get(symbols=["600000.SH", "AAPL.US"])
56
+ quotes = tf.quotes.get(symbols=["600000.SH", "AAPL.US"])
63
57
  for q in quotes:
64
58
  print(f"{q['symbol']}: {q['last_price']}")
65
59
  ```
@@ -71,8 +65,8 @@ import asyncio
71
65
  from tickflow import AsyncTickFlow
72
66
 
73
67
  async def main():
74
- async with AsyncTickFlow(api_key="your-api-key") as client:
75
- df = await client.klines.get("600000.SH", as_dataframe=True)
68
+ async with AsyncTickFlow(api_key="your-api-key") as tf:
69
+ df = await tf.klines.get("600000.SH", as_dataframe=True)
76
70
  print(df.tail())
77
71
 
78
72
  asyncio.run(main())
@@ -82,8 +76,8 @@ asyncio.run(main())
82
76
 
83
77
  ```python
84
78
  # 批量获取大量股票数据,自动分批并发请求
85
- symbols = client.exchanges.get_symbols("SH")[:500]
86
- df = client.klines.batch(
79
+ symbols = tf.exchanges.get_symbols("SH")[:500]
80
+ df = tf.klines.batch(
87
81
  symbols,
88
82
  period="1d",
89
83
  as_dataframe=True,
File without changes