Skip to main content

manor-strategy-sdk

Base class for building algorithmic trading strategies on the Manor platform.

Installation

pip install manor-strategy-sdk

Usage

from manor_strategy_sdk import ManorStrategy

class MyStrategy(ManorStrategy):

    async def on_start(self):
        await self.subscribe("600519", "XSHG")

    async def on_tick(self, tick):
        price = tick["lastPrice"]
        result = await self.predict(model="lgb_v5", symbols=[
            {"market_code": "XSHG", "symbol": "600519"}
        ])
        for item in result.get("items", []):
            if item["score"] > 0.6:
                await self.buy("600519", "XSHG", price=price, quantity=100)

Environment Variables

Variable Description Default
MANOR_WS_URL WebSocket address ws://127.0.0.1:8200/strategy-api/ws
MANOR_TOKEN Auth token (empty)
MANOR_STRATEGY_ID Strategy ID (for logging) (none)

License

MIT

Metadata

Release files for manor-strategy-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manor-strategy-sdk 0.1.0
File Size Uploaded Provenance Actions
manor_strategy_sdk-0.1.0.tar.gz 5.6 kB Without provenance Details for manor_strategy_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for manor-strategy-sdk 0.1.0
File Interpreter ABI Platform Actions
manor_strategy_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for manor_strategy_sdk-0.1.0-py3-none-any.whl

Total release size: 11.8 kB

Release files / manor_strategy_sdk-0.1.0.tar.gz

Download URL manor_strategy_sdk-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
370bda0c03f0fcc5c9994f5485dd6562fcb952d941941ca67ff5441a4df0fd35
BLAKE2b-256 checksum
How to use checksums
479b412d63ff7e4b51bc431b1a0693ca288fc746c61a325069bcac2904457a45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release files / manor_strategy_sdk-0.1.0-py3-none-any.whl

Download URL manor_strategy_sdk-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf3977bd5e6b4082545fcecec74632ed7117d9f2e505ecf9db8462feb49b6719
BLAKE2b-256 checksum
How to use checksums
10ce220c78901afe0b42279a3c594b1bd228fbeb6ecd1e108705a386cb121e31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Security for manor-strategy-sdk 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page