Created
May 3, 2025 09:55
-
-
Save IlyaZha/c7039a951af10bd80caf78d77d7c4338 to your computer and use it in GitHub Desktop.
Import from koyfin
This file contains hidden or 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
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)])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: