Skip to content

Instantly share code, notes, and snippets.

@IlyaZha
Created May 3, 2025 09:55
Show Gist options
  • Save IlyaZha/c7039a951af10bd80caf78d77d7c4338 to your computer and use it in GitHub Desktop.
Save IlyaZha/c7039a951af10bd80caf78d77d7c4338 to your computer and use it in GitHub Desktop.
Import from koyfin
let tickers = [];
tickers = tickers.concat(Array.from(document.querySelectorAll('a'))
.map(cell => {
const link = cell.querySelector('div');
if (!link) console.log(cell);
return link ? link.textContent.replace(/^•/, '').trim() : null;
})
.filter(Boolean));
console.log(JSON.stringify([...new Set(tickers2)]));
@IlyaZha
Copy link
Author

IlyaZha commented May 3, 2025

Prompt:

CSV file
Include 4 columns:
symbol, quantity, cost, date (MM/DD/YYYY, YYYY-MM-DD)

I need a csv of this kind, fill Symbol, data - zeros, and if the date is today. A list of symbols:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment