mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 22:13:39 +01:00
21 lines
364 B
JavaScript
21 lines
364 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;
|