Skip to content

C / C++

The C ABI hub. A single wickra_impact.h header + prebuilt library links from C, C++, or any C-capable language. Drive it with the JSON command protocol.

bash
# prebuilt wickra_impact.h + library per platform:
# github.com/wickra-lib/wickra-impact/releases
c
#include "wickra_impact.h"

const char *spec = "{ /* ImpactSpec: strategy + book_model + participation_cap + latency_ms */ }";

WickraImpact *i = wickra_impact_new(spec);
const char *cmd = "{\"cmd\":\"run\",\"data\":{ /* symbol -> candles + book */ }}";
char *report = wickra_impact_command(i, cmd);   /* JSON response */

printf("%s\n", report);
wickra_impact_free(i);

The header is generated by cbindgen and is the same ABI the C#, Go, Java and R bindings link against.

More