Skip to content
Fourohtwo

Index tracking with K assets

ellimist.trade/v1/skills/quantum.portfolio.index_tracking

Index tracking with K assets: Use this to pick K assets and weights that track an index with minimal tracking error, from your own asset and index return series.

BasePolygonArbitrumAnswering
POSThttps://ellimist.trade/v1/skills/quantum.portfolio.index_tracking

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ellimist.trade/v1/skills/quantum.portfolio.index_tracking", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"asset_returns":[[0.012,-0.004,0.006],[-0.008,0.01,0.002],[0.015,0.003,-0.005],[-0.002,-0.007,0.009],[0.006,0.012,0.001],[0.009,-0.003,0.004],[-0.011,0.005,-0.002],[0.004,0.008,0.007],[0.013,-0.006,0.003],[-0.005,0.002,-0.008],[0.007,0.009,0.005],[0.002,-0.001,0.006]],"assets":["A","B","C"],"backend":"classical","index_returns":[0.00467,0.00133,0.00433,0,0.00633,0.00333,-0.00267,0.00633,0.00333,-),
});
console.log(await res.json());

Example input

{"asset_returns":[[0.012,-0.004,0.006],[-0.008,0.01,0.002],[0.015,0.003,-0.005],[-0.002,-0.007,0.009],[0.006,0.012,0.001],[0.009,-0.003,0.004],[-0.011,0.005,-0.002],[0.004,0.008,0.007],[0.013,-0.006,0.003],[-0.005,0.002,-0.008],[0.007,0.009,0.005],[0.002,-0.001,0.006]],"assets":["A","B","C"],"backend":"classical","index_returns":[0.00467,0.00133,0.00433,0,0.00633,0.00333,-0.00267,0.00633,0.00333,-

More from EllimistProvider status