Skip to content

Instantly share code, notes, and snippets.

@nrese
Last active May 7, 2021 09:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrese/b310c4546f21b26ce2f7ca7bd888eeff to your computer and use it in GitHub Desktop.
Save nrese/b310c4546f21b26ce2f7ca7bd888eeff to your computer and use it in GitHub Desktop.
{
"config": {
"data": "assets",
"symbol": "'BTC'",
"interval": "hour",
"data_points": 24
},
"usage": {
"day": 15,
"month": 103
},
"data": [{
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"price": 9798.977911,
"price_btc": 1,
"market_cap": 180245643159,
"percent_change_24h": 1.41,
"percent_change_7d": -1.89,
"percent_change_30d": 4.73,
"volume_24h": 26140524526.52,
"max_supply": "21000000",
"asset_id": 1,
"time": 1591315200,
"open": 9801.616408,
"high": 9806.977146,
"low": 9801.616408,
"volume": 353205420,
"url_shares": 1135,
"unique_url_shares": 659,
"reddit_posts": 1,
"reddit_posts_score": 1,
"reddit_comments": 1,
"reddit_comments_score": 1,
"tweets": 3758,
"tweet_spam": 338,
"tweet_followers": 14174661,
"tweet_quotes": 11,
"tweet_retweets": 338,
"tweet_replies": 110,
"tweet_favorites": 551,
"tweet_sentiment1": 85,
"tweet_sentiment2": 206,
"tweet_sentiment3": 685,
"tweet_sentiment4": 2564,
"tweet_sentiment5": 218,
"tweet_sentiment_impact1": 181592,
"tweet_sentiment_impact2": 1455907,
"tweet_sentiment_impact3": 3225871,
"tweet_sentiment_impact4": 8750266,
"tweet_sentiment_impact5": 562035,
"social_score": 14176806,
"average_sentiment": 3.7,
"sentiment_absolute": 3,
"sentiment_relative": 91,
"news": 47,
"price_score": 3,
"social_impact_score": 4.3,
"correlation_rank": 4.1,
"galaxy_score": 75.5,
"volatility": 0.01008901,
"alt_rank": 26,
"alt_rank_30d": 1,
"market_cap_rank": 1,
"percent_change_24h_rank": 657,
"volume_24h_rank": 2,
"social_volume_24h_rank": 1,
"social_score_24h_rank": 1,
"youtube": 47,
"social_contributors": 1963,
"social_volume": 4466,
"social_volume_global": 7118,
"social_dominance": 62.74234335487496,
"market_cap_global": 278814602122,
"market_dominance": 64.55374708002002,
"medium": 1,
}
import urllib.request
url = "https://api.lunarcrush.com/v2?data=assets&key={API_KEY_HERE}&symbol=BTC"
print(urllib.request.urlopen(url).read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment