Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
cb9dc6d
feat: upgrade tokens endpoint to v3 API
HarshGautam7101 Sep 23, 2025
fd2b2e2
feat: update trading signals endpoint for v3 API
HarshGautam7101 Sep 23, 2025
6574a8f
feat: update price endpoint for v3 API
HarshGautam7101 Sep 23, 2025
e5c4d5a
feat: update OHLCV and moonshot endpoints for v3 API
HarshGautam7101 Sep 23, 2025
cc65b0a
feat: update technology grades and quantmetrics endpoints for v3 API
HarshGautam7101 Sep 23, 2025
593acd6
feat: update grades and signals endpoints for v3 API
HarshGautam7101 Sep 23, 2025
ef0d9bd
feat: update TM grades, price prediction, and market metrics endpoint…
HarshGautam7101 Sep 23, 2025
6a050f4
feat: update AI reports, top market cap, and crypto investors endpoin…
HarshGautam7101 Sep 23, 2025
6e48a04
feat: update indices and correlation endpoints for v3 API
HarshGautam7101 Sep 23, 2025
0c108ec
refactor: remove unused token-metrics-ai endpoint
HarshGautam7101 Sep 23, 2025
c68123f
Merge branch 'master' into token-metrics-v3-upgrade
HarshGautam7101 Sep 23, 2025
ad9dcda
chore: update token_metrics package version to 0.1.0
HarshGautam7101 Sep 23, 2025
376e000
Merge branch 'master' into token-metrics-v3-upgrade
HarshGautam7101 Sep 23, 2025
635fbdc
docs: update all documentation URLs to v3 API reference
HarshGautam7101 Sep 23, 2025
3f21c40
Merge branch 'token-metrics-v3-upgrade' of https://github.com/HarshGa…
HarshGautam7101 Sep 23, 2025
db83a46
fix: update tokenName description in hourly-ohlcv component
HarshGautam7101 Sep 23, 2025
17c1487
refactor: make expand parameter multi-select for better UX
HarshGautam7101 Sep 23, 2025
781ee53
Merge branch 'master' into token-metrics-v3-upgrade
HarshGautam7101 Sep 24, 2025
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 @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.AI_REPORTS;
export default {
key: "token_metrics-get-ai-reports",
name: "Get AI Reports",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/ai-reports)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/ai-reports)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -22,6 +22,12 @@ export default {
],
description: "Select Token IDs to get AI reports for. Example: `37493,3484`",
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
},
symbol: {
propDefinition: [
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.CORRELATION;
export default {
key: "token_metrics-get-correlation",
name: "Get Correlation",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/correlation)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/correlation)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -21,12 +21,24 @@ export default {
"tokenId",
],
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
},
symbol: {
propDefinition: [
tokenMetrics,
"symbol",
],
},
slug: {
propDefinition: [
tokenMetrics,
"slug",
],
},
category: {
propDefinition: [
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.CRYPTO_INVESTORS;
export default {
key: "token_metrics-get-crypto-investors",
name: "Get Crypto Investors",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/crypto-investors)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/crypto-investors)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.DAILY_OHLCV;
export default {
key: "token_metrics-get-daily-ohlcv",
name: "Get Daily OHLCV",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/daily-ohlcv)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/daily-ohlcv)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -21,18 +21,24 @@ export default {
"tokenId",
],
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
description: "Select crypto asset names to filter results. Example: `Bitcoin`",
},
symbol: {
propDefinition: [
tokenMetrics,
"symbol",
],
},
tokenName: {
slug: {
propDefinition: [
tokenMetrics,
"tokenName",
"slug",
],
description: "Select crypto asset names to filter results. Example: `Bitcoin`",
},
startDate: {
propDefinition: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.FUNDAMENTAL_GRADES_HISTORICAL;
export default {
key: "token_metrics-get-fundamental-grades-historical",
name: "Get Fundamental Grades Historical",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/fundamental-grade-history)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/fundamental-grade-history)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -34,6 +34,12 @@ export default {
"symbol",
],
},
slug: {
propDefinition: [
tokenMetrics,
"slug",
],
},
startDate: {
propDefinition: [
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.FUNDAMENTAL_GRADES;
export default {
key: "token_metrics-get-fundamental-grades",
name: "Get Fundamental Grades",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/fundamental-grade)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/fundamental-grade)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -34,6 +34,12 @@ export default {
"symbol",
],
},
slug: {
propDefinition: [
tokenMetrics,
"slug",
],
},
// Pagination props
limit: {
propDefinition: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.HOURLY_OHLCV;
export default {
key: "token_metrics-get-hourly-ohlcv",
name: "Get Hourly OHLCV",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/hourly-ohlcv)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/hourly-ohlcv)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -21,18 +21,24 @@ export default {
"tokenId",
],
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
description: "Select crypto asset names to filter results. Example: `Bitcoin`",
},
symbol: {
propDefinition: [
tokenMetrics,
"symbol",
],
},
tokenName: {
slug: {
propDefinition: [
tokenMetrics,
"tokenName",
"slug",
],
description: "Select crypto asset names to filter results. Example: `Bitcoin,Ethereum`",
},
startDate: {
propDefinition: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.HOURLY_TRADING_SIGNALS;
export default {
key: "token_metrics-get-hourly-trading-signals",
name: "Get Hourly Trading Signals",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/hourly-trading-signals)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/hourly-trading-signals)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -21,7 +21,24 @@ export default {
"tokenId",
],
description: "Select Token IDs to filter results",
optional: false,
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
},
symbol: {
propDefinition: [
tokenMetrics,
"symbol",
],
},
slug: {
propDefinition: [
tokenMetrics,
"slug",
],
},
// Pagination props
limit: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.INDICES_HOLDINGS;
export default {
key: "token_metrics-get-indices-holdings",
name: "Get Indices Holdings",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/indices-holdings)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/indices-holdings)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.INDICES_PERFORMANCE;
export default {
key: "token_metrics-get-indices-performance",
name: "Get Indices Performance",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/indices-performance)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/indices-performance)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand Down
4 changes: 2 additions & 2 deletions components/token_metrics/actions/get-indices/get-indices.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.INDICES;
export default {
key: "token_metrics-get-indices",
name: "Get Indices",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/indices)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/indices)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.MARKET_METRICS;
export default {
key: "token_metrics-get-market-metrics",
name: "Get Market Metrics",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/market-metrics)`,
version: "0.0.2",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/market-metrics)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.MOONSHOT_TOKENS;
export default {
key: "token_metrics-get-moonshot-tokens",
name: "Get Moonshot Tokens",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/moonshot-tokens)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/moonshot-tokens)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -21,6 +21,12 @@ export default {
"type",
],
},
sortBy: {
propDefinition: [
tokenMetrics,
"sortBy",
],
},
// Pagination props
limit: {
propDefinition: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import {
buildParams, generateFilterSummary,
} from "../../common/utils.mjs";

const endpoint = ENDPOINTS.SCENARIO_ANALYSIS;
const endpoint = ENDPOINTS.PRICE_PREDICTION;

export default {
key: "token_metrics-get-scenario-analysis",
name: "Get Scenario Analysis",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/scenario-analysis)`,
version: "0.0.1",
key: "token_metrics-get-price-prediction",
name: "Get Price Prediction",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/price-prediction)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -21,12 +21,24 @@ export default {
"tokenId",
],
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
},
symbol: {
propDefinition: [
tokenMetrics,
"symbol",
],
},
slug: {
propDefinition: [
tokenMetrics,
"slug",
],
},
// Pagination props
limit: {
propDefinition: [
Expand All @@ -49,7 +61,7 @@ export default {
// Build parameters using utility function
const params = buildParams(this, endpoint.filters);

const response = await this.tokenMetrics.getScenarioAnalysis({
const response = await this.tokenMetrics.getPricePrediction({
$,
params,
});
Expand All @@ -59,7 +71,7 @@ export default {

// Use $ context for export
const dataLength = response.data?.length || 0;
$.export("$summary", `Successfully retrieved scenario analysis for ${dataLength} tokens${filterSummary}`);
$.export("$summary", `Successfully retrieved price prediction for ${dataLength} tokens${filterSummary}`);

return response;
},
Expand Down
22 changes: 20 additions & 2 deletions components/token_metrics/actions/get-price/get-price.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const endpoint = ENDPOINTS.PRICE;
export default {
key: "token_metrics-get-price",
name: "Get Price",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/price)`,
version: "0.0.1",
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/v3/reference/price)`,
version: "0.1.0",
type: "action",
props: {
tokenMetrics,
Expand All @@ -22,6 +22,24 @@ export default {
],
description: "Select Token IDs to get prices for. Example: `3375,3306`",
},
tokenName: {
propDefinition: [
tokenMetrics,
"tokenName",
],
},
symbol: {
propDefinition: [
tokenMetrics,
"symbol",
],
},
slug: {
propDefinition: [
tokenMetrics,
"slug",
],
},
// Pagination props
limit: {
propDefinition: [
Expand Down
Loading
Loading