EMQ CLI with vendored EmQuantAPI integration.
Project description
emq-cli
emq is a domain-oriented command line tool for EmQuantAPI with vendored runtime libraries.
Requirements
- Python 3.10+
Platform Support
- macOS:
x86_64,arm64(universal wheel) - Linux:
x86_64only - Windows:
amd64only
Linux arm64/aarch64 is not supported by the vendored EmQuant Linux SDK at this time.
Quick Start
pip install emq-cli
emq --help
Login once (credentials from flags or env):
export EMQ_USER='your_user'
export EMQ_PASS='your_pass'
emq auth login
Sample market query:
emq market series 000001.SZ CLOSE --start 2025-01-01 --end 2025-12-31 --output table
Quick portfolio order:
emq portfolio qorder --code MYPORT --stock 300059.SZ --volume 1000 --price 10.5 --date 2025-01-15
Command Domains
auth:login,logout,statusmarket:snapshot,seriesportfolio:create,list,hold,order,qorderquota:usageraw:css,csd,pquery,porder
Output
Every command uses a unified envelope and supports:
--output json(default)--output table(ASCII)--output csv
--output can be placed either before the domain command (global) or at the end of leaf commands (override).
If both are provided, the leaf command --output takes precedence.
Credential Persistence
auth loginsaves credentials to~/.emq/state.json(plain text, initial version).- Business commands auto-login from saved state or environment variables.
auth logoutclears local state and calls SDK logout.
Development
uv run ruff check .
uv run mypy src
uv run python scripts/validate_skill_sync.py
uv run pytest
Notes
- The vendored SDK lives in
src/emq/vendor/emquantapi/python3. - Root
EMQuantAPI_Pythonshould not be kept after migration. - Commit and release governance:
docs/commit-and-release.md.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emq_cli-0.2.11.tar.gz.
File metadata
- Download URL: emq_cli-0.2.11.tar.gz
- Upload date:
- Size: 26.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c59516d008ef35fbb01d1393b7d7ccc2338dc2d31dfd7f120b1b4773113be77
|
|
| MD5 |
6ed66798d5e1abf9791dfac2089c5b3d
|
|
| BLAKE2b-256 |
815e6d717a0f3c0c4127bbf000ea7262ee11f4621f6d95b89c31e991a04a2076
|
Provenance
The following attestation bundles were made for emq_cli-0.2.11.tar.gz:
Publisher:
publish.yml on Greapi/choice-emquantcli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emq_cli-0.2.11.tar.gz -
Subject digest:
7c59516d008ef35fbb01d1393b7d7ccc2338dc2d31dfd7f120b1b4773113be77 - Sigstore transparency entry: 1153707794
- Sigstore integration time:
-
Permalink:
Greapi/choice-emquantcli@51fe3cefbb675ee58f40d5f0be409ffcf4099c86 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/Greapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@51fe3cefbb675ee58f40d5f0be409ffcf4099c86 -
Trigger Event:
push
-
Statement type:
File details
Details for the file emq_cli-0.2.11-py3-none-any.whl.
File metadata
- Download URL: emq_cli-0.2.11-py3-none-any.whl
- Upload date:
- Size: 27.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd5d78d5c775b4e87f3fcd357be918d9d8a6149586121683f2cb478aea5540e0
|
|
| MD5 |
6b8d7719c4a9b28669ac68cda381c7c9
|
|
| BLAKE2b-256 |
9195d7a0d1b9af492ea1bae4154be1c4f2a171106f101552488fffa83b3bd52e
|
Provenance
The following attestation bundles were made for emq_cli-0.2.11-py3-none-any.whl:
Publisher:
publish.yml on Greapi/choice-emquantcli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emq_cli-0.2.11-py3-none-any.whl -
Subject digest:
dd5d78d5c775b4e87f3fcd357be918d9d8a6149586121683f2cb478aea5540e0 - Sigstore transparency entry: 1153707851
- Sigstore integration time:
-
Permalink:
Greapi/choice-emquantcli@51fe3cefbb675ee58f40d5f0be409ffcf4099c86 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/Greapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@51fe3cefbb675ee58f40d5f0be409ffcf4099c86 -
Trigger Event:
push
-
Statement type: