Last active
August 28, 2021 03:16
-
-
Save dannyBuonocore/b10ab36403f97db7cd8d1c73be9a4bec to your computer and use it in GitHub Desktop.
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 | |
payload = { | |
"currency": "USD", | |
"sort": "rank", | |
"order": "ascending", | |
"offset": 0, | |
"limit": 50, | |
"meta": True | |
} | |
headers = { | |
"x-api-key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | |
"Content-Type": "application/json" | |
} | |
response = requests.post("https://api.livecoinwatch.com/coins/list", data=json.dumps(payload), headers=headers) | |
print(response.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment