def test_global_info(self): cur = Current(TestCoinsta.k) global_100 = cur.global_info() size = len(global_100) self.assertEqual(size, 11)
def test_global_info(self): glo_info = Current.global_info() no_keys = len(glo_info.keys()) self.assertEqual(no_keys, 5)
'2018/6/1', hyphen=False) another_btc = other_spec.get_data() print(another_btc.head()) # get current market information on a specified crypto btc_current = cur.get_current('btc') print(btc_current) # get the top 100 cryptos (in terms of market cap) current_100 = cur.top_100() print(current_100.head()) # get global overview of crypto markets glo_info = cur.global_info() print(glo_info) # Historical Snapshot snap_period = date(2013, 4, 28) early_2013 = HistoricalSnapshot(snap_period).get_snapshot() print(early_2013.info()) early_2013 = HistoricalSnapshot.from_strings('2013/4/28', hyphen=False) print(early_2013.info()) early_2013 = HistoricalSnapshot.from_strings('2013-4-28') print(early_2013.info()) print(Historical(ticker='btc', start=date(2016, 1, 2)))