Skip to content

Instantly share code, notes, and snippets.

View plibither8's full-sized avatar
👌
Good times, good times

Mihir Chaturvedi plibither8

👌
Good times, good times
View GitHub Profile
@plibither8
plibither8 / corporate-actions.ts
Created January 20, 2024 07:32
Script to add stock splits and bonuses from Zerodha
import { GoogleSpreadsheet } from "google-spreadsheet";
import { JWT } from "google-auth-library";
import { writeFile, readFile } from "node:fs/promises";
import { parseFile } from "@fast-csv/parse";
const ActionType = {
Split: "Split",
Bonus: "Bonus",
} as const;