Skip to content

Commit 6e48a04

Browse files
feat: update indices and correlation endpoints for v3 API
- Add token_name and slug parameters to correlation endpoint - Update indices, indices-holdings, and indices-performance endpoint versions - Update component versions to 0.1.0 - Enable enhanced filtering capabilities for correlation analysis
1 parent 6a050f4 commit 6e48a04

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

components/token_metrics/actions/get-correlation/get-correlation.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
key: "token_metrics-get-correlation",
1111
name: "Get Correlation",
1212
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/correlation)`,
13-
version: "0.0.1",
13+
version: "0.1.0",
1414
type: "action",
1515
props: {
1616
tokenMetrics,
@@ -21,12 +21,24 @@ export default {
2121
"tokenId",
2222
],
2323
},
24+
tokenName: {
25+
propDefinition: [
26+
tokenMetrics,
27+
"tokenName",
28+
],
29+
},
2430
symbol: {
2531
propDefinition: [
2632
tokenMetrics,
2733
"symbol",
2834
],
2935
},
36+
slug: {
37+
propDefinition: [
38+
tokenMetrics,
39+
"slug",
40+
],
41+
},
3042
category: {
3143
propDefinition: [
3244
tokenMetrics,

components/token_metrics/actions/get-indices-holdings/get-indices-holdings.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
key: "token_metrics-get-indices-holdings",
1111
name: "Get Indices Holdings",
1212
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/indices-holdings)`,
13-
version: "0.0.1",
13+
version: "0.1.0",
1414
type: "action",
1515
props: {
1616
tokenMetrics,

components/token_metrics/actions/get-indices-performance/get-indices-performance.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
key: "token_metrics-get-indices-performance",
1111
name: "Get Indices Performance",
1212
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/indices-performance)`,
13-
version: "0.0.1",
13+
version: "0.1.0",
1414
type: "action",
1515
props: {
1616
tokenMetrics,

components/token_metrics/actions/get-indices/get-indices.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
key: "token_metrics-get-indices",
1111
name: "Get Indices",
1212
description: `${endpoint.description}. [See the documentation](https://developers.tokenmetrics.com/reference/indices)`,
13-
version: "0.0.1",
13+
version: "0.1.0",
1414
type: "action",
1515
props: {
1616
tokenMetrics,

components/token_metrics/common/constants.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ export const ENDPOINTS = {
220220
description: "Get the Top 10 and Bottom 10 correlation of tokens with the top 100 market cap tokens",
221221
filters: [
222222
"token_id",
223+
"token_name",
223224
"symbol",
225+
"slug",
224226
"category",
225227
"exchange",
226228
],

0 commit comments

Comments
 (0)