Skip to content

Instantly share code, notes, and snippets.

@byzantime
byzantime / sell_on_7day_double.py
Created November 12, 2014 06:37
Sell all available bitcoin if price doubles in 7 days
# if bitcoin price on Bitstamp doubles within a 7-day timeframe, sell
from datetime import datetime as dt
from datetime import timedelta
import hashlib
import hmac
import json
from time import sleep
import requests