介绍
用于调用 OKX Outcomes API 的 Python 库
- REST API (Async)
- WebSocket
注意事项
- 由于开发精力有限,本项目所有的文档等都是中文
- 官方文档的部分描述与实际 API 不符,只能在实践中发现 bug
- 禁止只会用 AI 无法理解项目结构的开发者参与本项目的代码提交
开发
开发时安装
pip install -e . --config-settings editable_mode=strict
静态检查
pyright
ruff check --fix
ruff format
Metadata
Release files for okx-outcomes 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| okx_outcomes-0.1.0.tar.gz | 26.1 kB | With provenance | Details for okx_outcomes-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| okx_outcomes-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for okx_outcomes-0.1.0-py3-none-any.whl |
Total release size: 54.4 kB
Release files / okx_outcomes-0.1.0.tar.gz
| Download URL | okx_outcomes-0.1.0.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a3df4aceb1fecf7737b22df65535f50f08ac8f468e4836c5def317b0246a3a4
|
|
BLAKE2b-256 checksum How to use checksums |
cd44b1d8e5687b2ead387b18b50fa3107d975b1942834ea5b1f11dadea646a8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency logRelease files / okx_outcomes-0.1.0-py3-none-any.whl
| Download URL | okx_outcomes-0.1.0-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3dabd74ef92c2fe603dfee07b387c511ce728369d3c7d711990696b85e47782
|
|
BLAKE2b-256 checksum How to use checksums |
c908f211006c237ffdf76c0f01b07b209f2e1697c904aa2d6daf1a8a3020e6a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency logSecurity for okx-outcomes 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for okx_outcomes-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.