mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-12 17:48:11 +01:00
22 lines
484 B
JavaScript
22 lines
484 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: `https://finnhub.io/api/{endpoint}`,
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
quote: {
|
|
// https://finnhub.io/docs/api/quote
|
|
endpoint: "v1/quote",
|
|
params: ["symbol"],
|
|
},
|
|
status: {
|
|
// https://finnhub.io/docs/api/market-status
|
|
endpoint: "v1/stock/market-status",
|
|
params: ["exchange"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|