+
+ {item?.title}
+
+
+ {#if item?.selftext?.length !== 0}
+
+ {#if $screenWidth < 640}
+ {item?.selftext?.length > 400
+ ? removeHttpsStrings(item?.selftext)?.slice(
+ 0,
+ 240,
+ ) + "..."
+ : removeHttpsStrings(item?.selftext)}
+ {:else}
+ {item?.selftext?.length > 1000
+ ? removeHttpsStrings(item?.selftext)?.slice(
+ 0,
+ 800,
+ ) + "..."
+ : removeHttpsStrings(item?.selftext)}
+ {/if}
+
+ {/if}
+
+
+
+
+
+
+
+ {#if item?.thumbnail !== null && item?.thumbnail}
+
+
+
+
+

+
+ {/if}
+
+
+
+ Posted by {item?.author}
+
- {item?.title}
+ {formatUtcTimestamp(item?.created_utc)}
+
-
- {#if item?.selftext?.length !== 0}
-
- {#if $screenWidth < 640}
- {item?.selftext?.length > 400
- ? removeHttpsStrings(item?.selftext)?.slice(
- 0,
- 240,
- ) + "..."
- : removeHttpsStrings(item?.selftext)}
- {:else}
- {item?.selftext?.length > 1000
- ? removeHttpsStrings(item?.selftext)?.slice(
- 0,
- 800,
- ) + "..."
- : removeHttpsStrings(item?.selftext)}
- {/if}
-
- {/if}
-
-
-
-
-
-
-
-
-
- {/each}
-
-
-
-
-
-
- Last 14 Days Trend
-
-
-
-
-
-
- Rank
- Symbol
- Mentions
- Calls
- Puts
- Sentiment
- Price
- % Change
-
-
-
- {#each data?.getRedditTracker?.trending as item, index}
-
-
- #{index + 1}
-
-
-
-
-
- {item?.name}
-
-
-
- {item?.count}
- {item?.call}
- {item?.put}
- {item?.avgSentiment > 0.4
- ? "Bullish"
- : item?.avgSentiment <= -0.1
- ? "Bearish"
- : "Neutral"}
-
- {item?.price?.toFixed(2)}
-
-
-
- {#if item?.changesPercentage > 0}
- +{item?.changesPercentage?.toFixed(2)}%
- {:else}
- {item?.changesPercentage?.toFixed(2)}%
- {/if}
-
-
-
- {/each}
-
-
+
+ {/each}