Skip to content

Instantly share code, notes, and snippets.

@ktechmidas
Created March 31, 2017 03:55
Show Gist options
  • Save ktechmidas/1821a08c78c2126aadacbde8bd8b214d to your computer and use it in GitHub Desktop.
Save ktechmidas/1821a08c78c2126aadacbde8bd8b214d to your computer and use it in GitHub Desktop.
def getprice(instlist,price_history):
for idx, inst in enumerate(instlist):
price = float(str(price_history[0]).split(':')[1]) / max_bid
print price_history[0]
if price > 0.9:
pdb.set_trace()
del(instlist[idx])
return instlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment