MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 57쪽

dcode %} {% endtab %} {% endtabs %} # Crypto News Obtain ticker and general crypto news {% hint style="info" %} This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully. You need to pass both the `action` and other input parameters of the chosen action to your `module_config` {% endhint %} ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1784593708744855552) to try this widget and copy the Pro Config template. ## Usage ### Crypto Ticker News <mark style="color:green;">`action`</mark> `crypto_ticker_news` Use this endpoint to obtain news for one ticker/symbol. If you want to retrieve news for multiple tickers/symbols, separate them with a comma. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>crypto_tickers_news</td><td>true</td></tr><tr><td>tickers</td><td><code>string</code></td><td>The ticker symbol of the cryptocurrency to get news for. If you want to retrieve news for multiple tickers/symbols separate them with a comma</td><td>BTC</td><td>true</td></tr><tr><td>items</td><td><code>integer</code></td><td>The number of news items to return</td><td>3</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "date": "Sun, 28 Apr 2024 10:30:31 -0400", "image_url": "https://crypto.snapi.dev/images/v1/s/l/btc-due-for-ralliesjpgw1024-479657.jpg", "news_url": "https://dailyhodl.com/2024/04/28/bitcoin-whale-aggressively-accumulates-282380000-worth-of-btc-during-correction-on-chain-data/", "sentiment": "Positive", "source_name": "The Daily Hodl", "text": "A Bitcoin whale has stacked over $282 million in BTC since late March as the flagship digital asset struggles to find a bottom after hitting all-time highs. First spotted by blockchain tracking firm Lookonchain, an address beginning with “12QVsfA” bought 4,380 BTC worth $282.38 at an average price of $64,471.", "tickers": [ "BTC" ], "title": "Bitcoin Whale Aggressively Accumulates $282,380,000 Worth of BTC During Correction: On-Chain Data", "topics": [ "whales", "pricemovement" ], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:24:35 -0400", "image_url": "https://crypto.snapi.dev/images/v1/s/m/crypto10-479656.jpg", "news_url": "https://thecurrencyanalytics.com/marketmovers/lido-dao-sees-short-term-boost-as-bitcoin-faces-challenges-crypto-analyst-insights-111481", "sentiment": "Positive", "source_name": "The Currency Analytics", "text": "In the ever-evolving landscape of cryptocurrencies, expert analysis serves as a guiding light for investors navigating the turbulent waters of the market. Recent insights from seasoned crypto analyst Ali Martinez shed light on both promising opportunities and looming challenges in the realm of digital assets.", "tickers": [ "BTC", "LDO" ], "title": "Lido DAO Sees Short-Term Boost as Bitcoin Faces Challenges: Crypto Analyst Insights", "topics": [], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:10:09 -0400", "image_url": "https://crypto.snapi.dev/images/v1/6/e/btc-etf-479653.jpg", "news_url": "https://thenewscrypto.com/bitcoin-etfs-in-us-experience-328m-net-outflow-in-volatile-week/?utm_source=snapi", "sentiment": "Negative", "source_name": "TheNewsCrypto", "text": "A massive outflow of $328 million was shown throughout the week. Grayscale's GBTC was the most heavily affected ETF.", "tickers": [ "BTC" ], "title": "Bitcoin ETFs in US Experience $328M Net Outflow in Volatile Week", "topics": [ "pricemovement" ], "type": "Article" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### General Crypto News <mark style="color:green;">`action`</mark> `general_cypto_news` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>general_crypto_news</td><td>true</td></tr><tr><td>items</td><td><code>integer</code></td><td>The number of news items to return</td><td>3</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "date": "Sun, 28 Apr 2024 10:46:42 -0400", "image_url": "https://crypto.snapi.dev/images/v1/o/n/crypto-news-russian-banker-option01-479667.webp", "news_url": "https://crypto.news/beribit-angers-clients-russia-officials-consider-ban/", "sentiment": "Negative", "source_name": "Crypto news", "text": "Protests erupt at Beribit's Moscow office, with clients clamoring for the return of approximately 400 million rubles, funds they were unable to withdraw for several days.", "title": "Beribit in turmoil after Russian officials contemplate crypto exchange ban", "topics": [], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:10:44 -0400", "image_url": "https://crypto.snapi.dev/images/v1/g/a/crypto-news-court-peoples04-479654.webp", "news_url": "https://crypto.news/custodia-bank-against-court-ruling-fed-masters-account/", "sentiment": "Negative", "source_name": "Crypto news", "text": "Custodia Bank has filed a notice of appeal on April 26, challenging a lower court's decision from March denying its attempt to officially join the U.S. banking system.", "title": "Custodia Bank claps back against court ruling, wants Fed master account", "topics": [], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:00:36 -0400", "image_url": "https://crypto.snapi.dev/images/v1/w/v/crypto-legislation-479650.webp", "news_url": "https://coinspress.com/congressman-supports-joint-legislation-on-cannabis-banking-and-stablecoin-regulation/?utm_source=snapi", "sentiment": "Positive", "source_name": "Coinspress", "text": "GOP Representative French Hill, a prominent member of the Financial Services Committee, has voiced his support for a legislative package that intertwines marijuana banking and stablecoin regulation.", "title": "Congressman Supports Joint Legislation on Cannabis Banking and Stablecoin Regulation", "topics": [ "stablecoins", "regulations" ], "type": "Article" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Top mentioned Tickers <mark style="color:green;">`action`</mark> `top_mentionaed_tickers` Retrieve the top 50 most mentioned tickers. Use the \&date= parameter to specify your desired date range. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>top_mentionaed_tickers</td><td>true</td></tr><tr><td>date</td><td><code>string</code></td><td>The date to get news for. Please use the following format: MMDDYYYY. You can also use: last5min, last10min, last15min, last30min, last45min, last60min, today, yesterday, last7days, last30days, last60days, last90days, yeartodate.</td><td>last7days</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "data": { "all": [ { "name": "Bitcoin", "negative_mentions": 328, "neutral_mentions": 43, "positive_mentions": 793, "sentiment_score": 0.599, "ticker": "BTC", "total_mentions": 1164 }, { "name": "Ethereum", "negative_mentions": 147, "neutral_mentions": 15, "positive_mentions": 208, "sentiment_score": 0.247, "ticker": "ETH", "total_mentions": 370 }, { "name": "Ripple", "negative_mentions": 80, "neutral_mentions": 18, "positive_mentions": 138, "sentiment_score": 0.369, "ticker": "XRP", "total_mentions": 236 }, { "name": "Solana", "negative_mentions": 31, "neutral_mentions": 8, "positive_mentions": 147, "sentiment_score": 0.935, "ticker": "SOL", "total_mentions": 186 }, { "name": "SHIBA INU", "negative_mentions": 22, "neutral_mentions": 8, "positive_mentions": 152, "sentiment_score": 1.071, "ticker": "SHIB", "total_mentions": 182 }, { "name": "Dogecoin", "negative_mentions": 31, "neutral_mentions": 2, "positive_mentions": 63, "sentiment_score": 0.5, "ticker": "DOGE", "total_mentions": 96 }, { "name": "Cardano", "negative_mentions": 21, "neutral_mentions": 6, "positive_mentions": 45, "sentiment_score": 0.5, "ticker": "ADA", "total_mentions": 72 }, { "name": "Pepe", "negative_mentions": 1, "neutral_mentions": 2, "positive_mentions": 56, "sentiment_score": 1.398, "ticker": "PEPE", "total_mentions": 59 }, { "name": "Tether", "negative_mentions": 20, "neutral_mentions": 2, "positive_mentions": 31, "sentiment_score": 0.311, "ticker": "USDT", "total_mentions": 53 }, { "name": "Bonk", "negative_mentions": 3, "neutral_mentions": 3, "positive_mentions": 43, "sentiment_score": 1.224, "ticker": "BONK", "total_mentions": 49 }, { "name": "Dogwifhat", "negative_mentions": 7, "neutral_mentions": 1, "positive_mentions": 39, "sentiment_score": 1.021, "ticker": "WIF", "total_mentions": 47 }, { "name": "Hedera Hashgraph", "negative_mentions": 11, "neutral_mentions": 3, "positive_mentions": 31, "sentiment_score": 0.667, "ticker": "HBAR", "total_mentions": 45 }, { "name": "Binance Coin", "negative_mentions": 4, "neutral_mentions": 2, "positive_mentions": 35, "sentiment_score": 1.134, "ticker": "BNB", "total_mentions": 41 }, { "name": "Terra Classic", "negative_mentions": 29, "neutral_mentions": 2, "positive_mentions": 9, "sentiment_score": -0.75, "ticker": "LUNC", "total_mentions": 40 }, { "name": "Polygon", "negative_mentions": 5, "neutral_mentions": 3, "positive_mentions": 29, "sentiment_score": 0.973, "ticker": "MATIC", "total_mentions": 37 }, { "name": "Toncoin", "negative_mentions": 6, "neutral_mentions": 1, "positive_mentions": 25, "sentiment_score": 0.891, "ticker": "TON", "total_mentions": 32 }, { "name": "USD Coin", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 29, "sentiment_score": 1.306, "ticker": "USDC", "total_mentions": 31 }, { "name": "Terra", "negative_mentions": 27, "neutral_mentions": 1, "positive_mentions": 1, "sentiment_score": -1.345, "ticker": "LUNA", "total_mentions": 29 }, { "name": "Polkadot", "negative_mentions": 5, "neutral_mentions": 1, "positive_mentions": 22, "sentiment_score": 0.911, "ticker": "DOT", "total_mentions": 28 }, { "name": "Polygon Ecosystem Token", "negative_mentions": 2, "neutral_mentions": 2, "positive_mentions": 21, "sentiment_score": 1.14, "ticker": "POL", "total_mentions": 25 }, { "name": "Worldcoin token", "negative_mentions": 5, "neutral_mentions": 2, "positive_mentions": 17, "sentiment_score": 0.75, "ticker": "WLD", "total_mentions": 24 }, { "name": "Renzo", "negative_mentions": 8, "neutral_mentions": 2, "positive_mentions": 11, "sentiment_score": 0.214, "ticker": "REZ", "total_mentions": 21 }, { "name": "Floki Inu", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 17, "sentiment_score": 1.05, "ticker": "FLOKI", "total_mentions": 20 }, { "name": "NEAR Protocol", "negative_mentions": 1, "neutral_mentions": 1, "positive_mentions": 16, "sentiment_score": 1.25, "ticker": "NEAR", "total_mentions": 18 }, { "name": "Optimism Token", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 14, "sentiment_score": 0.971, "ticker": "OP", "total_mentions": 17 }, { "name": "Chainlink", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 15, "sentiment_score": 1.147, "ticker": "LINK", "total_mentions": 17 }, { "name": "Arbitrum", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 14, "sentiment_score": 1.5, "ticker": "ARB", "total_mentions": 14 }, { "name": "Avalanche", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 11, "sentiment_score": 0.857, "ticker": "AVAX", "total_mentions": 14 }, { "name": "Celo", "negative_mentions": 0, "neutral_mentions": 1, "positive_mentions": 12, "sentiment_score": 1.385, "ticker": "CELO", "total_mentions": 13 }, { "name": "Akash Network", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 13, "sentiment_score": 1.5, "ticker": "AKT", "total_mentions": 13 }, { "name": "Stacks", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 11, "sentiment_score": 1.038, "ticker": "STX", "total_mentions": 13 }, { "name": "Litecoin", "negative_mentions": 6, "neutral_mentions": 0, "positive_mentions": 7, "sentiment_score": 0.115, "ticker": "LTC", "total_mentions": 13 }, { "name": "Uniswap", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 10, "sentiment_score": 1, "ticker": "UNI", "total_mentions": 12 }, { "name": "Popcat (SOL)", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 11, "sentiment_score": 1.5, "ticker": "POPCAT", "total_mentions": 11 }, { "name": "TRON", "negative_mentions": 1, "neutral_mentions": 2, "positive_mentions": 8, "sentiment_score": 0.955, "ticker": "TRX", "total_mentions": 11 }, { "name": "Jeo Boden", "negative_mentions": 1, "neutral_mentions": 0, "positive_mentions": 9, "sentiment_score": 1.2, "ticker": "BODEN", "total_mentions": 10 }, { "name": "Stellar Lumens", "negative_mentions": 1, "neutral_mentions": 0, "positive_mentions": 9, "sentiment_score": 1.2, "ticker": "XLM", "total_mentions": 10 }, { "name": "Immutable X", "negative_mentions": 0, "neutral_mentions": 1, "positive_mentions": 8, "sentiment_score": 1.333, "ticker": "IMX", "total_mentions": 9 }, { "name": "Fetch.ai", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 9, "sentiment_score": 1.5, "ticker": "FET", "total_mentions": 9 }, { "name": "Bitcoin Cash", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 6, "sentiment_score": 0.5, "ticker": "BCH", "total_mentions": 9 }, { "name": "Injective Protocol", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 8, "sentiment_score": 1.5, "ticker": "INJ", "total_mentions": 8 }, { "name": "Render Token", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 8, "sentiment_score": 1.5, "ticker": "RNDR", "total_mentions": 8 }, { "name": "BOOK OF MEME", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 7, "sentiment_score": 1.5, "ticker": "BOME", "total_mentions": 7 }, { "name": "Jupiter", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 7, "sentiment_score": 1.5, "ticker": "JUP", "total_mentions": 7 }, { "name": "Wormhole", "negative_mentions": 0, "neutral_mentions": 1, "positive_mentions": 6, "sentiment_score": 1.286, "ticker": "W", "total_mentions": 7 }, { "name": "Lido DAO", "negative_mentions": 4, "neutral_mentions": 0, "positive_mentions": 3, "sentiment_score": -0.214, "ticker": "LDO", "total_mentions": 7 }, { "name": "Tornado.Cash", "negative_mentions": 6, "neutral_mentions": 0, "positive_mentions": 0, "sentiment_score": -1.5, "ticker": "TORN", "total_mentions": 6 }, { "name": "Cosmos", "negative_mentions": 1, "neutral_mentions": 0, "positive_mentions": 5, "sentiment_score": 1, "ticker": "ATOM", "total_mentions": 6 }, { "name": "Ethena", "negative_mentions": 0, "neutral_mentions": 2, "positive_mentions": 3, "sentiment_score": 0.9, "ticker": "ENA", "total_mentions": 5 }, { "name": "Compound", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 5, "sentiment_score": 1.5, "ticker": "COMP", "total_mentions": 5 } ] } } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Sentiment Analysis <mark style="color:green;">`action`</mark> `sentiment_analysis` Retrieve the daily sentiment of Tickers and General Crypto News. Use the \&date= Parameter to specify your desired date range. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>sentiment_analysis</td><td>true</td></tr><tr><td>tickers</td><td><code>string</code></td><td>The ticker symbol of the cryptocurrency to get news for. If you want to retrieve news for multiple tickers/symbols separate them with a comma</td><td>BTC</td><td>true</td></tr><tr><td>date</td><td><code>string</code></td><td>The date to get news for. Please use the following format: MMDDYYYY. You can also use: last5min, last10min, last15min, last30min, last45min, last60min, today, yesterday, last7days, last30days, last60days, last90days, yeartodate.</td><td>last7days</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "data": { "2024-04-22": { "BTC": { "Negative": 42, "Neutral": 10, "Positive": 180, "sentiment_score": 0.892 } }, "2024-04-23": { "BTC": { "Negative": 31, "Neutral": 10, "Positive": 163, "sentiment_score": 0.971 } }, "2024-04-24": { "BTC": { "Negative": 34, "Neutral": 5, "Positive": 157, "sentiment_score": 0.941 } }, "2024-04-25": { "BTC": { "Negative": 95, "Neutral": 4, "Positive": 116, "sentiment_score": 0.147 } }, "2024-04-26": { "BTC": { "Negative": 66, "Neutral": 8, "Positive": 107, "sentiment_score": 0.34 } }, "2024-04-27": { "BTC": { "Negative": 45, "Neutral": 5, "Positive": 53, "sentiment_score": 0.117 } }, "2024-04-28": { "BTC": { "Negative": 16, "Neutral": 1, "Positive": 19, "sentiment_score": 0.125 } } }, "total": { "BTC": { "Sentiment Score": 0.599, "Total Negative": 329, "Total Neutral": 43, "Total Positive": 795 } }, "total_pages": 1 } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Events <mark style="color:green;">`action`</mark> `events` Retrieve the latest news events and eventIDs. Events are important headlines that are receiving a significant amount of news coverage. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>events</td><td>true</td></tr><tr><td>tickers</td><td><code>string</code></td><td>The ticker symbol of the cryptocurrency to get news for. If you want to retrieve news for multiple tickers/symbols separate them with a comma</td><td>BTC</td><td>true</td></tr><tr><td>search</td><td><code>string</code></td><td>The search term to filter news by</td><td></td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned
프로젝트로 돌아가기