This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def GetIVRank(sessionid, symbol, useRank=True, debug=False): | |
#this returns an dictionary with the key as date, and the value as the raw IV | |
iv = GetImpliedVolatility(sessionid, symbol, debug=debug) | |
keys = iv.keys() | |
if len(keys)== 0: | |
return -1 | |
keys.sort() | |
highest = 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys,os,glob,re,csv | |
try: | |
loglevel = int(os.environ["LOGLEVEL"]) | |
except: | |
loglevel = 1 | |
def Log(s, level=1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import csv, json, sys, re, os | |
import glob | |
try: | |
loglevel = int(os.environ["LOGLEVEL"]) | |
except: | |
loglevel = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import csv, json, sys, re, os | |
import glob | |
try: | |
loglevel = int(os.environ["LOGLEVEL"]) | |
except: | |
loglevel = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, os | |
if len(sys.argv) < 2: | |
print """Usage: %s symbol | |
where symbol is the stock symbol to fetch | |
""" % sys.argv[0] | |
sys.exit(1) | |
cmd = 'curl -o %s.csv http://ichart.yahoo.com/table.csv?s=%s&a=1&b=1&c=2016&d=11&e=22&f=2016' % (sys.argv[1], sys.argv[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <assert.h> | |
#include "lua.h" | |
#include "lualib.h" | |
#include "lauxlib.h" | |
char *luacode = | |
"function f ( ) \n" | |
" print(\"hello\\n\") \n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//compiling on OSX 10.11 | |
//export LUA=path/to/lua-5.3.1/src | |
//cc -I $LUA -L $LUA -l lua -o testlua testlua.c | |
#include <stdio.h> | |
#include <string.h> | |
#include "lua.h" | |
#include "lualib.h" | |
#include "lauxlib.h" | |
char *luacode = |
NewerOlder