Skip to content

Instantly share code, notes, and snippets.

@dannyBuonocore
Last active August 28, 2021 03:16
Show Gist options
  • Save dannyBuonocore/b10ab36403f97db7cd8d1c73be9a4bec to your computer and use it in GitHub Desktop.
Save dannyBuonocore/b10ab36403f97db7cd8d1c73be9a4bec to your computer and use it in GitHub Desktop.
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