Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kyberai add more ranking list #2268

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const mapTypeTitle = {
// [KyberAIListType.TOP_SOCIAL]: t`Top Social Tokens`,
[KyberAIListType.TRENDING_SOON]: t`Trending Soon Tokens`,
[KyberAIListType.TRENDING]: t`Top Trending Tokens`,
[KyberAIListType.FUNDING_RATE]: t`Funding Rates`,
[KyberAIListType.KYBERSWAP_DELTA]: t`Kyberscore Delta`,
}

export default function TokenAnalysisListShareContent({
Expand Down
4 changes: 4 additions & 0 deletions src/pages/TrueSightV2/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export enum MIXPANEL_KYBERAI_TAG {
RANKING_TOP_TRADED = 'ranking_top_traded',
RANKING_TRENDING_SOON = 'ranking_trending_soon',
RANKING_CURRENTLY_TRENDING = 'ranking_currently_trending',
RANKING_FUNDING_RATE = 'ranking_funding_rate',
RANKING_KYBERSCORE_DELTA = 'ranking_kyberscore_delta',
EXPLORE_SHARE_THIS_TOKEN = 'explore_share_this_token',
}

Expand All @@ -56,6 +58,8 @@ export const KYBERAI_LISTYPE_TO_MIXPANEL = {
[KyberAIListType.TOP_TRADED]: MIXPANEL_KYBERAI_TAG.RANKING_TOP_TRADED,
[KyberAIListType.TRENDING_SOON]: MIXPANEL_KYBERAI_TAG.RANKING_TRENDING_SOON,
[KyberAIListType.TRENDING]: MIXPANEL_KYBERAI_TAG.RANKING_CURRENTLY_TRENDING,
[KyberAIListType.FUNDING_RATE]: MIXPANEL_KYBERAI_TAG.RANKING_FUNDING_RATE,
[KyberAIListType.KYBERSWAP_DELTA]: MIXPANEL_KYBERAI_TAG.RANKING_KYBERSCORE_DELTA,
}

export enum KYBERAI_CHART_ID {
Expand Down
24 changes: 24 additions & 0 deletions src/pages/TrueSightV2/pages/TokenAnalysisList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,17 @@ const tokenTypeList: {
</span>
),
},
{
type: KyberAIListType.KYBERSWAP_DELTA,
title: t`Kyberscore Delta`,
icon: 'bearish',
tooltip: theme => (
<span>
Tokens with a <span style={{ color: theme.text }}>significant change in KyberScore</span> between two
consecutive time periods. This may indicate a change in trend of the token
</span>
),
},
{
type: KyberAIListType.TOP_CEX_INFLOW,
title: t`Top CEX Positive Netflow`,
Expand All @@ -330,6 +341,18 @@ const tokenTypeList: {
</span>
),
},
{
type: KyberAIListType.FUNDING_RATE,
title: t`Funding Rates`,
icon: 'coin-bag',
tooltip: () => (
<span>
Tokens with funding rates on centralized exchanges. Positive funding rate suggests traders are bullish and
vice-versa for negative funding rates. Extremely positive or negative funding rates may result in leveraged
positions getting squeezed.
</span>
),
},
{
type: KyberAIListType.TOP_TRADED,
title: t`Top Traded`,
Expand Down Expand Up @@ -729,6 +752,7 @@ const LoadingRowSkeleton = ({ hasExtraCol }: { hasExtraCol?: boolean }) => {
</>
)
}

export default function TokenAnalysisList() {
const theme = useTheme()
const mixpanelHandler = useMixpanelKyberAI()
Expand Down
21 changes: 11 additions & 10 deletions src/pages/TrueSightV2/types/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,15 @@ export type ParticipantInfo = {
}

export enum KyberAIListType {
ALL = 'ALL',
MYWATCHLIST = 'MY_WATCHLIST',
BULLISH = 'BULLISH',
BEARISH = 'BEARISH',
TRENDING = 'TRENDING',
TOP_CEX_INFLOW = 'TOP_CEX_INFLOW',
TOP_CEX_OUTFLOW = 'TOP_CEX_OUTFLOW',
TOP_TRADED = 'TOP_TRADED',
// TOP_SOCIAL = 'TOP_SOCIAL',
TRENDING_SOON = 'TRENDINGSOON',
ALL = 'all',
MYWATCHLIST = 'my_watchlist',
BULLISH = 'bullish',
BEARISH = 'bearish',
TRENDING = 'trending',
TOP_CEX_INFLOW = 'top_cex_inflow',
TOP_CEX_OUTFLOW = 'top_cex_outflow',
TOP_TRADED = 'top_traded',
TRENDING_SOON = 'trendingsoon',
FUNDING_RATE = 'funding_rate_asc',
KYBERSWAP_DELTA = 'kyber_score_delta_asc',
}
Loading