mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-20 05:06:20 +01:00
21 lines
367 B
JavaScript
21 lines
367 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/v2/portfolio/performance?range={endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
today: {
|
|
endpoint: "1d",
|
|
},
|
|
year: {
|
|
endpoint: "1y",
|
|
},
|
|
max: {
|
|
endpoint: "max",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|