Skip to content

Instantly share code, notes, and snippets.

@nrese
Last active July 25, 2021 10:53
Show Gist options
  • Select an option

  • Save nrese/9fd5c334fbea8856fb7ae4123ec82d3f to your computer and use it in GitHub Desktop.

Select an option

Save nrese/9fd5c334fbea8856fb7ae4123ec82d3f to your computer and use it in GitHub Desktop.
import urllib.request
url = "https://api.lunarcrush.com/v2?data=market&key={API_KEY_HERE}"
print(urllib.request.urlopen(url).read())
{
"config": {
"data": "market"
},
"usage": {
"day": 16,
"month": 104
},
"data": [{
"s": "KAVA",
"n": "Kava",
"p": 1.080387,
"p_btc": 0.000110400073805536,
"v": 17099674.06,
"vt": 0.08228840950731763,
"pc": 14.73,
"pch": -0.5,
"mc": 29376436,
"gs": 64,
"ss": 4145358,
"sp": 167,
"t": 392,
"sv": 436,
"u": 100,
"c": 18,
"sd": 0.20971520098508425,
"d": 0.01053918849762729,
"acr": 1,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment