Skip to content

C / C++

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

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

const char *spec = "{\"universe\":[\"AAA\"],"
                   "\"features\":[{\"kind\":\"price\",\"field\":\"close\"}],"
                   "\"labels\":[{\"kind\":\"forward_return\",\"horizon\":1}]}";

WickraFeatureStore *s = wickra_feature_store_new(spec);
const char *cmd = "{\"cmd\":\"build_batch\",\"data\":{ /* symbol -> candles */ }}";
char *matrix = wickra_feature_store_command(s, cmd);   // JSON response

printf("%s\n", matrix);
wickra_feature_store_free(s);

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

More