Skip to content

Instantly share code, notes, and snippets.

View gaburipeach's full-sized avatar

boybad gaburipeach

View GitHub Profile
import pandas as pd
from requests import get, post
API_KEY = "INSERT"
HEADER = {"x-dune-api-key" : API_KEY}
BASE_URL = "https://api.dune.com/api/v1/"
def make_api_url(module, action, ID):
"""
import asyncio
import logging
import requests_async
import json
import pandas as pd
from scimitar.config import init_and_get_config
import numpy as np
import matplotlib.pyplot as plt
import time
import asyncio
import csv
import json
import requests
import pandas as pd
import numpy as np
import os
import glob
import nest_asyncio
import gzip
import requests
import ccxt
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.ticker as mtick
symbol = "FIL/BTC"
time = "1h"
import numpy as np
import matplotlib.pyplot as plt
def gbm_simulation(S0, mu, sigma, dt, T, N):
'''
S0: initial stock price
mu: expected return
sigma: volatility
dt: time step
T: total time
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import plotly.express as px
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gaburipeach
gaburipeach / worst.csv
Created January 17, 2023 05:10
bottom uniswap swappers
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 6 columns, instead of 2. in line 9.
,address,net pnl,markout_1m,gas+fees,notl_traded
0,\x422162745b12b8c58d19e348d7c8c134bbedf886,9782421.989520155,10790502.457744386,1008080.4682242317,7182484448.006778
1,\x479bc00624e58398f4cf59d78884d12fb515790a,3744900.9715181226,3870893.547289835,125992.57577171216,2391184696.059205
2,\x042523db4f3effc33d2742022b2490258494f8b3,3637324.764373848,4542247.25001818,904922.4856443318,5322508157.671412
3,\x5c9a55199a4baeebe16a3c194f5c3abccc145860,2903212.0515896427,2944400.2370197056,41188.18543006295,2444928723.51643
4,\x1c8f6a5f009e051cab9c3851ca2da2c936b2775a,2881176.303913656,3503359.702021448,622183.3981077918,3929558806.7823153
5,\x305bf59bbd7a89ca9ce4d460b0efb54266d9e6c3,2879759.853880131,3832812.6606677775,953052.8067876467,1406045336.149458
6,\x927cf8ceae6efb1b7e81f5a7907e0e46d41619f8,2801909.507180155,3751646.45062004,949736.9434398854,1375218467.940537
7,\x9aab3f81604c683a1a0d14019fbfe15bef7aa1ee,2735977.4890602254,3249085.644578239,513108.15551801387,3593507921.425656
8,\x83b294466fe88cf8d4e73fd69b36
@gaburipeach
gaburipeach / toppers.csv
Created January 17, 2023 02:58
top uniswap swappers
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 6 columns, instead of 2. in line 9.
,address,net pnl,markout_1m,gas+fees,notl_traded
0,\x422162745b12b8c58d19e348d7c8c134bbedf886,9782421.989520155,10790502.457744386,1008080.4682242317,7182484448.006778
1,\x479bc00624e58398f4cf59d78884d12fb515790a,3744900.9715181226,3870893.547289835,125992.57577171216,2391184696.059205
2,\x042523db4f3effc33d2742022b2490258494f8b3,3637324.764373848,4542247.25001818,904922.4856443318,5322508157.671412
3,\x5c9a55199a4baeebe16a3c194f5c3abccc145860,2903212.0515896427,2944400.2370197056,41188.18543006295,2444928723.51643
4,\x1c8f6a5f009e051cab9c3851ca2da2c936b2775a,2881176.303913656,3503359.702021448,622183.3981077918,3929558806.7823153
5,\x305bf59bbd7a89ca9ce4d460b0efb54266d9e6c3,2879759.853880131,3832812.6606677775,953052.8067876467,1406045336.149458
6,\x927cf8ceae6efb1b7e81f5a7907e0e46d41619f8,2801909.507180155,3751646.45062004,949736.9434398854,1375218467.940537
7,\x9aab3f81604c683a1a0d14019fbfe15bef7aa1ee,2735977.4890602254,3249085.644578239,513108.15551801387,3593507921.425656
8,\x83b294466fe88cf8d4e73fd69b36
const KeybaseBot = require('keybase-bot');
const fs = require('fs');
async function main() {
// Create a new bot instance
const bot = new KeybaseBot();
/* now you can do things with the bot */
await bot.initFromRunningService()
/* now you can do things with the bot */