Bitfinex Ticker
""" https://bitfinex.readme.io/v2/reference#rest-public-ticker // on trading pairs (ex. tBTCUSD) [ BID, BID_SIZE, ASK, ASK_SIZE, DAILY_CHANGE, DAILY_CHANGE_PERC, LAST_PRICE, VOLUME, HIGH, LOW ] """ import requests from time import sleep api = "https://api.bitfinex.com/v2/{}/" currency_pair = "tBTCUSD" while(True): data_bitfinex = requests.get(api.format("ticker") + currency_pair) print(data_bitfinex.json()) sleep(5)