S

Stockwaves · Portfolio Optimize

by Stockwaves

POSTBaseSolana

$0.05

per call · USD Coin on Base

Stateless portfolio optimizer — bring your own signals, get risk-constrained weights. POST {assets:[{symbol,target,confidence?,vol?,regime?}], config?} → optimized portfolio targets via inverse-vol weighting, confidence/conviction scaling, same-family correlation penalty, gross/net + per-symbol caps, regime haircut. Pure compute, no account data.

Endpoint

POST https://stockwaves.net/api/portfolio/optimize

1

Calls / 30d

1

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://stockwaves.net/api/portfolio/optimize", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
cURL
curl -X POST \
  "https://stockwaves.net/api/portfolio/optimize" \
  -H "Content-Type: application/json" \
  -d '{}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0xdc9f94a8b93f070b58cfa580cbe740d763005fe6
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Stockwaves & similar services