This file contains 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
class Profile(models.Model): | |
start_datetime = models.DateTimeField() | |
some_timezone = models.CharField() |
This file contains 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
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: |