← ClaudeAtlas

pynecore-pluginlisted

Extend PyneCore with plugins. Explains the `pyne.plugin` entry-point system (discovery, `pyne plugin list/info`, the Config dataclass that becomes `config/plugins/<name>.toml`), the `ProviderPlugin`, `LiveProviderPlugin`, `BrokerPlugin` and `CLIPlugin` contracts, and what the live runner demands from a provider (eager connect, catch-up, reconnect, feed watchdog, idle-bar synthesis, dedup). Ships four tested plugin packages to copy or scaffold: candles from local files (.ohlcv, CSV, JSON, parquet, SQLite; aggregation and paced replay or a tailed file for live mode), CCXT exchanges over REST polling, Telegram notifications for log lines / `alert()` / broker events, and a simulated broker (`pyne simbroker` plus an offline conformance suite). Use whenever a task mentions a custom data source or feed, a provider / live / broker / CLI plugin, a plugin TOML config, replaying candles as if live, an exchange without websockets, Telegram / webhook notifications, or testing broker-mode runs without an exchange account.
theonetrade/pynecore-skills · ★ 2 · Data & Documents · score 78
Install: claude install-skill theonetrade/pynecore-skills
# PyneCore plugins A plugin is an installable Python package that registers a class under the `pyne.plugin` entry-point group. Its base classes give it capabilities: `ProviderPlugin` (history download), `LiveProviderPlugin` (plus a live stream), `BrokerPlugin` (plus order execution), `CLIPlugin` (commands and options for `pyne`). Everything PyneCore learns about the plugin comes from the package metadata and the class; there is no registration file. Details and the full contracts are in `references/plugin-system.md`; the four templates are working packages, tested on PyneCore 6.12.1 as described in their reference pages. ## 1. Workflow ```bash python3 <skill>/scripts/new_plugin.py fileprovider ./pynecore-myfeed --name myfeed # scaffold from a template pip install -e ./pynecore-myfeed # into the environment that has pyne (uv pip install -e ...) pyne plugin list # the new name with its capabilities pyne plugin info myfeed # class, package, config fields (what config/plugins/myfeed.toml accepts) <python> <skill>/scripts/plugin_check.py myfeed --symbol X --timeframe 60 --bars 50 [--live-seconds 90] pyne data download myfeed:X@60 # the CLI uses it like any provider pyne run my_strategy myfeed:X@60 --live # live stream (LiveProviderPlugin) pyne run my_strategy mybroker:X@60 --broker # order execution (BrokerPlugin) ``` `plugin_check.py` loads the plugin exactly as `pyne` does, lists remaining abstract