Skip to content

Instantly share code, notes, and snippets.

class Profile(models.Model):
start_datetime = models.DateTimeField()
some_timezone = models.CharField()
@miljkovicivan
miljkovicivan / iota_status.py
Last active May 18, 2018 10:12
IOTA price
import requests
import json
TOTAL = ... # total amount of IOTA
BUY_PRICE = ... # buy price in BTC
def print_stats():
iota_response = requests.get('https://api.bitfinex.com/v2/ticker/tIOTBTC')
if iota_response.status_code == 200: