I hereby claim:
- I am ranaroussi on github.
- I am ranaroussi (https://keybase.io/ranaroussi) on keybase.
- I have a public key ASA6RgWZK5het4zvK722ATQfHG0lqH6iUX2IQrwVtsuZ0Qo
To claim this, I am signing this object:
import yfinance as yf | |
import pandas as pd | |
# de-annualize yearly interest rates | |
def deannualize(annual_rate, periods=365): | |
return (1 + annual_rate) ** (1/periods) - 1 | |
def get_risk_free_rate(): | |
# download 3-month us treasury bills rates | |
annualized = yf.download("^IRX")["Adj Close"] |
# mycode.py | |
import tradologics | |
def tradehook(payload): | |
payload = tradologics.parse(payload) | |
# is this a "data" payload? | |
if payload.event == "data": | |
for asset in payload.data: |
<?php | |
/** | |
* Multi-Server MySQLi class | |
* https://gist.github.com/ranaroussi/64a26c9a2ec6d69c62ba7c650f49a8a0 | |
* | |
* Copyright 2013-2020 Ran Aroussi | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import matplotlib as _mpl | |
import matplotlib.pyplot as _plt | |
from mpl_toolkits.mplot3d import Axes3D as _Axes3D | |
import numpy as _np | |
import pandas as _pd | |
import requests | |
def get_premarket(ticker): | |
""" | |
gets premarket prices from nasdaq | |
usage: | |
>> price, volume = get_premarket('spy') | |
""" |
import pandas as pd | |
def resample(data, resolution="1T", tz=None, ffill=True, dropna=False): | |
""" | |
>>> resample(df, '500K') # resample 500 ticks (by counting trades) | |
>>> resample(df, '500V') # resample ~500 volume (by counting volume) | |
""" | |
def __finalize(data, tz=None): | |
# figure out timezone |
#!/usr/bin/env python | |
import subprocess | |
import time | |
import sys | |
import logging | |
class Job: | |
""" | |
monitors that a job is running and executing it when it's not |
#!/usr/bin/env python | |
from dateutil.parser import parse as parse_date | |
import datetime | |
import requests | |
import pandas as pd | |
def get_contracts(url): | |
html = requests.get(url, timeout=5) |
{"version":1,"resource":"file:///Users/ran/Projects/1biglink/webapp/tiny/helpers/caddy.php","entries":[{"id":"ShwK.php","timestamp":1725140672743},{"id":"JfVF.php","timestamp":1725140789314},{"id":"E7vY.php","timestamp":1725141456570},{"id":"OzKx.php","timestamp":1725141481935},{"id":"Vhq5.php","timestamp":1725141602292},{"id":"9b58.php","timestamp":1725141782904},{"id":"n04L.php","timestamp":1725142105350},{"id":"wMSl.php","timestamp":1725142122247},{"id":"36SX.php","timestamp":1725142164400},{"id":"OarW.php","source":"searchReplace.source","timestamp":1725983939895},{"id":"FTgC.php","source":"searchReplace.source","timestamp":1726226877085},{"id":"CLxi.php","source":"searchReplace.source","timestamp":1726231996455},{"id":"OLNF.php","source":"searchReplace.source","timestamp":1726233059615},{"id":"YjvR.php","source":"searchReplace.source","timestamp":1726235003715},{"id":"Dx6Y.php","timestamp":1727534882744},{"id":"hFre.php","timestamp":1728037648917},{"id":"xS5R.php","timestamp":1728037662902},{"id":"G1ti.p |
I hereby claim:
To claim this, I am signing this object: