emtl 0.2.2__tar.gz → 0.2.3__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.3}/.bumpversion.cfg +1 -1
  2. {emtl-0.2.2 → emtl-0.2.3}/.cookiecutterrc +1 -1
  3. {emtl-0.2.2/src/emtl.egg-info → emtl-0.2.3}/PKG-INFO +4 -2
  4. {emtl-0.2.2 → emtl-0.2.3}/README.rst +5 -3
  5. {emtl-0.2.2 → emtl-0.2.3}/docs/conf.py +1 -1
  6. emtl-0.2.3/docs/usage.rst +15 -0
  7. {emtl-0.2.2 → emtl-0.2.3}/setup.py +1 -1
  8. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/__init__.py +1 -1
  9. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/_version.py +9 -4
  10. {emtl-0.2.2 → emtl-0.2.3/src/emtl.egg-info}/PKG-INFO +4 -2
  11. emtl-0.2.2/docs/usage.rst +0 -12
  12. {emtl-0.2.2 → emtl-0.2.3}/.coveragerc +0 -0
  13. {emtl-0.2.2 → emtl-0.2.3}/.editorconfig +0 -0
  14. {emtl-0.2.2 → emtl-0.2.3}/.github/workflows/document.yml +0 -0
  15. {emtl-0.2.2 → emtl-0.2.3}/.github/workflows/github-actions.yml +0 -0
  16. {emtl-0.2.2 → emtl-0.2.3}/.github/workflows/release.yml +0 -0
  17. {emtl-0.2.2 → emtl-0.2.3}/.gitignore +0 -0
  18. {emtl-0.2.2 → emtl-0.2.3}/.pre-commit-config.yaml +0 -0
  19. {emtl-0.2.2 → emtl-0.2.3}/.readthedocs.yml +0 -0
  20. {emtl-0.2.2 → emtl-0.2.3}/AUTHORS.rst +0 -0
  21. {emtl-0.2.2 → emtl-0.2.3}/CHANGELOG.rst +0 -0
  22. {emtl-0.2.2 → emtl-0.2.3}/CONTRIBUTING.rst +0 -0
  23. {emtl-0.2.2 → emtl-0.2.3}/LICENSE +0 -0
  24. {emtl-0.2.2 → emtl-0.2.3}/ci/bootstrap.py +0 -0
  25. {emtl-0.2.2 → emtl-0.2.3}/ci/requirements.txt +0 -0
  26. {emtl-0.2.2 → emtl-0.2.3}/ci/templates/.github/workflows/github-actions.yml +0 -0
  27. {emtl-0.2.2 → emtl-0.2.3}/docs/authors.rst +0 -0
  28. {emtl-0.2.2 → emtl-0.2.3}/docs/changelog.rst +0 -0
  29. {emtl-0.2.2 → emtl-0.2.3}/docs/contributing.rst +0 -0
  30. {emtl-0.2.2 → emtl-0.2.3}/docs/index.rst +0 -0
  31. {emtl-0.2.2 → emtl-0.2.3}/docs/installation.rst +0 -0
  32. {emtl-0.2.2 → emtl-0.2.3}/docs/readme.rst +0 -0
  33. {emtl-0.2.2 → emtl-0.2.3}/docs/reference/emtl.rst +0 -0
  34. {emtl-0.2.2 → emtl-0.2.3}/docs/reference/index.rst +0 -0
  35. {emtl-0.2.2 → emtl-0.2.3}/docs/requirements.txt +0 -0
  36. {emtl-0.2.2 → emtl-0.2.3}/docs/spelling_wordlist.txt +0 -0
  37. {emtl-0.2.2 → emtl-0.2.3}/pyproject.toml +0 -0
  38. {emtl-0.2.2 → emtl-0.2.3}/pytest.ini +0 -0
  39. {emtl-0.2.2 → emtl-0.2.3}/setup.cfg +0 -0
  40. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/__main__.py +0 -0
  41. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/cli.py +0 -0
  42. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/const.py +0 -0
  43. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/core.py +0 -0
  44. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/tests/__init__.py +0 -0
  45. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/tests/test_cli.py +0 -0
  46. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/tests/test_core.py +0 -0
  47. {emtl-0.2.2 → emtl-0.2.3}/src/emtl/utils.py +0 -0
  48. {emtl-0.2.2 → emtl-0.2.3}/src/emtl.egg-info/SOURCES.txt +0 -0
  49. {emtl-0.2.2 → emtl-0.2.3}/src/emtl.egg-info/dependency_links.txt +0 -0
  50. {emtl-0.2.2 → emtl-0.2.3}/src/emtl.egg-info/entry_points.txt +0 -0
  51. {emtl-0.2.2 → emtl-0.2.3}/src/emtl.egg-info/not-zip-safe +0 -0
  52. {emtl-0.2.2 → emtl-0.2.3}/src/emtl.egg-info/requires.txt +0 -0
  53. {emtl-0.2.2 → emtl-0.2.3}/src/emtl.egg-info/top_level.txt +0 -0
  54. {emtl-0.2.2 → emtl-0.2.3}/tox.ini +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.2.2
2
+ current_version = 0.2.3
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.3"
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.3
4
4
  Summary: 东方财富自动交易接口
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Riiy
@@ -58,8 +58,10 @@ https://emtl.readthedocs.io/
58
58
  Development
59
59
  ===========
60
60
 
61
- To run all the tests run::
61
+ 建议使用python3.11
62
62
 
63
+ To run all the tests run::
64
+ pip install -r ci/requirements.txt
63
65
  tox
64
66
 
65
67
  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.3.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.3...master
47
47
 
48
48
 
49
49
 
@@ -75,8 +75,10 @@ https://emtl.readthedocs.io/
75
75
  Development
76
76
  ===========
77
77
 
78
- To run all the tests run::
78
+ 建议使用python3.11
79
79
 
80
+ To run all the tests run::
81
+ pip install -r ci/requirements.txt
80
82
  tox
81
83
 
82
84
  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.3"
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")
@@ -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.3",
20
20
  },
21
21
  license="MIT",
22
22
  description="东方财富自动交易接口",
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.2"
1
+ __version__ = "0.2.3"
2
2
 
3
3
  from .core import cancel_order
4
4
  from .core import create_order
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '0.2.2'
16
- __version_tuple__ = version_tuple = (0, 2, 2)
20
+ __version__ = version = '0.2.3'
21
+ __version_tuple__ = version_tuple = (0, 2, 3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: 东方财富自动交易接口
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Riiy
@@ -58,8 +58,10 @@ https://emtl.readthedocs.io/
58
58
  Development
59
59
  ===========
60
60
 
61
- To run all the tests run::
61
+ 建议使用python3.11
62
62
 
63
+ To run all the tests run::
64
+ pip install -r ci/requirements.txt
63
65
  tox
64
66
 
65
67
  Note, to combine the coverage data from all the tox environments run:
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)
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
File without changes
File without changes