Mayson Monorepo Documentation
    Preparing search index...

    Variable cryptoPanicConst

    cryptoPanic: {
        fetchMarketNews: (
            category?: "crypto" | "all" | "stocks" | "macro",
            limit?: number,
        ) => Promise<FormattedNewsArticle[]>;
        fetchTokenNews: (
            symbol: string,
            limit?: number,
        ) => Promise<FormattedNewsArticle[]>;
        isConfigured: () => boolean;
    } = ...

    CryptoPanic service object with all functions

    Type Declaration

    • fetchMarketNews: (
          category?: "crypto" | "all" | "stocks" | "macro",
          limit?: number,
      ) => Promise<FormattedNewsArticle[]>

      Fetch general market news

    • fetchTokenNews: (symbol: string, limit?: number) => Promise<FormattedNewsArticle[]>

      Fetch news for a specific token/currency

    • isConfigured: () => boolean

      Check if CryptoPanic API is configured