forked from pAulseperformance/cryptopanic_API_Wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat.py
More file actions
20 lines (15 loc) · 625 Bytes
/
Copy pathformat.py
File metadata and controls
20 lines (15 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
CryptoPanic API Formatter.
Use Wrapper to make calls and get data.
Format data for streaming input and monitoring.
Historical Data seems to be limited to 12/24/2018 but there is no Documentation.
"""
import api_gather
# from importlib import reload
# reload(api_gather)
url_everything = api_gather.make_url(filter='hot')
everything_pages_last_100 = api_gather.get_pages_list_json(9, url_everything)
everything_pages_last_100_results = []
for page in everything_pages_last_100:
everything_pages_last_100_results.append(page['results'])
df_results = api_gather.concatenate_pages(everything_pages_last_100_results)