Zorro Plugin ((top)) -

function sentiment(ticker)

double get_sentiment(const char* ticker) char url[256]; snprintf(url, sizeof(url), "https://newsapi.org/v2/everything?q=%s", ticker); // Perform HTTP request -> jsonResponse double score = model->predict(jsonResponse); return score; zorro plugin

Compile (MinGW):

int PLUGIN_INIT(void) curl_global_init(CURL_GLOBAL_DEFAULT); curl = curl_easy_init(); model = load_model("sentiment.onnx"); return (curl && model) ? 0 : 1; // Perform HTTP request -&gt

plugin("myplugin.dll"); print(plugin_call("add", 5, 3)); // prints 8.000000 jsonResponse double score = model-&gt