Skip to content

Instantly share code, notes, and snippets.

View dkalt's full-sized avatar
😀
Coding

david kalt dkalt

😀
Coding
View GitHub Profile
@jamescalam
jamescalam / flask_api.py
Last active September 10, 2024 20:13
A example API using Flask
from flask import Flask
from flask_restful import Resource, Api, reqparse
import pandas as pd
import ast
app = Flask(__name__)
api = Api(app)
class Users(Resource):
def get(self):
@markusrenepae
markusrenepae / simulator.py
Created January 2, 2020 22:22
This gist is for another medium article and is about an investment simulator.
import pandas as pd
import numpy as np
import datetime as dt
import math
import warnings
warnings.filterwarnings("ignore")
prices = pd.read_csv("adjclose.csv", index_col="Date", parse_dates=True)
volumechanges = pd.read_csv("volume.csv", index_col="Date", parse_dates=True).pct_change()*100
@markusrenepae
markusrenepae / symbols.txt
Created December 31, 2019 00:33
List of symbols for medium article
MSFT
AAPL
AMZN
FB
JPM
GOOGL
GOOG
JNJ
V
PG