C#
The .NET binding wraps the C ABI. Construct a Compiler and drive it with Command(json) -> json.
bash
dotnet add package Wickra.Compilecsharp
using Wickra.Compile;
using var c = new Compiler();
var resp = c.Command(
"{\"cmd\":\"compile\",\"dry_run\":true,\"spec\":{" +
"\"strategy\":{\"symbol\":\"x\",\"timeframe\":\"1h\"," +
"\"indicators\":{\"f\":{\"type\":\"Ema\",\"params\":[3]}}," +
"\"entry\":{\"cross_above\":[\"f\",\"f\"]},\"exit\":{\"cross_below\":[\"f\",\"f\"]}," +
"\"sizing\":{\"type\":\"fixed_qty\",\"qty\":1}}," +
"\"target\":{\"kind\":\"wasm\"},\"crate_name\":\"demo\"}}");
Console.WriteLine(resp);