This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: teal; icon-glyph: chart-bar; | |
// Script by Andreas Redeker <[email protected]> | |
let portfolioId; | |
const apiUrl = (portfolioId) => `https://api.parqet.com/v1/portfolios/${portfolioId}?timeframe=max&useInclude=true&include=xirr&include=dividend_growth&include=future_dividends`; | |
// Logos provided by Parqet: https://parqet.com/api | |
const imageUrl = (symbol) => `https://assets.parqet.com/logos/isin/${symbol}?format=png`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: teal; icon-glyph: chart-line; | |
// Script by Andreas Redeker <[email protected]> | |
let portfolioId; | |
const apiUrl = "https://api.parqet.com/v1/portfolios/"; | |
const backgroundColor = new Color("374151"); | |
const titleColor = Color.gray(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: teal; icon-glyph: chart-line; | |
// Script by Andreas Redeker <[email protected]> | |
let portfolioId; | |
const TIMEFRAME = { | |
'max': "seit Kauf", | |
'ytd': "seit Jahresbeginn", | |
'mtd': "seit Monatsbeginn", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-blue; icon-glyph: gas-pump; | |
// share-sheet-inputs: plain-text; | |
// Script by Andreas Redeker <[email protected]> | |
// Get your own API key from https://creativecommons.tankerkoenig.de/ | |
const apiKey = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
const radius = 3; | |
const sort = "price"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: blue; icon-glyph: camera-retro; | |
// Script by Andreas Redeker <[email protected]> | |
let param = args.widgetParameter | |
let url | |
if (param != null && param.length > 0) { | |
url = param |