Wickra.Copilot
0.1.4
dotnet add package Wickra.Copilot --version 0.1.4
NuGet\Install-Package Wickra.Copilot -Version 0.1.4
<PackageReference Include="Wickra.Copilot" Version="0.1.4" />
<PackageVersion Include="Wickra.Copilot" Version="0.1.4" />
<PackageReference Include="Wickra.Copilot" />
paket add Wickra.Copilot --version 0.1.4
#r "nuget: Wickra.Copilot, 0.1.4"
#:package Wickra.Copilot@0.1.4
#addin nuget:?package=Wickra.Copilot&version=0.1.4
#tool nuget:?package=Wickra.Copilot&version=0.1.4
<p align="center"> <a href="https://wickra.org"><img src="https://raw.githubusercontent.com/wickra-lib/.github/main/profile/wickra-banner.svg?v=514-8" alt="Wickra Copilot — a local market copilot grounded in real order book, liquidation and funding microstructure" width="100%"></a> </p>
Wickra Copilot — C#
▶ Live demo: all 514 indicators over real Binance market data, computed live in your browser — live.wickra.org · zero backend, powered by
wickra-wasm.
A local market copilot: an LLM grounded in real order book, liquidation and funding microstructure — for C#. dotnet add package Wickra.Copilot — prebuilt native library, no system dependencies.
.NET bindings for the wickra-copilot deterministic market-context core over its
C ABI hub, via LibraryImport P/Invoke. Build a Copilot from a spec JSON, drive
it with command JSON, read back the MarketContext — the same protocol as every
other binding. Only the deterministic core is exposed; the LLM adapter is never
reachable over the C ABI, so the network and API key stay off this surface.
Install
dotnet add package Wickra.Copilot
The native library ships prebuilt per platform under runtimes/<rid>/native/,
selected automatically. There is nothing to compile. Targets .NET 8 and later.
Requirements
- .NET 8 SDK.
- The native C ABI library (
wickra_copilot) built bycargo build -p wickra-copilot-c --release. The resolver looks next to the assembly and in the workspacetarget/release.
Building from this repository (contributors)
cargo build -p wickra-copilot-c --release
dotnet test
Quick start
using Wickra.Copilot;
const string spec = "{\"symbols\":[\"BTCUSDT\"],\"lookback\":3,\"facts\":[\"price_move\"]}";
using var copilot = new Copilot(spec);
const string feeds = "{\"cmd\":\"build_context\",\"feeds\":{\"BTCUSDT\":{\"symbol\":\"BTCUSDT\",\"candles\":["
+ "{\"ts\":1,\"open\":100,\"high\":100,\"low\":100,\"close\":100,\"volume\":1},"
+ "{\"ts\":2,\"open\":97,\"high\":97,\"low\":97,\"close\":97,\"volume\":1},"
+ "{\"ts\":3,\"open\":94,\"high\":94,\"low\":94,\"close\":94,\"volume\":1}]}}}";
Console.WriteLine(copilot.Command(feeds));
Console.WriteLine(Copilot.Version());
API
| Member | Description |
|---|---|
new Copilot(specJson) |
Build a copilot from a spec JSON (ArgumentException on an invalid spec). |
copilot.Command(cmdJson) |
Apply a command JSON (set_spec, build_context, facts, query, reset, version) and return the response JSON. |
Copilot.Version() |
The library version. |
copilot.Dispose() |
Free the native handle (IDisposable). |
Domain errors (a bad spec, an unknown command) come back in-band as
{"ok":false,"error":...}; only unusable arguments and caught panics are
exceptions.
Benchmark
Every binding forwards to the same data-driven Rust core, so what this one adds is
the call overhead of [LibraryImport] P/Invoke over the C ABI, not a different result. The core's throughput is
measured by the repository's benchmark suite and the nightly bench.yml run; the
numbers, the machine and how to reproduce them are in the repository
BENCHMARKS.md.
Documentation
The full guide, the spec reference and the API documentation live in the main repository and the documentation site:
- Repository: https://github.com/wickra-lib/wickra-copilot
- Docs (guides, spec reference, cookbook): https://copilot.wickra.org
- Runnable example:
examples/csharp/
Wickra Copilot ships native bindings for Python, Node.js, WASM and Rust, plus a C ABI hub that any
C-capable language (C, C++, C#, Go, Java, R) links against — all forwarding to the
same data-driven, unsafe-forbidden Rust core.
Security
Found a security issue? Please don't open a public issue. Report it privately
via the repository's Security tab ("Report a vulnerability") or email
support@wickra.org with a subject line starting [wickra security]. Full
policy: https://github.com/wickra-lib/wickra-copilot/blob/main/SECURITY.md.
Disclaimer
Wickra Copilot is analysis software: it builds a deterministic market context and relays it to a language model of your choosing. It is provided "as is", without warranty of any kind. LLM output can be wrong and is not financial advice; the copilot only reports facts and places no orders. Trading carries risk of loss; review the code and use at your own discretion.
License
Licensed under either of Apache-2.0 or MIT at your option.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.