Data-snooping tests on every variant a search tried: Hansen's SPA, White's Reality Check and Romano and Wolf's StepM on one seeded stationary bootstrap. Did the best variant beat the benchmark by more than the best of K would by luck, and which variants did?
curl
curl -X POST https://canlicapital.com/api/v1/validate/reality-check \
-H "Authorization: Bearer $CANLI_KEY" \
-H "Content-Type: application/json" \
-d '{"matrix":[[0.0045,0.0065,-0.0005],[0.0073,-0.0031,-0.0042],[-0.0002,-0.0055,0.0058],[-0.0049,0.0051,-0.0002],[0.0008,0.0038,-0.0046],[0.0041,-0.0064,0.0023],[0.0006,-0.0016,0.0012],[0.002,0.007,0.0015],[0.0068,-0.0007,-0.0062],[0.0024,-0.0066,0.0044],[-0.0051,0.003,0.002],[-0.0018,0.0055,-0.0036],[0.0049,-0.0047,-0.0004],[0.003,-0.0037,0.0011],[0.0006,0.0058,0.0041],[0.0047,0.0016,-0.0068],[0.0042,-0.006,0.0021],[-0.0036,0.0004,0.003],[-0.0041,0.0055,-0.0012],[0.0041,-0.0022,-0.0022],[0.0056,-0.0044,-0.0006],[0.0009,0.0034,0.0062],[0.0021,0.0029,-0.0056],[0.0046,-0.0039,-0.0003],[-0.0011,-0.0014,0.0022],[-0.0051,0.0039,0.0015],[0.0019,0.0001,-0.0024],[0.0073,-0.0034,-0.0031],[0.0027,0.0008,0.0069],[-0.0001,0.0026,-0.0033]]}'
Python
import json
import urllib.request
body = {"matrix":[[0.0045,0.0065,-0.0005],[0.0073,-0.0031,-0.0042],[-0.0002,-0.0055,0.0058],[-0.0049,0.0051,-0.0002],[0.0008,0.0038,-0.0046],[0.0041,-0.0064,0.0023],[0.0006,-0.0016,0.0012],[0.002,0.007,0.0015],[0.0068,-0.0007,-0.0062],[0.0024,-0.0066,0.0044],[-0.0051,0.003,0.002],[-0.0018,0.0055,-0.0036],[0.0049,-0.0047,-0.0004],[0.003,-0.0037,0.0011],[0.0006,0.0058,0.0041],[0.0047,0.0016,-0.0068],[0.0042,-0.006,0.0021],[-0.0036,0.0004,0.003],[-0.0041,0.0055,-0.0012],[0.0041,-0.0022,-0.0022],[0.0056,-0.0044,-0.0006],[0.0009,0.0034,0.0062],[0.0021,0.0029,-0.0056],[0.0046,-0.0039,-0.0003],[-0.0011,-0.0014,0.0022],[-0.0051,0.0039,0.0015],[0.0019,0.0001,-0.0024],[0.0073,-0.0034,-0.0031],[0.0027,0.0008,0.0069],[-0.0001,0.0026,-0.0033]]}
req = urllib.request.Request("https://canlicapital.com/api/v1/validate/reality-check", data=json.dumps(body).encode("utf-8"), method="POST")
req.add_header("Content-Type", "application/json")
req.add_header("Authorization", "Bearer $CANLI_KEY")
with urllib.request.urlopen(req) as response:
print(response.read().decode("utf-8"))
JavaScript
const body = {"matrix":[[0.0045,0.0065,-0.0005],[0.0073,-0.0031,-0.0042],[-0.0002,-0.0055,0.0058],[-0.0049,0.0051,-0.0002],[0.0008,0.0038,-0.0046],[0.0041,-0.0064,0.0023],[0.0006,-0.0016,0.0012],[0.002,0.007,0.0015],[0.0068,-0.0007,-0.0062],[0.0024,-0.0066,0.0044],[-0.0051,0.003,0.002],[-0.0018,0.0055,-0.0036],[0.0049,-0.0047,-0.0004],[0.003,-0.0037,0.0011],[0.0006,0.0058,0.0041],[0.0047,0.0016,-0.0068],[0.0042,-0.006,0.0021],[-0.0036,0.0004,0.003],[-0.0041,0.0055,-0.0012],[0.0041,-0.0022,-0.0022],[0.0056,-0.0044,-0.0006],[0.0009,0.0034,0.0062],[0.0021,0.0029,-0.0056],[0.0046,-0.0039,-0.0003],[-0.0011,-0.0014,0.0022],[-0.0051,0.0039,0.0015],[0.0019,0.0001,-0.0024],[0.0073,-0.0034,-0.0031],[0.0027,0.0008,0.0069],[-0.0001,0.0026,-0.0033]]};
const response = await fetch("https://canlicapital.com/api/v1/validate/reality-check", {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer $CANLI_KEY" },
body: JSON.stringify(body),
});
console.log(await response.json());