Skip to main content

Unofficial LunarCrush API v2 Wrapper for Python.

Project description

LunarCrush-API

Unofficial LunarCrush API v2 Wrapper for Python. No API key needed!

Installation

LunarCrush-API is supported on Python 3.6+. You can install this package via pip:

pip install lunarcrush

Quickstart

1. Create an instance of LunarCrush

from lunarcrush import LunarCrush

lc = LunarCrush()

2. Start requesting information!

eth_1_year_data = lc.get_assets(symbol=['ETH'],
                                data_points=365, interval='day')

Warning!

Due to the constant changes in LunarCrush internal API, some parameters might NOT work properly, making the server to response with a 5XX error.

API Endpoints

Here is a short description for the LunarCrush API v2 Endpoints. You can find more details about the request parameters in https://legacy.lunarcrush.com/developers/docs

Method Description
get_assets(symbol, time_series_indicators, change, data_points, start, end) Details, overall metrics, and time series metrics for one or multiple assets.
get_market(limit, page, sort) Summary information for all supported assets (Markets page) including 5 recent time series values for some metrics.
get_market_pairs(symbol, limit, page) Provides the exchange information for assets, and the other assets they are being traded for.
get_global(interval, change, data_points) Overall aggregated metrics for all supported assets (top of Markets page).
get_meta(type) Meta information for all supported assets
get_exchange(exchange) Meta information and market pairs for a single exchange that we track
get_exchanges(limit, order_by) Meta information for all exchanges that we track
get_coin_of_the_day() The current coin of the day
get_coin_of_the_day_info() Provides the history of the coin of the day on LunarCRUSH when it was last changed, and when each coin was last coin of the day
get_feeds(sources, page, type, limit, start, end) Social posts, news, and shared links for one or multiple coins.
get_influencer(id, screen_name, days, page, limit?) Individual influencer details including actual posts.
get_influencers(symbol, days, num_days, order_by, limit) List of social accounts that have the most influence on different assets based on number of followers, engagements and volume of posts.

LunarCrush Metrics description

Metric Description
GALAXY SCORE The Galaxy Score™ indicates how healthy a coin is by looking at combined performance indicators across markets and social engagement. Display the real-time Galaxy Score™ of any coin.
ALT RANK AltRank™ measures a coin's performance VS. all other coins that we actively support. In general, it is a unique measurement that combines ALT coin price performance relative to Bitcoin and other social activity indicators across the entire crypto market. A coin can have a high AltRank of 1 even in a bear market situation.
INFLUENCERS View Twitter influencer activity and their impact across all coins and tokens. All influencers are measured by the same metrics, which includes followers, replies, favorites, and retweets. Metrics are evaluated across all collected posts during the timeframe selected. Actual influence will vary over time and will depend on user activity.
CANDLESTICK The incredibly powerful Candlestick widget takes any data point and compares it to price over a specified timeframe.
WORD CLOUD Uncover keywords used throughout collected social content for any coin. The Word Cloud is generated from all recent and available social posts from Twitter and Reddit. It looks at frequency of mentions. All data is segmented by either all coins or specific, individual coins.
SOCIAL FEED Display social feeds from multiple sources including Twitter, Reddit, news channels and more all at once. Gain unique insights into what's being talked about in real time. All social feeds have been cleaned with spam removed and can be organized by coin.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lunarcrush-1.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

lunarcrush-1.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file lunarcrush-1.0.1.tar.gz.

File metadata

  • Download URL: lunarcrush-1.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for lunarcrush-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e3aaeddd6d1fe9d57b2628ee2de8e4f8e05473e08d14088a78a03819d295848b
MD5 011e6c028b13b1e2049a3c32f2c4a093
BLAKE2b-256 2a61b4a72c7a9522f630636e102222f0c6183b0f33227f205851888a30532cde

See more details on using hashes here.

File details

Details for the file lunarcrush-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: lunarcrush-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for lunarcrush-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65d73db204f8315e612a707c027679b71977b673af302001e61e884f9f1f5c72
MD5 f0b587e4979fa354c1f172cf44547e58
BLAKE2b-256 89296b6744cc046bf357802003a4f9b3d7a8e46314160982e81f18e826b79764

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page