PyQQQ Script
"우리는 누구나 자신의 투자 아이디어를 현실로 만들 수 있다고 믿습니다."
환경설정
1.1 설치
pip install pyqqq-script
1.2 API Key 발급
PyQQQ는 금융 데이터 분석과 자동화된 거래 전략을 제공하는 플랫폼입니다. 회원가입 후 API Key 를 발급받아 환경변수를 설정합니다. 보다 자세한 안내는 공식 가이드 문서를 참고하세요.
export PYQQQ_API_KEY="발급받은_API_KEY"
Quick Start
몇 줄의 코드로 동작하는 백테스트 코드를 보여드리겠습니다.
from pyqqq3 import Backtest, Strategy, ta
from pyqqq3.infra.presentation import print_result
class Simple(Strategy):
def next(self):
sma5 = ta.sma(self.close, 5)
sma20 = ta.sma(self.close, 20)
if sma5 > sma20 and self.position.size == 0:
self.buy(amount=1_000_000)
elif sma5 < sma20 and self.position.size > 0:
self.sell()
bt = Backtest(strategy=Simple, symbol="005930", start="2026-04-01", end="2026-04-07")
print_result(bt.run())
Metadata
Release files for pyqqq-script 0.0.2
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 |
|---|---|---|---|---|
| pyqqq_script-0.0.2.tar.gz | 39.0 kB | Without provenance | Details for pyqqq_script-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqqq_script-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pyqqq_script-0.0.2-py3-none-any.whl |
Total release size: 95.1 kB
Release files / pyqqq_script-0.0.2.tar.gz
| Download URL | pyqqq_script-0.0.2.tar.gz |
|---|---|
| Size | 39.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adfdd668446a77119c19dc5866a211847c90d3b2abda0bd88bf0915497cf05c5
|
|
BLAKE2b-256 checksum How to use checksums |
843afc86dbac537a53fc65ba14f46f7056eede060d2075c22968b5aede9db099
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.7 Linux/6.12.68+
|
Release files / pyqqq_script-0.0.2-py3-none-any.whl
| Download URL | pyqqq_script-0.0.2-py3-none-any.whl |
|---|---|
| Size | 56.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10a8c2e5858768cf296dfd6208aec6c182fb250f276e588bf7c01b40a283f247
|
|
BLAKE2b-256 checksum How to use checksums |
e6b35e60f1dff5678fb40872b9e524887dbd08ea99276d72f0f4666b9de87c0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.7 Linux/6.12.68+
|
Security for pyqqq-script 0.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.