Skip to content

Instantly share code, notes, and snippets.

View seralouk's full-sized avatar
💭
Brainstorming with myself

Serafeim Loukas, PhD seralouk

💭
Brainstorming with myself
View GitHub Profile
@unrelentingfox
unrelentingfox / kraken-avg-cost.py
Last active July 4, 2024 07:58
A python script that queries all of your historic trades and calculates the average price you purchased coins at. This was a quick script based on the examples found here: https://docs.kraken.com/rest/. I am open to feedback!!
#!/usr/local/bin/python3
import base64
import hashlib
import hmac
import json
import os
import requests
import time
import urllib.parse
@kacaukacau
kacaukacau / etf_overlap.py
Last active June 19, 2021 08:45
A python script to find overlapping holdings between ETFs
# v5: fixed a few bugs, added a overlap percentages by u/Mahasamat
# v4: Support for Deka, HSBC, JP Morgan, and Amundi added.
# Now the results will show members of each section in a Venn diagram.
# i.e. HoldingA will only be in section ('ETFA', 'ETFB', 'ETFC') and not in ('ETFA', 'ETFB'), ('ETFA', 'ETFC') and ('ETFB', 'ETFC') anymore,
# even though HoldingA is present in all three ETFs.
# Showing also unique holdings in ETFs.
# v3: Now supports more providers, and also overlap of more than two ETFs
# Before running, run