emtl 0.2.2__tar.gz → 0.2.4__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 (54) hide show
  1. {emtl-0.2.2 → emtl-0.2.4}/.bumpversion.cfg +1 -1
  2. {emtl-0.2.2 → emtl-0.2.4}/.cookiecutterrc +1 -1
  3. {emtl-0.2.2/src/emtl.egg-info → emtl-0.2.4}/PKG-INFO +4 -1
  4. {emtl-0.2.2 → emtl-0.2.4}/README.rst +5 -2
  5. {emtl-0.2.2 → emtl-0.2.4}/docs/conf.py +1 -1
  6. emtl-0.2.4/docs/usage.rst +15 -0
  7. {emtl-0.2.2 → emtl-0.2.4}/pyproject.toml +1 -1
  8. {emtl-0.2.2 → emtl-0.2.4}/setup.py +1 -1
  9. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/__init__.py +1 -1
  10. {emtl-0.2.2 → emtl-0.2.4/src/emtl.egg-info}/PKG-INFO +4 -1
  11. {emtl-0.2.2 → emtl-0.2.4}/src/emtl.egg-info/SOURCES.txt +0 -1
  12. emtl-0.2.2/docs/usage.rst +0 -12
  13. emtl-0.2.2/src/emtl/_version.py +0 -16
  14. {emtl-0.2.2 → emtl-0.2.4}/.coveragerc +0 -0
  15. {emtl-0.2.2 → emtl-0.2.4}/.editorconfig +0 -0
  16. {emtl-0.2.2 → emtl-0.2.4}/.github/workflows/document.yml +0 -0
  17. {emtl-0.2.2 → emtl-0.2.4}/.github/workflows/github-actions.yml +0 -0
  18. {emtl-0.2.2 → emtl-0.2.4}/.github/workflows/release.yml +0 -0
  19. {emtl-0.2.2 → emtl-0.2.4}/.gitignore +0 -0
  20. {emtl-0.2.2 → emtl-0.2.4}/.pre-commit-config.yaml +0 -0
  21. {emtl-0.2.2 → emtl-0.2.4}/.readthedocs.yml +0 -0
  22. {emtl-0.2.2 → emtl-0.2.4}/AUTHORS.rst +0 -0
  23. {emtl-0.2.2 → emtl-0.2.4}/CHANGELOG.rst +0 -0
  24. {emtl-0.2.2 → emtl-0.2.4}/CONTRIBUTING.rst +0 -0
  25. {emtl-0.2.2 → emtl-0.2.4}/LICENSE +0 -0
  26. {emtl-0.2.2 → emtl-0.2.4}/ci/bootstrap.py +0 -0
  27. {emtl-0.2.2 → emtl-0.2.4}/ci/requirements.txt +0 -0
  28. {emtl-0.2.2 → emtl-0.2.4}/ci/templates/.github/workflows/github-actions.yml +0 -0
  29. {emtl-0.2.2 → emtl-0.2.4}/docs/authors.rst +0 -0
  30. {emtl-0.2.2 → emtl-0.2.4}/docs/changelog.rst +0 -0
  31. {emtl-0.2.2 → emtl-0.2.4}/docs/contributing.rst +0 -0
  32. {emtl-0.2.2 → emtl-0.2.4}/docs/index.rst +0 -0
  33. {emtl-0.2.2 → emtl-0.2.4}/docs/installation.rst +0 -0
  34. {emtl-0.2.2 → emtl-0.2.4}/docs/readme.rst +0 -0
  35. {emtl-0.2.2 → emtl-0.2.4}/docs/reference/emtl.rst +0 -0
  36. {emtl-0.2.2 → emtl-0.2.4}/docs/reference/index.rst +0 -0
  37. {emtl-0.2.2 → emtl-0.2.4}/docs/requirements.txt +0 -0
  38. {emtl-0.2.2 → emtl-0.2.4}/docs/spelling_wordlist.txt +0 -0
  39. {emtl-0.2.2 → emtl-0.2.4}/pytest.ini +0 -0
  40. {emtl-0.2.2 → emtl-0.2.4}/setup.cfg +0 -0
  41. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/__main__.py +0 -0
  42. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/cli.py +0 -0
  43. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/const.py +0 -0
  44. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/core.py +0 -0
  45. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/tests/__init__.py +0 -0
  46. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/tests/test_cli.py +0 -0
  47. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/tests/test_core.py +0 -0
  48. {emtl-0.2.2 → emtl-0.2.4}/src/emtl/utils.py +0 -0
  49. {emtl-0.2.2 → emtl-0.2.4}/src/emtl.egg-info/dependency_links.txt +0 -0
  50. {emtl-0.2.2 → emtl-0.2.4}/src/emtl.egg-info/entry_points.txt +0 -0
  51. {emtl-0.2.2 → emtl-0.2.4}/src/emtl.egg-info/not-zip-safe +0 -0
  52. {emtl-0.2.2 → emtl-0.2.4}/src/emtl.egg-info/requires.txt +0 -0
  53. {emtl-0.2.2 → emtl-0.2.4}/src/emtl.egg-info/top_level.txt +0 -0
  54. {emtl-0.2.2 → emtl-0.2.4}/tox.ini +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.2.2
2
+ current_version = 0.2.4
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -54,7 +54,7 @@ default_context:
54
54
  sphinx_theme: "alabaster"
55
55
  test_matrix_separate_coverage: "yes"
56
56
  tests_inside_package: "yes"
57
- version: "0.2.2"
57
+ version: "0.2.4"
58
58
  version_manager: "bump2version"
59
59
  website: "riiy.gihub.io/emtl"
60
60
  year_from: "2024"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: 东方财富自动交易接口
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Riiy
@@ -58,8 +58,11 @@ https://emtl.readthedocs.io/
58
58
  Development
59
59
  ===========
60
60
 
61
+ 建议使用python3.11
62
+
61
63
  To run all the tests run::
62
64
 
65
+ pip install -r ci/requirements.txt
63
66
  tox
64
67
 
65
68
  Note, to combine the coverage data from all the tox environments run:
@@ -41,9 +41,9 @@ Overview
41
41
  :alt: Supported implementations
42
42
  :target: https://pypi.org/project/emtl
43
43
 
44
- .. |commits-since| image:: https://img.shields.io/github/commits-since/riiy/emtl/v0.2.2.svg
44
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/riiy/emtl/v0.2.4.svg
45
45
  :alt: Commits since latest release
46
- :target: https://github.com/riiy/emtl/compare/v0.2.2...master
46
+ :target: https://github.com/riiy/emtl/compare/v0.2.4...master
47
47
 
48
48
 
49
49
 
@@ -75,8 +75,11 @@ https://emtl.readthedocs.io/
75
75
  Development
76
76
  ===========
77
77
 
78
+ 建议使用python3.11
79
+
78
80
  To run all the tests run::
79
81
 
82
+ pip install -r ci/requirements.txt
80
83
  tox
81
84
 
82
85
  Note, to combine the coverage data from all the tox environments run:
@@ -25,7 +25,7 @@ except Exception:
25
25
  import traceback
26
26
 
27
27
  traceback.print_exc()
28
- version = release = "0.2.2"
28
+ version = release = "0.2.4"
29
29
 
30
30
  pygments_style = "trac"
31
31
  templates_path = ["."]
@@ -0,0 +1,15 @@
1
+ =====
2
+ Usage
3
+ =====
4
+
5
+ To use the project:
6
+ 下面是登录、查询资产、下单、撤单的使用方法,具体使用请查看Reference
7
+
8
+ .. code-block:: python
9
+
10
+ import emtl
11
+ emtl.login("2020123456789", "123456")
12
+ asset = emtl.query_asset_and_position()
13
+ print(asset)
14
+ resp = create_order("000002", "B", "SA", 5.01, 100)
15
+ resp = cancel_order("20240520_130662")
@@ -3,7 +3,7 @@ requires = [
3
3
  "setuptools>=30.3.0",
4
4
  "setuptools_scm>=3.3.1",
5
5
  ]
6
-
6
+ [tool.setuptools_scm]
7
7
  [tool.ruff]
8
8
  extend-exclude = ["static", "ci/templates"]
9
9
  line-length = 140
@@ -16,7 +16,7 @@ setup(
16
16
  use_scm_version={
17
17
  "local_scheme": "dirty-tag",
18
18
  "write_to": "src/emtl/_version.py",
19
- "fallback_version": "0.2.2",
19
+ "fallback_version": "0.2.4",
20
20
  },
21
21
  license="MIT",
22
22
  description="东方财富自动交易接口",
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.2"
1
+ __version__ = "0.2.4"
2
2
 
3
3
  from .core import cancel_order
4
4
  from .core import create_order
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: 东方财富自动交易接口
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Riiy
@@ -58,8 +58,11 @@ https://emtl.readthedocs.io/
58
58
  Development
59
59
  ===========
60
60
 
61
+ 建议使用python3.11
62
+
61
63
  To run all the tests run::
62
64
 
65
+ pip install -r ci/requirements.txt
63
66
  tox
64
67
 
65
68
  Note, to combine the coverage data from all the tox environments run:
@@ -34,7 +34,6 @@ docs/reference/emtl.rst
34
34
  docs/reference/index.rst
35
35
  src/emtl/__init__.py
36
36
  src/emtl/__main__.py
37
- src/emtl/_version.py
38
37
  src/emtl/cli.py
39
38
  src/emtl/const.py
40
39
  src/emtl/core.py
emtl-0.2.2/docs/usage.rst DELETED
@@ -1,12 +0,0 @@
1
- =====
2
- Usage
3
- =====
4
-
5
- To use the project:
6
-
7
- .. code-block:: python
8
-
9
- import emtl
10
- emtl.login("2020123456789", "123456")
11
- asset = emtl.query_asset_and_position()
12
- print(asset)
@@ -1,16 +0,0 @@
1
- # file generated by setuptools_scm
2
- # don't change, don't track in version control
3
- TYPE_CHECKING = False
4
- if TYPE_CHECKING:
5
- from typing import Tuple, Union
6
- VERSION_TUPLE = Tuple[Union[int, str], ...]
7
- else:
8
- VERSION_TUPLE = object
9
-
10
- version: str
11
- __version__: str
12
- __version_tuple__: VERSION_TUPLE
13
- version_tuple: VERSION_TUPLE
14
-
15
- __version__ = version = '0.2.2'
16
- __version_tuple__ = version_tuple = (0, 2, 2)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes