🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@goat-sdk/plugin-coingecko

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goat-sdk/plugin-coingecko - npm Package Compare versions

Comparing version
0.2.6
to
0.2.7
+11
dist/api.d.mts
declare class CoinGeckoAPI {
private readonly apiKey;
private readonly isPro;
static readonly API_BASE_URL = "https://api.coingecko.com/api/v3";
static readonly PRO_API_BASE_URL = "https://pro-api.coingecko.com/api/v3";
constructor(apiKey: string, isPro: boolean);
request(endpoint: string, params: Record<string, string | boolean | number>, options?: RequestInit): Promise<any>;
private buildSearchParams;
}
export { CoinGeckoAPI };
declare class CoinGeckoAPI {
private readonly apiKey;
private readonly isPro;
static readonly API_BASE_URL = "https://api.coingecko.com/api/v3";
static readonly PRO_API_BASE_URL = "https://pro-api.coingecko.com/api/v3";
constructor(apiKey: string, isPro: boolean);
request(endpoint: string, params: Record<string, string | boolean | number>, options?: RequestInit): Promise<any>;
private buildSearchParams;
}
export { CoinGeckoAPI };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkC4P2ABX7js = require('./chunk-C4P2ABX7.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoAPI = _chunkC4P2ABX7js.a;
import{a}from"./chunk-NPG2MFNF.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoAPI};
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');var _zod = require('zod');var s=class extends _core.createToolParameters.call(void 0, _zod.z.object({network:_zod.z.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')"),addresses:_zod.z.array(_zod.z.string()).describe("The addresses of the pools to get data for")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetPoolDataByPoolAddressParameters")}},d= exports.b =class extends _core.createToolParameters.call(void 0, _zod.z.object({network:_zod.z.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetTrendingPoolsByNetworkParameters")}},n= exports.c =class extends _core.createToolParameters.call(void 0, _zod.z.object({include:_zod.z.array(_zod.z.enum(["base_token","quote_token","dex","network"])).describe("The fields to include in the response"),page:_zod.z.number().max(10).describe("The page number to get trending pools for"),duration:_zod.z.enum(["24h","6h","1h","5m"]).describe("The duration to get trending pools for")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetTrendingPoolsParameters")}},i= exports.d =class extends _core.createToolParameters.call(void 0, _zod.z.object({vsCurrency:_zod.z.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),duration:_zod.z.enum(["1h","24h","7d","14d","30d","60d","1y"]).optional().default("24h").describe("The duration to get top gainers/losers for"),topCoins:_zod.z.enum(["300","500","1000","all"]).optional().default("1000").describe("The number of top coins to get")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"TopGainersLosersParameters")}},a= exports.e =class extends _core.createToolParameters.call(void 0, _zod.z.object({network:_zod.z.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')"),address:_zod.z.string().describe("The address of the token to get data for")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetTokenDataByTokenAddressParameters")}},c= exports.f =class extends _core.createToolParameters.call(void 0, _zod.z.object({network:_zod.z.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')"),poolAddress:_zod.z.string().describe("The address of the pool to get data for")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetTokensInfoByPoolAddressParameters")}};exports.a = s; exports.b = d; exports.c = n; exports.d = i; exports.e = a; exports.f = c;
import{a as t}from"./chunk-YSXGDEY5.mjs";import{createToolParameters as o}from"@goat-sdk/core";import{z as e}from"zod";var s=class extends o(e.object({network:e.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')"),addresses:e.array(e.string()).describe("The addresses of the pools to get data for")})){static{t(this,"GetPoolDataByPoolAddressParameters")}},d=class extends o(e.object({network:e.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')")})){static{t(this,"GetTrendingPoolsByNetworkParameters")}},n=class extends o(e.object({include:e.array(e.enum(["base_token","quote_token","dex","network"])).describe("The fields to include in the response"),page:e.number().max(10).describe("The page number to get trending pools for"),duration:e.enum(["24h","6h","1h","5m"]).describe("The duration to get trending pools for")})){static{t(this,"GetTrendingPoolsParameters")}},i=class extends o(e.object({vsCurrency:e.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),duration:e.enum(["1h","24h","7d","14d","30d","60d","1y"]).optional().default("24h").describe("The duration to get top gainers/losers for"),topCoins:e.enum(["300","500","1000","all"]).optional().default("1000").describe("The number of top coins to get")})){static{t(this,"TopGainersLosersParameters")}},a=class extends o(e.object({network:e.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')"),address:e.string().describe("The address of the token to get data for")})){static{t(this,"GetTokenDataByTokenAddressParameters")}},c=class extends o(e.object({network:e.string().describe("The network id to get data for (e.g., 'eth', 'polygon_pos')"),poolAddress:e.string().describe("The address of the pool to get data for")})){static{t(this,"GetTokensInfoByPoolAddressParameters")}};export{s as a,d as b,n as c,i as d,a as e,c as f};
import{a as y,b as _,c as m,d as f,e as h,f as C,g as P,h as b}from"./chunk-OGDJL37P.mjs";import{a as l}from"./chunk-YSXGDEY5.mjs";import{Tool as p}from"@goat-sdk/core";function d(u,t,n,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(u,t,n,i);else for(var c=u.length-1;c>=0;c--)(o=u[c])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}l(d,"_ts_decorate");function e(u,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(u,t)}l(e,"_ts_metadata");var s=class{static{l(this,"CoinGeckoService")}api;constructor(t){this.api=t}async getTrendingCoins(t){return this.api.request("search/trending",{})}async getCoinPrices(t){let{coinIds:n,vsCurrency:i,includeMarketCap:r,include24hrVol:a,include24hrChange:o,includeLastUpdatedAt:c}=t;return this.api.request("simple/price",{ids:n.join(","),vs_currencies:i,include_market_cap:r,include_24hr_vol:a,include_24hr_change:o,include_last_updated_at:c})}async searchCoins(t){let{query:n}=t;return this.api.request("search",{query:n})}async getCoinPriceByContractAddress(t){let{id:n,contractAddresses:i,vsCurrency:r,includeMarketCap:a,include24hrVol:o,include24hrChange:c,includeLastUpdatedAt:g}=t;return this.api.request(`simple/token_price/${n}`,{contract_addresses:i.join(","),vs_currencies:r,include_market_cap:a,include_24hr_vol:o,include_24hr_change:c,include_last_updated_at:g})}async getCoinData(t){let{id:n,localization:i,tickers:r,marketData:a,communityData:o,developerData:c,sparkline:g}=t;return this.api.request(`coins/${n}`,{localization:i,tickers:r,market_data:a,community_data:o,developer_data:c,sparkline:g})}async getHistoricalData(t){let{id:n,date:i,localization:r}=t;return this.api.request(`coins/${n}/history`,{date:i,localization:r})}async getOHLCData(t){let{id:n,vsCurrency:i,days:r}=t;return this.api.request(`coins/${n}/ohlc`,{vs_currency:i,days:r})}async getTrendingCoinCategories(t){let{vsCurrency:n,ids:i,category:r,order:a,perPage:o,page:c,sparkline:g,priceChangePercentage:k,locale:j}=t;return this.api.request("coins/markets",{vs_currency:n,ids:i.join(","),category:r,order:a,per_page:o,page:c,sparkline:g,price_change_percentage:k,locale:j})}async coinCategories(t){return this.api.request("coins/categories",{})}};d([p({name:"coingecko_get_trending_coins",description:"Get the list of trending coins from CoinGecko"}),e("design:type",Function),e("design:paramtypes",[typeof y>"u"?Object:y]),e("design:returntype",Promise)],s.prototype,"getTrendingCoins",null);d([p({name:"coingecko_get_coin_prices",description:"Get the prices of specific coins from CoinGecko"}),e("design:type",Function),e("design:paramtypes",[typeof _>"u"?Object:_]),e("design:returntype",Promise)],s.prototype,"getCoinPrices",null);d([p({name:"coingecko_search_coins",description:"Search for coins by keyword"}),e("design:type",Function),e("design:paramtypes",[typeof m>"u"?Object:m]),e("design:returntype",Promise)],s.prototype,"searchCoins",null);d([p({name:"coingecko_get_coin_price_by_contract_address",description:"Get coin price by contract address"}),e("design:type",Function),e("design:paramtypes",[typeof f>"u"?Object:f]),e("design:returntype",Promise)],s.prototype,"getCoinPriceByContractAddress",null);d([p({name:"coingecko_get_coin_data",description:"Get detailed coin data by ID (including contract address, market data, community data, developer stats, and more)"}),e("design:type",Function),e("design:paramtypes",[typeof h>"u"?Object:h]),e("design:returntype",Promise)],s.prototype,"getCoinData",null);d([p({name:"coingecko_get_historical_data",description:"Get historical data for a coin by ID"}),e("design:type",Function),e("design:paramtypes",[typeof C>"u"?Object:C]),e("design:returntype",Promise)],s.prototype,"getHistoricalData",null);d([p({name:"coingecko_get_ohlc_data",description:"Get OHLC chart data for a coin by ID"}),e("design:type",Function),e("design:paramtypes",[typeof P>"u"?Object:P]),e("design:returntype",Promise)],s.prototype,"getOHLCData",null);d([p({name:"coingecko_get_trending_coin_categories",description:"Get trending coin categories"}),e("design:type",Function),e("design:paramtypes",[typeof b>"u"?Object:b]),e("design:returntype",Promise)],s.prototype,"getTrendingCoinCategories",null);d([p({name:"coingecko_get_coin_categories",description:"Get all coin categories"}),e("design:type",Function),e("design:paramtypes",[typeof y>"u"?Object:y]),e("design:returntype",Promise)],s.prototype,"coinCategories",null);export{s as a};
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var c= (_class =class i{static{_chunkEI7MMDWYjs.a.call(void 0, this,"CoinGeckoAPI")}static __initStatic() {this.API_BASE_URL="https://api.coingecko.com/api/v3"}static __initStatic2() {this.PRO_API_BASE_URL="https://pro-api.coingecko.com/api/v3"}constructor(r,t){this.apiKey=r,this.isPro=t}async request(r,t,e={}){let s=new URL(`${this.isPro?i.PRO_API_BASE_URL:i.API_BASE_URL}/${r}?${this.buildSearchParams(t)}`),a=await fetch(s.toString(),{...e,headers:{...e.headers,[this.isPro?"x-cg-pro-api-key":"x-cg-demo-api-key"]:this.apiKey}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}. URL: ${s.toString()}. Response: ${await a.text()}`);return a.json()}buildSearchParams(r){let t=new URLSearchParams;for(let[e,s]of Object.entries(r))s!==void 0&&t.append(e,s.toString());return t.toString()}}, _class.__initStatic(), _class.__initStatic2(), _class);exports.a = c;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHE3UMKOOjs = require('./chunk-HE3UMKOO.js');var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');function d(u,t,n,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(u,t,n,i);else for(var c=u.length-1;c>=0;c--)(o=u[c])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}_chunkEI7MMDWYjs.a.call(void 0, d,"_ts_decorate");function e(u,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(u,t)}_chunkEI7MMDWYjs.a.call(void 0, e,"_ts_metadata");var s=class{static{_chunkEI7MMDWYjs.a.call(void 0, this,"CoinGeckoService")}constructor(t){this.api=t}async getTrendingCoins(t){return this.api.request("search/trending",{})}async getCoinPrices(t){let{coinIds:n,vsCurrency:i,includeMarketCap:r,include24hrVol:a,include24hrChange:o,includeLastUpdatedAt:c}=t;return this.api.request("simple/price",{ids:n.join(","),vs_currencies:i,include_market_cap:r,include_24hr_vol:a,include_24hr_change:o,include_last_updated_at:c})}async searchCoins(t){let{query:n}=t;return this.api.request("search",{query:n})}async getCoinPriceByContractAddress(t){let{id:n,contractAddresses:i,vsCurrency:r,includeMarketCap:a,include24hrVol:o,include24hrChange:c,includeLastUpdatedAt:g}=t;return this.api.request(`simple/token_price/${n}`,{contract_addresses:i.join(","),vs_currencies:r,include_market_cap:a,include_24hr_vol:o,include_24hr_change:c,include_last_updated_at:g})}async getCoinData(t){let{id:n,localization:i,tickers:r,marketData:a,communityData:o,developerData:c,sparkline:g}=t;return this.api.request(`coins/${n}`,{localization:i,tickers:r,market_data:a,community_data:o,developer_data:c,sparkline:g})}async getHistoricalData(t){let{id:n,date:i,localization:r}=t;return this.api.request(`coins/${n}/history`,{date:i,localization:r})}async getOHLCData(t){let{id:n,vsCurrency:i,days:r}=t;return this.api.request(`coins/${n}/ohlc`,{vs_currency:i,days:r})}async getTrendingCoinCategories(t){let{vsCurrency:n,ids:i,category:r,order:a,perPage:o,page:c,sparkline:g,priceChangePercentage:k,locale:j}=t;return this.api.request("coins/markets",{vs_currency:n,ids:i.join(","),category:r,order:a,per_page:o,page:c,sparkline:g,price_change_percentage:k,locale:j})}async coinCategories(t){return this.api.request("coins/categories",{})}};d([_core.Tool.call(void 0, {name:"coingecko_get_trending_coins",description:"Get the list of trending coins from CoinGecko"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.a>"u"?Object:_chunkHE3UMKOOjs.a]),e("design:returntype",Promise)],s.prototype,"getTrendingCoins",null);d([_core.Tool.call(void 0, {name:"coingecko_get_coin_prices",description:"Get the prices of specific coins from CoinGecko"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.b>"u"?Object:_chunkHE3UMKOOjs.b]),e("design:returntype",Promise)],s.prototype,"getCoinPrices",null);d([_core.Tool.call(void 0, {name:"coingecko_search_coins",description:"Search for coins by keyword"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.c>"u"?Object:_chunkHE3UMKOOjs.c]),e("design:returntype",Promise)],s.prototype,"searchCoins",null);d([_core.Tool.call(void 0, {name:"coingecko_get_coin_price_by_contract_address",description:"Get coin price by contract address"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.d>"u"?Object:_chunkHE3UMKOOjs.d]),e("design:returntype",Promise)],s.prototype,"getCoinPriceByContractAddress",null);d([_core.Tool.call(void 0, {name:"coingecko_get_coin_data",description:"Get detailed coin data by ID (including contract address, market data, community data, developer stats, and more)"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.e>"u"?Object:_chunkHE3UMKOOjs.e]),e("design:returntype",Promise)],s.prototype,"getCoinData",null);d([_core.Tool.call(void 0, {name:"coingecko_get_historical_data",description:"Get historical data for a coin by ID"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.f>"u"?Object:_chunkHE3UMKOOjs.f]),e("design:returntype",Promise)],s.prototype,"getHistoricalData",null);d([_core.Tool.call(void 0, {name:"coingecko_get_ohlc_data",description:"Get OHLC chart data for a coin by ID"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.g>"u"?Object:_chunkHE3UMKOOjs.g]),e("design:returntype",Promise)],s.prototype,"getOHLCData",null);d([_core.Tool.call(void 0, {name:"coingecko_get_trending_coin_categories",description:"Get trending coin categories"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.h>"u"?Object:_chunkHE3UMKOOjs.h]),e("design:returntype",Promise)],s.prototype,"getTrendingCoinCategories",null);d([_core.Tool.call(void 0, {name:"coingecko_get_coin_categories",description:"Get all coin categories"}),e("design:type",Function),e("design:paramtypes",[typeof _chunkHE3UMKOOjs.a>"u"?Object:_chunkHE3UMKOOjs.a]),e("design:returntype",Promise)],s.prototype,"coinCategories",null);exports.a = s;
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;var _chunkC4P2ABX7js = require('./chunk-C4P2ABX7.js');var _chunkFZI34T5Bjs = require('./chunk-FZI34T5B.js');var _chunkDUVW54P4js = require('./chunk-DUVW54P4.js');var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');var e= (_class =class extends _core.PluginBase{static{_chunkEI7MMDWYjs.a.call(void 0, this,"CoinGeckoPlugin")}constructor({apiKey:p,isPro:c=!1}){let n=new (0, _chunkC4P2ABX7js.a)(p,c),i=[new (0, _chunkDUVW54P4js.a)(n)];c&&i.push(new (0, _chunkFZI34T5Bjs.a)(n)),super("coingecko",i);_class.prototype.__init.call(this);}__init() {this.supportsChain=_chunkEI7MMDWYjs.a.call(void 0, ()=>!0,"supportsChain")}}, _class);function x(r){return new e(r)}_chunkEI7MMDWYjs.a.call(void 0, x,"coingecko");exports.a = e; exports.b = x;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDUVW54P4js = require('./chunk-DUVW54P4.js');var _chunk2AQE3CSRjs = require('./chunk-2AQE3CSR.js');var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');function d(a,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,e,t,n);else for(var y=a.length-1;y>=0;y--)(c=a[y])&&(r=(s<3?c(r):s>3?c(e,t,r):c(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r}_chunkEI7MMDWYjs.a.call(void 0, d,"_ts_decorate");function o(a,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,e)}_chunkEI7MMDWYjs.a.call(void 0, o,"_ts_metadata");var i=class extends _chunkDUVW54P4js.a{static{_chunkEI7MMDWYjs.a.call(void 0, this,"CoinGeckoProService")}async getPoolDataByPoolAddress(e){let{network:t,addresses:n}=e;return this.api.request(`coins/${t}/pools/multi/${n.join(",")}`,{})}async getTrendingPools(e){let{include:t,page:n,duration:s}=e;return this.api.request("onchain/networks/trending_pools",{include:t.join(","),page:n,duration:s})}async getTrendingPoolsByNetwork(e){let{network:t}=e;return this.api.request(`onchain/networks/${t}/trending_pools`,{})}async getTopGainersLosers(e){let{vsCurrency:t,duration:n,topCoins:s}=e;return this.api.request("coins/top_gainers_losers",{vs_currency:t,duration:n,top_coins:s})}async getTokenDataByTokenAddress(e){let{network:t,address:n}=e;return this.api.request(`onchain/networks/${t}/tokens/${n}/info`,{})}async getTokensInfoByPoolAddress(e){let{network:t,poolAddress:n}=e;return this.api.request(`onchain/networks/${t}/pools/${n}/tokens`,{})}};d([_core.Tool.call(void 0, {name:"coingecko_get_pool_data_by_pool_address",description:"Get data for a specific pool by its address"}),o("design:type",Function),o("design:paramtypes",[typeof _chunk2AQE3CSRjs.a>"u"?Object:_chunk2AQE3CSRjs.a]),o("design:returntype",Promise)],i.prototype,"getPoolDataByPoolAddress",null);d([_core.Tool.call(void 0, {name:"coingecko_get_trending_pools",description:"Get trending pools for a specific network"}),o("design:type",Function),o("design:paramtypes",[typeof _chunk2AQE3CSRjs.c>"u"?Object:_chunk2AQE3CSRjs.c]),o("design:returntype",Promise)],i.prototype,"getTrendingPools",null);d([_core.Tool.call(void 0, {name:"coingecko_get_trending_pools_by_network",description:"Get trending pools for a specific network"}),o("design:type",Function),o("design:paramtypes",[typeof _chunk2AQE3CSRjs.b>"u"?Object:_chunk2AQE3CSRjs.b]),o("design:returntype",Promise)],i.prototype,"getTrendingPoolsByNetwork",null);d([_core.Tool.call(void 0, {name:"coingecko_get_top_gainers_losers",description:"Get top gainers and losers for a specific duration"}),o("design:type",Function),o("design:paramtypes",[typeof _chunk2AQE3CSRjs.d>"u"?Object:_chunk2AQE3CSRjs.d]),o("design:returntype",Promise)],i.prototype,"getTopGainersLosers",null);d([_core.Tool.call(void 0, {name:"coingecko_get_token_data_by_token_address",description:"Get data for a specific token by its address"}),o("design:type",Function),o("design:paramtypes",[typeof _chunk2AQE3CSRjs.e>"u"?Object:_chunk2AQE3CSRjs.e]),o("design:returntype",Promise)],i.prototype,"getTokenDataByTokenAddress",null);d([_core.Tool.call(void 0, {name:"coingecko_get_tokens_info_by_pool_address",description:"Get data for all tokens in a specific pool by its address"}),o("design:type",Function),o("design:paramtypes",[typeof _chunk2AQE3CSRjs.f>"u"?Object:_chunk2AQE3CSRjs.f]),o("design:returntype",Promise)],i.prototype,"getTokensInfoByPoolAddress",null);exports.a = i;
import{a as t}from"./chunk-NPG2MFNF.mjs";import{a as m}from"./chunk-QXP7MVC2.mjs";import{a as s}from"./chunk-3A5QBWB2.mjs";import{a as o}from"./chunk-YSXGDEY5.mjs";import{PluginBase as f}from"@goat-sdk/core";var e=class extends f{static{o(this,"CoinGeckoPlugin")}constructor({apiKey:p,isPro:c=!1}){let n=new t(p,c),i=[new s(n)];c&&i.push(new m(n)),super("coingecko",i)}supportsChain=o(()=>!0,"supportsChain")};function C(r){return new e(r)}o(C,"coingecko");export{e as a,C as b};
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');var _zod = require('zod');var d=class extends _core.createToolParameters.call(void 0, _zod.z.object({})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"NoParams")}},n= exports.b =class extends _core.createToolParameters.call(void 0, _zod.z.object({coinIds:_zod.z.array(_zod.z.string()).describe("The ID of the coin on CoinGecko (e.g., 'bitcoin', 'eth')"),vsCurrency:_zod.z.string().default("usd").describe("The target currency to get price in (e.g., 'usd', 'eur', 'jpy')"),includeMarketCap:_zod.z.boolean().optional().default(!1).describe("Include market cap data in the response"),include24hrVol:_zod.z.boolean().optional().default(!1).describe("Include 24 hour volume data in the response"),include24hrChange:_zod.z.boolean().optional().default(!1).describe("Include 24 hour price change data in the response"),includeLastUpdatedAt:_zod.z.boolean().optional().default(!1).describe("Include last updated timestamp in the response")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetCoinPricesParameters")}},r= exports.c =class extends _core.createToolParameters.call(void 0, _zod.z.object({query:_zod.z.string().describe("The search query to find coins (e.g., 'bitcoin' or 'btc')")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"SearchCoinsParameters")}},s= exports.d =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Asset platform's id (e.g., 'eth')"),contractAddresses:_zod.z.array(_zod.z.string()).describe("List of contract addresses for the tokens"),vsCurrency:_zod.z.string().default("usd").describe("Target currency (e.g., 'usd', 'eur')"),includeMarketCap:_zod.z.boolean().optional().default(!1).describe("Include market cap data"),include24hrVol:_zod.z.boolean().optional().default(!1).describe("Include 24hr volume"),include24hrChange:_zod.z.boolean().optional().default(!1).describe("Include 24hr change"),includeLastUpdatedAt:_zod.z.boolean().optional().default(!1).describe("Include last updated timestamp")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetCoinPriceByContractAddressParameters")}},c= exports.e =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),localization:_zod.z.boolean().optional().default(!1).describe("Include all localizations"),tickers:_zod.z.boolean().optional().default(!0).describe("Include tickers data"),marketData:_zod.z.boolean().optional().default(!0).describe("Include market data"),communityData:_zod.z.boolean().optional().default(!0).describe("Include community data"),developerData:_zod.z.boolean().optional().default(!0).describe("Include developer data"),sparkline:_zod.z.boolean().optional().default(!1).describe("Include sparkline 7 days data")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetCoinDataParameters")}},i= exports.f =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),date:_zod.z.string().describe("The date of data snapshot in dd-mm-yyyy format"),localization:_zod.z.boolean().optional().default(!0).describe("Include localized languages")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetHistoricalDataParameters")}},l= exports.g =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),vsCurrency:_zod.z.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),days:_zod.z.number().describe("Data up to number of days ago (1/7/14/30/90/180/365/max)")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetOHLCParameters")}},u= exports.h =class extends _core.createToolParameters.call(void 0, _zod.z.object({vsCurrency:_zod.z.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),ids:_zod.z.array(_zod.z.string()).describe("The ids of the coins to get trending data for"),category:_zod.z.string().describe("The category to get trending data for"),order:_zod.z.enum(["market_cap_desc","volume_desc","volume_asc","market_cap_asc"]).describe("The order to get trending data for"),perPage:_zod.z.number().min(1).max(30).default(10).describe("The number of trending coins to get"),page:_zod.z.number().describe("The page number to get trending coins for"),sparkline:_zod.z.boolean().optional().default(!1).describe("Include sparkline 7 days data"),priceChangePercentage:_zod.z.enum(["1h","24h","7d","14d","30d","200d","1y"]).optional().default("24h").describe("The price change percentage to get trending coins for"),locale:_zod.z.string().optional().default("en").describe("The locale to get trending coins for")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetTrendingCoinCategoriesParameters")}};exports.a = d; exports.b = n; exports.c = r; exports.d = s; exports.e = c; exports.f = i; exports.g = l; exports.h = u;
import{a as o}from"./chunk-YSXGDEY5.mjs";var c=class i{static{o(this,"CoinGeckoAPI")}apiKey;isPro;static API_BASE_URL="https://api.coingecko.com/api/v3";static PRO_API_BASE_URL="https://pro-api.coingecko.com/api/v3";constructor(r,t){this.apiKey=r,this.isPro=t}async request(r,t,e={}){let s=new URL(`${this.isPro?i.PRO_API_BASE_URL:i.API_BASE_URL}/${r}?${this.buildSearchParams(t)}`),a=await fetch(s.toString(),{...e,headers:{...e.headers,[this.isPro?"x-cg-pro-api-key":"x-cg-demo-api-key"]:this.apiKey}});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}. URL: ${s.toString()}. Response: ${await a.text()}`);return a.json()}buildSearchParams(r){let t=new URLSearchParams;for(let[e,s]of Object.entries(r))s!==void 0&&t.append(e,s.toString());return t.toString()}};export{c as a};
import{a as t}from"./chunk-YSXGDEY5.mjs";import{createToolParameters as a}from"@goat-sdk/core";import{z as e}from"zod";var d=class extends a(e.object({})){static{t(this,"NoParams")}},n=class extends a(e.object({coinIds:e.array(e.string()).describe("The ID of the coin on CoinGecko (e.g., 'bitcoin', 'eth')"),vsCurrency:e.string().default("usd").describe("The target currency to get price in (e.g., 'usd', 'eur', 'jpy')"),includeMarketCap:e.boolean().optional().default(!1).describe("Include market cap data in the response"),include24hrVol:e.boolean().optional().default(!1).describe("Include 24 hour volume data in the response"),include24hrChange:e.boolean().optional().default(!1).describe("Include 24 hour price change data in the response"),includeLastUpdatedAt:e.boolean().optional().default(!1).describe("Include last updated timestamp in the response")})){static{t(this,"GetCoinPricesParameters")}},r=class extends a(e.object({query:e.string().describe("The search query to find coins (e.g., 'bitcoin' or 'btc')")})){static{t(this,"SearchCoinsParameters")}},s=class extends a(e.object({id:e.string().describe("Asset platform's id (e.g., 'eth')"),contractAddresses:e.array(e.string()).describe("List of contract addresses for the tokens"),vsCurrency:e.string().default("usd").describe("Target currency (e.g., 'usd', 'eur')"),includeMarketCap:e.boolean().optional().default(!1).describe("Include market cap data"),include24hrVol:e.boolean().optional().default(!1).describe("Include 24hr volume"),include24hrChange:e.boolean().optional().default(!1).describe("Include 24hr change"),includeLastUpdatedAt:e.boolean().optional().default(!1).describe("Include last updated timestamp")})){static{t(this,"GetCoinPriceByContractAddressParameters")}},c=class extends a(e.object({id:e.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),localization:e.boolean().optional().default(!1).describe("Include all localizations"),tickers:e.boolean().optional().default(!0).describe("Include tickers data"),marketData:e.boolean().optional().default(!0).describe("Include market data"),communityData:e.boolean().optional().default(!0).describe("Include community data"),developerData:e.boolean().optional().default(!0).describe("Include developer data"),sparkline:e.boolean().optional().default(!1).describe("Include sparkline 7 days data")})){static{t(this,"GetCoinDataParameters")}},i=class extends a(e.object({id:e.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),date:e.string().describe("The date of data snapshot in dd-mm-yyyy format"),localization:e.boolean().optional().default(!0).describe("Include localized languages")})){static{t(this,"GetHistoricalDataParameters")}},l=class extends a(e.object({id:e.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),vsCurrency:e.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),days:e.number().describe("Data up to number of days ago (1/7/14/30/90/180/365/max)")})){static{t(this,"GetOHLCParameters")}},u=class extends a(e.object({vsCurrency:e.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),ids:e.array(e.string()).describe("The ids of the coins to get trending data for"),category:e.string().describe("The category to get trending data for"),order:e.enum(["market_cap_desc","volume_desc","volume_asc","market_cap_asc"]).describe("The order to get trending data for"),perPage:e.number().min(1).max(30).default(10).describe("The number of trending coins to get"),page:e.number().describe("The page number to get trending coins for"),sparkline:e.boolean().optional().default(!1).describe("Include sparkline 7 days data"),priceChangePercentage:e.enum(["1h","24h","7d","14d","30d","200d","1y"]).optional().default("24h").describe("The price change percentage to get trending coins for"),locale:e.string().optional().default("en").describe("The locale to get trending coins for")})){static{t(this,"GetTrendingCoinCategoriesParameters")}};export{d as a,n as b,r as c,s as d,c as e,i as f,l as g,u as h};
import{a as P}from"./chunk-3A5QBWB2.mjs";import{a as g,b as u,c as f,d as _,e as m,f as k}from"./chunk-2TIQTVMZ.mjs";import{a as l}from"./chunk-YSXGDEY5.mjs";import{Tool as p}from"@goat-sdk/core";function d(a,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,e,t,n);else for(var y=a.length-1;y>=0;y--)(c=a[y])&&(r=(s<3?c(r):s>3?c(e,t,r):c(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r}l(d,"_ts_decorate");function o(a,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,e)}l(o,"_ts_metadata");var i=class extends P{static{l(this,"CoinGeckoProService")}async getPoolDataByPoolAddress(e){let{network:t,addresses:n}=e;return this.api.request(`coins/${t}/pools/multi/${n.join(",")}`,{})}async getTrendingPools(e){let{include:t,page:n,duration:s}=e;return this.api.request("onchain/networks/trending_pools",{include:t.join(","),page:n,duration:s})}async getTrendingPoolsByNetwork(e){let{network:t}=e;return this.api.request(`onchain/networks/${t}/trending_pools`,{})}async getTopGainersLosers(e){let{vsCurrency:t,duration:n,topCoins:s}=e;return this.api.request("coins/top_gainers_losers",{vs_currency:t,duration:n,top_coins:s})}async getTokenDataByTokenAddress(e){let{network:t,address:n}=e;return this.api.request(`onchain/networks/${t}/tokens/${n}/info`,{})}async getTokensInfoByPoolAddress(e){let{network:t,poolAddress:n}=e;return this.api.request(`onchain/networks/${t}/pools/${n}/tokens`,{})}};d([p({name:"coingecko_get_pool_data_by_pool_address",description:"Get data for a specific pool by its address"}),o("design:type",Function),o("design:paramtypes",[typeof g>"u"?Object:g]),o("design:returntype",Promise)],i.prototype,"getPoolDataByPoolAddress",null);d([p({name:"coingecko_get_trending_pools",description:"Get trending pools for a specific network"}),o("design:type",Function),o("design:paramtypes",[typeof f>"u"?Object:f]),o("design:returntype",Promise)],i.prototype,"getTrendingPools",null);d([p({name:"coingecko_get_trending_pools_by_network",description:"Get trending pools for a specific network"}),o("design:type",Function),o("design:paramtypes",[typeof u>"u"?Object:u]),o("design:returntype",Promise)],i.prototype,"getTrendingPoolsByNetwork",null);d([p({name:"coingecko_get_top_gainers_losers",description:"Get top gainers and losers for a specific duration"}),o("design:type",Function),o("design:paramtypes",[typeof _>"u"?Object:_]),o("design:returntype",Promise)],i.prototype,"getTopGainersLosers",null);d([p({name:"coingecko_get_token_data_by_token_address",description:"Get data for a specific token by its address"}),o("design:type",Function),o("design:paramtypes",[typeof m>"u"?Object:m]),o("design:returntype",Promise)],i.prototype,"getTokenDataByTokenAddress",null);d([p({name:"coingecko_get_tokens_info_by_pool_address",description:"Get data for all tokens in a specific pool by its address"}),o("design:type",Function),o("design:paramtypes",[typeof k>"u"?Object:k]),o("design:returntype",Promise)],i.prototype,"getTokensInfoByPoolAddress",null);export{i as a};
import * as _goat_sdk_core from '@goat-sdk/core';
import { z } from 'zod';
declare const GetPoolDataByPoolAddressParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
addresses: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
network: string;
addresses: string[];
}, {
network: string;
addresses: string[];
}>>;
declare class GetPoolDataByPoolAddressParameters extends GetPoolDataByPoolAddressParameters_base {
}
declare const GetTrendingPoolsByNetworkParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
}, "strip", z.ZodTypeAny, {
network: string;
}, {
network: string;
}>>;
declare class GetTrendingPoolsByNetworkParameters extends GetTrendingPoolsByNetworkParameters_base {
}
declare const GetTrendingPoolsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
include: z.ZodArray<z.ZodEnum<["base_token", "quote_token", "dex", "network"]>, "many">;
page: z.ZodNumber;
duration: z.ZodEnum<["24h", "6h", "1h", "5m"]>;
}, "strip", z.ZodTypeAny, {
page: number;
include: ("network" | "base_token" | "quote_token" | "dex")[];
duration: "1h" | "24h" | "6h" | "5m";
}, {
page: number;
include: ("network" | "base_token" | "quote_token" | "dex")[];
duration: "1h" | "24h" | "6h" | "5m";
}>>;
declare class GetTrendingPoolsParameters extends GetTrendingPoolsParameters_base {
}
declare const TopGainersLosersParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
vsCurrency: z.ZodDefault<z.ZodString>;
duration: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1h", "24h", "7d", "14d", "30d", "60d", "1y"]>>>;
topCoins: z.ZodDefault<z.ZodOptional<z.ZodEnum<["300", "500", "1000", "all"]>>>;
}, "strip", z.ZodTypeAny, {
vsCurrency: string;
duration: "1h" | "24h" | "7d" | "14d" | "30d" | "1y" | "60d";
topCoins: "300" | "500" | "1000" | "all";
}, {
vsCurrency?: string | undefined;
duration?: "1h" | "24h" | "7d" | "14d" | "30d" | "1y" | "60d" | undefined;
topCoins?: "300" | "500" | "1000" | "all" | undefined;
}>>;
declare class TopGainersLosersParameters extends TopGainersLosersParameters_base {
}
declare const GetTokenDataByTokenAddressParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
address: z.ZodString;
}, "strip", z.ZodTypeAny, {
network: string;
address: string;
}, {
network: string;
address: string;
}>>;
declare class GetTokenDataByTokenAddressParameters extends GetTokenDataByTokenAddressParameters_base {
}
declare const GetTokensInfoByPoolAddressParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
poolAddress: z.ZodString;
}, "strip", z.ZodTypeAny, {
network: string;
poolAddress: string;
}, {
network: string;
poolAddress: string;
}>>;
declare class GetTokensInfoByPoolAddressParameters extends GetTokensInfoByPoolAddressParameters_base {
}
export { GetPoolDataByPoolAddressParameters, GetTokenDataByTokenAddressParameters, GetTokensInfoByPoolAddressParameters, GetTrendingPoolsByNetworkParameters, GetTrendingPoolsParameters, TopGainersLosersParameters };
import * as _goat_sdk_core from '@goat-sdk/core';
import { z } from 'zod';
declare const GetPoolDataByPoolAddressParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
addresses: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
network: string;
addresses: string[];
}, {
network: string;
addresses: string[];
}>>;
declare class GetPoolDataByPoolAddressParameters extends GetPoolDataByPoolAddressParameters_base {
}
declare const GetTrendingPoolsByNetworkParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
}, "strip", z.ZodTypeAny, {
network: string;
}, {
network: string;
}>>;
declare class GetTrendingPoolsByNetworkParameters extends GetTrendingPoolsByNetworkParameters_base {
}
declare const GetTrendingPoolsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
include: z.ZodArray<z.ZodEnum<["base_token", "quote_token", "dex", "network"]>, "many">;
page: z.ZodNumber;
duration: z.ZodEnum<["24h", "6h", "1h", "5m"]>;
}, "strip", z.ZodTypeAny, {
page: number;
include: ("network" | "base_token" | "quote_token" | "dex")[];
duration: "1h" | "24h" | "6h" | "5m";
}, {
page: number;
include: ("network" | "base_token" | "quote_token" | "dex")[];
duration: "1h" | "24h" | "6h" | "5m";
}>>;
declare class GetTrendingPoolsParameters extends GetTrendingPoolsParameters_base {
}
declare const TopGainersLosersParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
vsCurrency: z.ZodDefault<z.ZodString>;
duration: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1h", "24h", "7d", "14d", "30d", "60d", "1y"]>>>;
topCoins: z.ZodDefault<z.ZodOptional<z.ZodEnum<["300", "500", "1000", "all"]>>>;
}, "strip", z.ZodTypeAny, {
vsCurrency: string;
duration: "1h" | "24h" | "7d" | "14d" | "30d" | "1y" | "60d";
topCoins: "300" | "500" | "1000" | "all";
}, {
vsCurrency?: string | undefined;
duration?: "1h" | "24h" | "7d" | "14d" | "30d" | "1y" | "60d" | undefined;
topCoins?: "300" | "500" | "1000" | "all" | undefined;
}>>;
declare class TopGainersLosersParameters extends TopGainersLosersParameters_base {
}
declare const GetTokenDataByTokenAddressParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
address: z.ZodString;
}, "strip", z.ZodTypeAny, {
network: string;
address: string;
}, {
network: string;
address: string;
}>>;
declare class GetTokenDataByTokenAddressParameters extends GetTokenDataByTokenAddressParameters_base {
}
declare const GetTokensInfoByPoolAddressParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
network: z.ZodString;
poolAddress: z.ZodString;
}, "strip", z.ZodTypeAny, {
network: string;
poolAddress: string;
}, {
network: string;
poolAddress: string;
}>>;
declare class GetTokensInfoByPoolAddressParameters extends GetTokensInfoByPoolAddressParameters_base {
}
export { GetPoolDataByPoolAddressParameters, GetTokenDataByTokenAddressParameters, GetTokensInfoByPoolAddressParameters, GetTrendingPoolsByNetworkParameters, GetTrendingPoolsParameters, TopGainersLosersParameters };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2AQE3CSRjs = require('./chunk-2AQE3CSR.js');require('./chunk-EI7MMDWY.js');exports.GetPoolDataByPoolAddressParameters = _chunk2AQE3CSRjs.a; exports.GetTokenDataByTokenAddressParameters = _chunk2AQE3CSRjs.e; exports.GetTokensInfoByPoolAddressParameters = _chunk2AQE3CSRjs.f; exports.GetTrendingPoolsByNetworkParameters = _chunk2AQE3CSRjs.b; exports.GetTrendingPoolsParameters = _chunk2AQE3CSRjs.c; exports.TopGainersLosersParameters = _chunk2AQE3CSRjs.d;
import{a,b,c,d,e,f}from"./chunk-2TIQTVMZ.mjs";import"./chunk-YSXGDEY5.mjs";export{a as GetPoolDataByPoolAddressParameters,e as GetTokenDataByTokenAddressParameters,f as GetTokensInfoByPoolAddressParameters,b as GetTrendingPoolsByNetworkParameters,c as GetTrendingPoolsParameters,d as TopGainersLosersParameters};
import { CoinGeckoService } from './coingecko.service.mjs';
import { GetPoolDataByPoolAddressParameters, GetTrendingPoolsParameters, GetTrendingPoolsByNetworkParameters, TopGainersLosersParameters, GetTokenDataByTokenAddressParameters, GetTokensInfoByPoolAddressParameters } from './pro.parameters.mjs';
import './api.mjs';
import './parameters.mjs';
import '@goat-sdk/core';
import 'zod';
declare class CoinGeckoProService extends CoinGeckoService {
getPoolDataByPoolAddress(parameters: GetPoolDataByPoolAddressParameters): Promise<any>;
getTrendingPools(parameters: GetTrendingPoolsParameters): Promise<any>;
getTrendingPoolsByNetwork(parameters: GetTrendingPoolsByNetworkParameters): Promise<any>;
getTopGainersLosers(parameters: TopGainersLosersParameters): Promise<any>;
getTokenDataByTokenAddress(parameters: GetTokenDataByTokenAddressParameters): Promise<any>;
getTokensInfoByPoolAddress(parameters: GetTokensInfoByPoolAddressParameters): Promise<any>;
}
export { CoinGeckoProService };
import { CoinGeckoService } from './coingecko.service.js';
import { GetPoolDataByPoolAddressParameters, GetTrendingPoolsParameters, GetTrendingPoolsByNetworkParameters, TopGainersLosersParameters, GetTokenDataByTokenAddressParameters, GetTokensInfoByPoolAddressParameters } from './pro.parameters.js';
import './api.js';
import './parameters.js';
import '@goat-sdk/core';
import 'zod';
declare class CoinGeckoProService extends CoinGeckoService {
getPoolDataByPoolAddress(parameters: GetPoolDataByPoolAddressParameters): Promise<any>;
getTrendingPools(parameters: GetTrendingPoolsParameters): Promise<any>;
getTrendingPoolsByNetwork(parameters: GetTrendingPoolsByNetworkParameters): Promise<any>;
getTopGainersLosers(parameters: TopGainersLosersParameters): Promise<any>;
getTokenDataByTokenAddress(parameters: GetTokenDataByTokenAddressParameters): Promise<any>;
getTokensInfoByPoolAddress(parameters: GetTokensInfoByPoolAddressParameters): Promise<any>;
}
export { CoinGeckoProService };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFZI34T5Bjs = require('./chunk-FZI34T5B.js');require('./chunk-DUVW54P4.js');require('./chunk-HE3UMKOO.js');require('./chunk-2AQE3CSR.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoProService = _chunkFZI34T5Bjs.a;
import{a}from"./chunk-QXP7MVC2.mjs";import"./chunk-3A5QBWB2.mjs";import"./chunk-OGDJL37P.mjs";import"./chunk-2TIQTVMZ.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoProService};
+2
-1

@@ -5,5 +5,6 @@ import { PluginBase } from '@goat-sdk/core';

apiKey: string;
isPro?: boolean;
}
declare class CoinGeckoPlugin extends PluginBase {
constructor({ apiKey }: CoingeckoPluginOptions);
constructor({ apiKey, isPro }: CoingeckoPluginOptions);
supportsChain: () => boolean;

@@ -10,0 +11,0 @@ }

@@ -5,5 +5,6 @@ import { PluginBase } from '@goat-sdk/core';

apiKey: string;
isPro?: boolean;
}
declare class CoinGeckoPlugin extends PluginBase {
constructor({ apiKey }: CoingeckoPluginOptions);
constructor({ apiKey, isPro }: CoingeckoPluginOptions);
supportsChain: () => boolean;

@@ -10,0 +11,0 @@ }

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSN2WIAQXjs = require('./chunk-SN2WIAQX.js');require('./chunk-QXTF2QLU.js');require('./chunk-RS2GPPLX.js');require('./chunk-NMNLU6UW.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoPlugin = _chunkSN2WIAQXjs.a; exports.coingecko = _chunkSN2WIAQXjs.b;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF3MUTBQ7js = require('./chunk-F3MUTBQ7.js');require('./chunk-C4P2ABX7.js');require('./chunk-FZI34T5B.js');require('./chunk-DUVW54P4.js');require('./chunk-HE3UMKOO.js');require('./chunk-2AQE3CSR.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoPlugin = _chunkF3MUTBQ7js.a; exports.coingecko = _chunkF3MUTBQ7js.b;

@@ -1,1 +0,1 @@

import{a,b}from"./chunk-F4VDHQVT.mjs";import"./chunk-XFILW5RS.mjs";import"./chunk-TPWA5WWM.mjs";import"./chunk-FACMQ53K.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoPlugin,b as coingecko};
import{a,b}from"./chunk-G2M2RSFT.mjs";import"./chunk-NPG2MFNF.mjs";import"./chunk-QXP7MVC2.mjs";import"./chunk-3A5QBWB2.mjs";import"./chunk-OGDJL37P.mjs";import"./chunk-2TIQTVMZ.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoPlugin,b as coingecko};

@@ -1,2 +0,3 @@

import { GetTrendingCoinsParameters, GetCoinPriceParameters, SearchCoinsParameters, GetCoinPriceByContractAddressParameters, GetCoinDataParameters, GetSupportedCoinsParameters, GetHistoricalDataParameters, GetOHLCParameters } from './parameters.mjs';
import { CoinGeckoAPI } from './api.mjs';
import { NoParams, GetCoinPricesParameters, SearchCoinsParameters, GetCoinPriceByContractAddressParameters, GetCoinDataParameters, GetHistoricalDataParameters, GetOHLCParameters, GetTrendingCoinCategoriesParameters } from './parameters.mjs';
import '@goat-sdk/core';

@@ -6,14 +7,15 @@ import 'zod';

declare class CoinGeckoService {
private readonly apiKey;
constructor(apiKey: string);
getTrendingCoins(parameters: GetTrendingCoinsParameters): Promise<unknown>;
getCoinPrice(parameters: GetCoinPriceParameters): Promise<unknown>;
searchCoins(parameters: SearchCoinsParameters): Promise<unknown>;
getCoinPriceByContractAddress(parameters: GetCoinPriceByContractAddressParameters): Promise<unknown>;
getCoinData(parameters: GetCoinDataParameters): Promise<unknown>;
getSupportedCoins(parameters: GetSupportedCoinsParameters): Promise<unknown>;
getHistoricalData(parameters: GetHistoricalDataParameters): Promise<unknown>;
getOHLCData(parameters: GetOHLCParameters): Promise<unknown>;
protected api: CoinGeckoAPI;
constructor(api: CoinGeckoAPI);
getTrendingCoins(parameters: NoParams): Promise<any>;
getCoinPrices(parameters: GetCoinPricesParameters): Promise<any>;
searchCoins(parameters: SearchCoinsParameters): Promise<any>;
getCoinPriceByContractAddress(parameters: GetCoinPriceByContractAddressParameters): Promise<any>;
getCoinData(parameters: GetCoinDataParameters): Promise<any>;
getHistoricalData(parameters: GetHistoricalDataParameters): Promise<any>;
getOHLCData(parameters: GetOHLCParameters): Promise<any>;
getTrendingCoinCategories(parameters: GetTrendingCoinCategoriesParameters): Promise<any>;
coinCategories(parameters: NoParams): Promise<any>;
}
export { CoinGeckoService };

@@ -1,2 +0,3 @@

import { GetTrendingCoinsParameters, GetCoinPriceParameters, SearchCoinsParameters, GetCoinPriceByContractAddressParameters, GetCoinDataParameters, GetSupportedCoinsParameters, GetHistoricalDataParameters, GetOHLCParameters } from './parameters.js';
import { CoinGeckoAPI } from './api.js';
import { NoParams, GetCoinPricesParameters, SearchCoinsParameters, GetCoinPriceByContractAddressParameters, GetCoinDataParameters, GetHistoricalDataParameters, GetOHLCParameters, GetTrendingCoinCategoriesParameters } from './parameters.js';
import '@goat-sdk/core';

@@ -6,14 +7,15 @@ import 'zod';

declare class CoinGeckoService {
private readonly apiKey;
constructor(apiKey: string);
getTrendingCoins(parameters: GetTrendingCoinsParameters): Promise<unknown>;
getCoinPrice(parameters: GetCoinPriceParameters): Promise<unknown>;
searchCoins(parameters: SearchCoinsParameters): Promise<unknown>;
getCoinPriceByContractAddress(parameters: GetCoinPriceByContractAddressParameters): Promise<unknown>;
getCoinData(parameters: GetCoinDataParameters): Promise<unknown>;
getSupportedCoins(parameters: GetSupportedCoinsParameters): Promise<unknown>;
getHistoricalData(parameters: GetHistoricalDataParameters): Promise<unknown>;
getOHLCData(parameters: GetOHLCParameters): Promise<unknown>;
protected api: CoinGeckoAPI;
constructor(api: CoinGeckoAPI);
getTrendingCoins(parameters: NoParams): Promise<any>;
getCoinPrices(parameters: GetCoinPricesParameters): Promise<any>;
searchCoins(parameters: SearchCoinsParameters): Promise<any>;
getCoinPriceByContractAddress(parameters: GetCoinPriceByContractAddressParameters): Promise<any>;
getCoinData(parameters: GetCoinDataParameters): Promise<any>;
getHistoricalData(parameters: GetHistoricalDataParameters): Promise<any>;
getOHLCData(parameters: GetOHLCParameters): Promise<any>;
getTrendingCoinCategories(parameters: GetTrendingCoinCategoriesParameters): Promise<any>;
coinCategories(parameters: NoParams): Promise<any>;
}
export { CoinGeckoService };

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQXTF2QLUjs = require('./chunk-QXTF2QLU.js');require('./chunk-RS2GPPLX.js');require('./chunk-NMNLU6UW.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoService = _chunkQXTF2QLUjs.a;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDUVW54P4js = require('./chunk-DUVW54P4.js');require('./chunk-HE3UMKOO.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoService = _chunkDUVW54P4js.a;

@@ -1,1 +0,1 @@

import{a}from"./chunk-XFILW5RS.mjs";import"./chunk-TPWA5WWM.mjs";import"./chunk-FACMQ53K.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoService};
import{a}from"./chunk-3A5QBWB2.mjs";import"./chunk-OGDJL37P.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoService};
export { CoinGeckoPlugin, coingecko } from './coingecko.plugin.mjs';
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPriceParameters, GetHistoricalDataParameters, GetOHLCParameters, GetSupportedCoinsParameters, GetTrendingCoinsParameters, SearchCoinsParameters } from './parameters.mjs';
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPricesParameters, GetHistoricalDataParameters, GetOHLCParameters, GetTrendingCoinCategoriesParameters, NoParams, SearchCoinsParameters } from './parameters.mjs';
import '@goat-sdk/core';
import 'zod';
export { CoinGeckoPlugin, coingecko } from './coingecko.plugin.js';
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPriceParameters, GetHistoricalDataParameters, GetOHLCParameters, GetSupportedCoinsParameters, GetTrendingCoinsParameters, SearchCoinsParameters } from './parameters.js';
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPricesParameters, GetHistoricalDataParameters, GetOHLCParameters, GetTrendingCoinCategoriesParameters, NoParams, SearchCoinsParameters } from './parameters.js';
import '@goat-sdk/core';
import 'zod';

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSN2WIAQXjs = require('./chunk-SN2WIAQX.js');require('./chunk-QXTF2QLU.js');var _chunkRS2GPPLXjs = require('./chunk-RS2GPPLX.js');require('./chunk-NMNLU6UW.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoPlugin = _chunkSN2WIAQXjs.a; exports.GetCoinDataParameters = _chunkRS2GPPLXjs.e; exports.GetCoinPriceByContractAddressParameters = _chunkRS2GPPLXjs.d; exports.GetCoinPriceParameters = _chunkRS2GPPLXjs.b; exports.GetHistoricalDataParameters = _chunkRS2GPPLXjs.g; exports.GetOHLCParameters = _chunkRS2GPPLXjs.h; exports.GetSupportedCoinsParameters = _chunkRS2GPPLXjs.f; exports.GetTrendingCoinsParameters = _chunkRS2GPPLXjs.a; exports.SearchCoinsParameters = _chunkRS2GPPLXjs.c; exports.coingecko = _chunkSN2WIAQXjs.b;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF3MUTBQ7js = require('./chunk-F3MUTBQ7.js');require('./chunk-C4P2ABX7.js');require('./chunk-FZI34T5B.js');require('./chunk-DUVW54P4.js');var _chunkHE3UMKOOjs = require('./chunk-HE3UMKOO.js');require('./chunk-2AQE3CSR.js');require('./chunk-EI7MMDWY.js');exports.CoinGeckoPlugin = _chunkF3MUTBQ7js.a; exports.GetCoinDataParameters = _chunkHE3UMKOOjs.e; exports.GetCoinPriceByContractAddressParameters = _chunkHE3UMKOOjs.d; exports.GetCoinPricesParameters = _chunkHE3UMKOOjs.b; exports.GetHistoricalDataParameters = _chunkHE3UMKOOjs.f; exports.GetOHLCParameters = _chunkHE3UMKOOjs.g; exports.GetTrendingCoinCategoriesParameters = _chunkHE3UMKOOjs.h; exports.NoParams = _chunkHE3UMKOOjs.a; exports.SearchCoinsParameters = _chunkHE3UMKOOjs.c; exports.coingecko = _chunkF3MUTBQ7js.b;

@@ -1,1 +0,1 @@

import{a,b}from"./chunk-F4VDHQVT.mjs";import"./chunk-XFILW5RS.mjs";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x}from"./chunk-TPWA5WWM.mjs";import"./chunk-FACMQ53K.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoPlugin,m as GetCoinDataParameters,f as GetCoinPriceByContractAddressParameters,r as GetCoinPriceParameters,t as GetHistoricalDataParameters,x as GetOHLCParameters,p as GetSupportedCoinsParameters,o as GetTrendingCoinsParameters,e as SearchCoinsParameters,b as coingecko};
import{a,b}from"./chunk-G2M2RSFT.mjs";import"./chunk-NPG2MFNF.mjs";import"./chunk-QXP7MVC2.mjs";import"./chunk-3A5QBWB2.mjs";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x}from"./chunk-OGDJL37P.mjs";import"./chunk-2TIQTVMZ.mjs";import"./chunk-YSXGDEY5.mjs";export{a as CoinGeckoPlugin,m as GetCoinDataParameters,f as GetCoinPriceByContractAddressParameters,r as GetCoinPricesParameters,p as GetHistoricalDataParameters,t as GetOHLCParameters,x as GetTrendingCoinCategoriesParameters,o as NoParams,e as SearchCoinsParameters,b as coingecko};
import * as _goat_sdk_core from '@goat-sdk/core';
import { z } from 'zod';
declare const GetTrendingCoinsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
include_platform: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
limit?: number | undefined;
include_platform?: boolean | undefined;
}, {
limit?: number | undefined;
include_platform?: boolean | undefined;
}>>;
declare class GetTrendingCoinsParameters extends GetTrendingCoinsParameters_base {
declare const NoParams_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
declare class NoParams extends NoParams_base {
}
declare const GetCoinPriceParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
coinId: z.ZodString;
declare const GetCoinPricesParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
coinIds: z.ZodArray<z.ZodString, "many">;
vsCurrency: z.ZodDefault<z.ZodString>;

@@ -24,3 +15,3 @@ includeMarketCap: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;

}, "strip", z.ZodTypeAny, {
coinId: string;
coinIds: string[];
vsCurrency: string;

@@ -32,3 +23,3 @@ includeMarketCap: boolean;

}, {
coinId: string;
coinIds: string[];
vsCurrency?: string | undefined;

@@ -40,3 +31,3 @@ includeMarketCap?: boolean | undefined;

}>>;
declare class GetCoinPriceParameters extends GetCoinPriceParameters_base {
declare class GetCoinPricesParameters extends GetCoinPricesParameters_base {
}

@@ -106,11 +97,2 @@ declare const SearchCoinsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{

}
declare const GetSupportedCoinsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
includePlatform: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
includePlatform: boolean;
}, {
includePlatform?: boolean | undefined;
}>>;
declare class GetSupportedCoinsParameters extends GetSupportedCoinsParameters_base {
}
declare const GetHistoricalDataParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{

@@ -146,3 +128,36 @@ id: z.ZodString;

}
declare const GetTrendingCoinCategoriesParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
vsCurrency: z.ZodDefault<z.ZodString>;
ids: z.ZodArray<z.ZodString, "many">;
category: z.ZodString;
order: z.ZodEnum<["market_cap_desc", "volume_desc", "volume_asc", "market_cap_asc"]>;
perPage: z.ZodDefault<z.ZodNumber>;
page: z.ZodNumber;
sparkline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
priceChangePercentage: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1h", "24h", "7d", "14d", "30d", "200d", "1y"]>>>;
locale: z.ZodDefault<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
vsCurrency: string;
ids: string[];
sparkline: boolean;
category: string;
order: "market_cap_desc" | "volume_desc" | "volume_asc" | "market_cap_asc";
perPage: number;
page: number;
priceChangePercentage: "1h" | "24h" | "7d" | "14d" | "30d" | "200d" | "1y";
locale: string;
}, {
ids: string[];
category: string;
order: "market_cap_desc" | "volume_desc" | "volume_asc" | "market_cap_asc";
page: number;
vsCurrency?: string | undefined;
sparkline?: boolean | undefined;
perPage?: number | undefined;
priceChangePercentage?: "1h" | "24h" | "7d" | "14d" | "30d" | "200d" | "1y" | undefined;
locale?: string | undefined;
}>>;
declare class GetTrendingCoinCategoriesParameters extends GetTrendingCoinCategoriesParameters_base {
}
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPriceParameters, GetHistoricalDataParameters, GetOHLCParameters, GetSupportedCoinsParameters, GetTrendingCoinsParameters, SearchCoinsParameters };
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPricesParameters, GetHistoricalDataParameters, GetOHLCParameters, GetTrendingCoinCategoriesParameters, NoParams, SearchCoinsParameters };
import * as _goat_sdk_core from '@goat-sdk/core';
import { z } from 'zod';
declare const GetTrendingCoinsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
include_platform: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
limit?: number | undefined;
include_platform?: boolean | undefined;
}, {
limit?: number | undefined;
include_platform?: boolean | undefined;
}>>;
declare class GetTrendingCoinsParameters extends GetTrendingCoinsParameters_base {
declare const NoParams_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
declare class NoParams extends NoParams_base {
}
declare const GetCoinPriceParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
coinId: z.ZodString;
declare const GetCoinPricesParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
coinIds: z.ZodArray<z.ZodString, "many">;
vsCurrency: z.ZodDefault<z.ZodString>;

@@ -24,3 +15,3 @@ includeMarketCap: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;

}, "strip", z.ZodTypeAny, {
coinId: string;
coinIds: string[];
vsCurrency: string;

@@ -32,3 +23,3 @@ includeMarketCap: boolean;

}, {
coinId: string;
coinIds: string[];
vsCurrency?: string | undefined;

@@ -40,3 +31,3 @@ includeMarketCap?: boolean | undefined;

}>>;
declare class GetCoinPriceParameters extends GetCoinPriceParameters_base {
declare class GetCoinPricesParameters extends GetCoinPricesParameters_base {
}

@@ -106,11 +97,2 @@ declare const SearchCoinsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{

}
declare const GetSupportedCoinsParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
includePlatform: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
includePlatform: boolean;
}, {
includePlatform?: boolean | undefined;
}>>;
declare class GetSupportedCoinsParameters extends GetSupportedCoinsParameters_base {
}
declare const GetHistoricalDataParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{

@@ -146,3 +128,36 @@ id: z.ZodString;

}
declare const GetTrendingCoinCategoriesParameters_base: _goat_sdk_core.ToolParametersStatic<z.ZodObject<{
vsCurrency: z.ZodDefault<z.ZodString>;
ids: z.ZodArray<z.ZodString, "many">;
category: z.ZodString;
order: z.ZodEnum<["market_cap_desc", "volume_desc", "volume_asc", "market_cap_asc"]>;
perPage: z.ZodDefault<z.ZodNumber>;
page: z.ZodNumber;
sparkline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
priceChangePercentage: z.ZodDefault<z.ZodOptional<z.ZodEnum<["1h", "24h", "7d", "14d", "30d", "200d", "1y"]>>>;
locale: z.ZodDefault<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
vsCurrency: string;
ids: string[];
sparkline: boolean;
category: string;
order: "market_cap_desc" | "volume_desc" | "volume_asc" | "market_cap_asc";
perPage: number;
page: number;
priceChangePercentage: "1h" | "24h" | "7d" | "14d" | "30d" | "200d" | "1y";
locale: string;
}, {
ids: string[];
category: string;
order: "market_cap_desc" | "volume_desc" | "volume_asc" | "market_cap_asc";
page: number;
vsCurrency?: string | undefined;
sparkline?: boolean | undefined;
perPage?: number | undefined;
priceChangePercentage?: "1h" | "24h" | "7d" | "14d" | "30d" | "200d" | "1y" | undefined;
locale?: string | undefined;
}>>;
declare class GetTrendingCoinCategoriesParameters extends GetTrendingCoinCategoriesParameters_base {
}
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPriceParameters, GetHistoricalDataParameters, GetOHLCParameters, GetSupportedCoinsParameters, GetTrendingCoinsParameters, SearchCoinsParameters };
export { GetCoinDataParameters, GetCoinPriceByContractAddressParameters, GetCoinPricesParameters, GetHistoricalDataParameters, GetOHLCParameters, GetTrendingCoinCategoriesParameters, NoParams, SearchCoinsParameters };

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRS2GPPLXjs = require('./chunk-RS2GPPLX.js');require('./chunk-EI7MMDWY.js');exports.GetCoinDataParameters = _chunkRS2GPPLXjs.e; exports.GetCoinPriceByContractAddressParameters = _chunkRS2GPPLXjs.d; exports.GetCoinPriceParameters = _chunkRS2GPPLXjs.b; exports.GetHistoricalDataParameters = _chunkRS2GPPLXjs.g; exports.GetOHLCParameters = _chunkRS2GPPLXjs.h; exports.GetSupportedCoinsParameters = _chunkRS2GPPLXjs.f; exports.GetTrendingCoinsParameters = _chunkRS2GPPLXjs.a; exports.SearchCoinsParameters = _chunkRS2GPPLXjs.c;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHE3UMKOOjs = require('./chunk-HE3UMKOO.js');require('./chunk-EI7MMDWY.js');exports.GetCoinDataParameters = _chunkHE3UMKOOjs.e; exports.GetCoinPriceByContractAddressParameters = _chunkHE3UMKOOjs.d; exports.GetCoinPricesParameters = _chunkHE3UMKOOjs.b; exports.GetHistoricalDataParameters = _chunkHE3UMKOOjs.f; exports.GetOHLCParameters = _chunkHE3UMKOOjs.g; exports.GetTrendingCoinCategoriesParameters = _chunkHE3UMKOOjs.h; exports.NoParams = _chunkHE3UMKOOjs.a; exports.SearchCoinsParameters = _chunkHE3UMKOOjs.c;

@@ -1,1 +0,1 @@

import{a,b,c,d,e,f,g,h}from"./chunk-TPWA5WWM.mjs";import"./chunk-YSXGDEY5.mjs";export{e as GetCoinDataParameters,d as GetCoinPriceByContractAddressParameters,b as GetCoinPriceParameters,g as GetHistoricalDataParameters,h as GetOHLCParameters,f as GetSupportedCoinsParameters,a as GetTrendingCoinsParameters,c as SearchCoinsParameters};
import{a,b,c,d,e,f,g,h}from"./chunk-OGDJL37P.mjs";import"./chunk-YSXGDEY5.mjs";export{e as GetCoinDataParameters,d as GetCoinPriceByContractAddressParameters,b as GetCoinPricesParameters,f as GetHistoricalDataParameters,g as GetOHLCParameters,h as GetTrendingCoinCategoriesParameters,a as NoParams,c as SearchCoinsParameters};
{
"name": "@goat-sdk/plugin-coingecko",
"version": "0.2.6",
"version": "0.2.7",
"files": [

@@ -5,0 +5,0 @@ "dist/**/*",

import{a as t}from"./chunk-XFILW5RS.mjs";import{a as e}from"./chunk-YSXGDEY5.mjs";import{PluginBase as c}from"@goat-sdk/core";var o=class extends c{static{e(this,"CoinGeckoPlugin")}constructor({apiKey:n}){super("coingecko",[new t(n)])}supportsChain=e(()=>!0,"supportsChain")};function m(r){return new o(r)}e(m,"coingecko");export{o as a,m as b};
import{a as o}from"./chunk-YSXGDEY5.mjs";async function u(r,n,t={}){let e=await fetch(r,{...t,headers:{...t.headers,"x-cg-demo-api-key":n}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()}o(u,"coingeckoRequest");function p(r,n){let t=new URLSearchParams;for(let[c,s]of Object.entries(n))s!==void 0&&t.append(c,s.toString());let e=t.toString();return e?`${r}?${e}`:r}o(p,"buildUrl");var f="https://api.coingecko.com/api/v3";export{u as a,p as b,f as c};
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');async function i(r,n,t={}){let e=await fetch(r,{...t,headers:{...t.headers,"x-cg-demo-api-key":n}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()}_chunkEI7MMDWYjs.a.call(void 0, i,"coingeckoRequest");function u(r,n){let t=new URLSearchParams;for(let[c,s]of Object.entries(n))s!==void 0&&t.append(c,s.toString());let e=t.toString();return e?`${r}?${e}`:r}_chunkEI7MMDWYjs.a.call(void 0, u,"buildUrl");var p="https://api.coingecko.com/api/v3";exports.a = i; exports.b = u; exports.c = p;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRS2GPPLXjs = require('./chunk-RS2GPPLX.js');var _chunkNMNLU6UWjs = require('./chunk-NMNLU6UW.js');var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');function l(m,e,n,i){var r=arguments.length,a=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(m,e,n,i);else for(var c=m.length-1;c>=0;c--)(o=m[c])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}_chunkEI7MMDWYjs.a.call(void 0, l,"_ts_decorate");function t(m,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,e)}_chunkEI7MMDWYjs.a.call(void 0, t,"_ts_metadata");var s=class{static{_chunkEI7MMDWYjs.a.call(void 0, this,"CoinGeckoService")}constructor(e){this.apiKey=e}async getTrendingCoins(e){return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/search/trending`,{}),this.apiKey)}async getCoinPrice(e){let{coinId:n,vsCurrency:i,includeMarketCap:r,include24hrVol:a,include24hrChange:o,includeLastUpdatedAt:c}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/simple/price`,{ids:n,vs_currencies:i,include_market_cap:r,include_24hr_vol:a,include_24hr_change:o,include_last_updated_at:c}),this.apiKey)}async searchCoins(e){let{query:n}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/search`,{query:n}),this.apiKey)}async getCoinPriceByContractAddress(e){let{id:n,contractAddresses:i,vsCurrency:r,includeMarketCap:a,include24hrVol:o,include24hrChange:c,includeLastUpdatedAt:g}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/simple/token_price/${n}`,{contract_addresses:i.join(","),vs_currencies:r,include_market_cap:a,include_24hr_vol:o,include_24hr_change:c,include_last_updated_at:g}),this.apiKey)}async getCoinData(e){let{id:n,localization:i,tickers:r,marketData:a,communityData:o,developerData:c,sparkline:g}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/coins/${n}`,{localization:i,tickers:r,market_data:a,community_data:o,developer_data:c,sparkline:g}),this.apiKey)}async getSupportedCoins(e){let{includePlatform:n}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/coins/list`,{include_platform:n}),this.apiKey)}async getHistoricalData(e){let{id:n,date:i,localization:r}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/coins/${n}/history`,{date:i,localization:r}),this.apiKey)}async getOHLCData(e){let{id:n,vsCurrency:i,days:r}=e;return _chunkNMNLU6UWjs.a.call(void 0, _chunkNMNLU6UWjs.b.call(void 0, `${_chunkNMNLU6UWjs.c}/coins/${n}/ohlc`,{vs_currency:i,days:r}),this.apiKey)}};l([_core.Tool.call(void 0, {description:"Get the list of trending coins from CoinGecko"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.a>"u"?Object:_chunkRS2GPPLXjs.a]),t("design:returntype",Promise)],s.prototype,"getTrendingCoins",null);l([_core.Tool.call(void 0, {description:"Get the price of a specific coin from CoinGecko"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.b>"u"?Object:_chunkRS2GPPLXjs.b]),t("design:returntype",Promise)],s.prototype,"getCoinPrice",null);l([_core.Tool.call(void 0, {description:"Search for coins by keyword"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.c>"u"?Object:_chunkRS2GPPLXjs.c]),t("design:returntype",Promise)],s.prototype,"searchCoins",null);l([_core.Tool.call(void 0, {description:"Get coin price by contract address"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.d>"u"?Object:_chunkRS2GPPLXjs.d]),t("design:returntype",Promise)],s.prototype,"getCoinPriceByContractAddress",null);l([_core.Tool.call(void 0, {description:"Get detailed coin data by ID (including market data, community data, developer stats, and more)"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.e>"u"?Object:_chunkRS2GPPLXjs.e]),t("design:returntype",Promise)],s.prototype,"getCoinData",null);l([_core.Tool.call(void 0, {description:"Get list of all supported coins"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.f>"u"?Object:_chunkRS2GPPLXjs.f]),t("design:returntype",Promise)],s.prototype,"getSupportedCoins",null);l([_core.Tool.call(void 0, {description:"Get historical data for a coin by ID"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.g>"u"?Object:_chunkRS2GPPLXjs.g]),t("design:returntype",Promise)],s.prototype,"getHistoricalData",null);l([_core.Tool.call(void 0, {description:"Get OHLC chart data for a coin by ID"}),t("design:type",Function),t("design:paramtypes",[typeof _chunkRS2GPPLXjs.h>"u"?Object:_chunkRS2GPPLXjs.h]),t("design:returntype",Promise)],s.prototype,"getOHLCData",null);exports.a = s;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');var _zod = require('zod');var d=class extends _core.createToolParameters.call(void 0, _zod.z.object({limit:_zod.z.number().optional().describe("The number of trending coins to return. Defaults to all coins."),include_platform:_zod.z.boolean().optional().describe("Include platform contract addresses (e.g., ETH, BSC) in response")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetTrendingCoinsParameters")}},n= exports.b =class extends _core.createToolParameters.call(void 0, _zod.z.object({coinId:_zod.z.string().describe("The ID of the coin on CoinGecko (e.g., 'bitcoin', 'ethereum')"),vsCurrency:_zod.z.string().default("usd").describe("The target currency to get price in (e.g., 'usd', 'eur', 'jpy')"),includeMarketCap:_zod.z.boolean().optional().default(!1).describe("Include market cap data in the response"),include24hrVol:_zod.z.boolean().optional().default(!1).describe("Include 24 hour volume data in the response"),include24hrChange:_zod.z.boolean().optional().default(!1).describe("Include 24 hour price change data in the response"),includeLastUpdatedAt:_zod.z.boolean().optional().default(!1).describe("Include last updated timestamp in the response")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetCoinPriceParameters")}},s= exports.c =class extends _core.createToolParameters.call(void 0, _zod.z.object({query:_zod.z.string().describe("The search query to find coins (e.g., 'bitcoin' or 'btc')")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"SearchCoinsParameters")}},l= exports.d =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Asset platform's id (e.g., 'ethereum')"),contractAddresses:_zod.z.array(_zod.z.string()).describe("List of contract addresses for the tokens"),vsCurrency:_zod.z.string().default("usd").describe("Target currency (e.g., 'usd', 'eur')"),includeMarketCap:_zod.z.boolean().optional().default(!1).describe("Include market cap data"),include24hrVol:_zod.z.boolean().optional().default(!1).describe("Include 24hr volume"),include24hrChange:_zod.z.boolean().optional().default(!1).describe("Include 24hr change"),includeLastUpdatedAt:_zod.z.boolean().optional().default(!1).describe("Include last updated timestamp")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetCoinPriceByContractAddressParameters")}},c= exports.e =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),localization:_zod.z.boolean().optional().default(!1).describe("Include all localizations"),tickers:_zod.z.boolean().optional().default(!0).describe("Include tickers data"),marketData:_zod.z.boolean().optional().default(!0).describe("Include market data"),communityData:_zod.z.boolean().optional().default(!0).describe("Include community data"),developerData:_zod.z.boolean().optional().default(!0).describe("Include developer data"),sparkline:_zod.z.boolean().optional().default(!1).describe("Include sparkline 7 days data")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetCoinDataParameters")}},i= exports.f =class extends _core.createToolParameters.call(void 0, _zod.z.object({includePlatform:_zod.z.boolean().optional().default(!1).describe("Include platform contract addresses")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetSupportedCoinsParameters")}},r= exports.g =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),date:_zod.z.string().describe("The date of data snapshot in dd-mm-yyyy format"),localization:_zod.z.boolean().optional().default(!0).describe("Include localized languages")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetHistoricalDataParameters")}},u= exports.h =class extends _core.createToolParameters.call(void 0, _zod.z.object({id:_zod.z.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),vsCurrency:_zod.z.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),days:_zod.z.number().describe("Data up to number of days ago (1/7/14/30/90/180/365/max)")})){static{_chunkEI7MMDWYjs.a.call(void 0, this,"GetOHLCParameters")}};exports.a = d; exports.b = n; exports.c = s; exports.d = l; exports.e = c; exports.f = i; exports.g = r; exports.h = u;
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;var _chunkQXTF2QLUjs = require('./chunk-QXTF2QLU.js');var _chunkEI7MMDWYjs = require('./chunk-EI7MMDWY.js');var _core = require('@goat-sdk/core');var o= (_class =class extends _core.PluginBase{static{_chunkEI7MMDWYjs.a.call(void 0, this,"CoinGeckoPlugin")}constructor({apiKey:n}){super("coingecko",[new (0, _chunkQXTF2QLUjs.a)(n)]);_class.prototype.__init.call(this);}__init() {this.supportsChain=_chunkEI7MMDWYjs.a.call(void 0, ()=>!0,"supportsChain")}}, _class);function u(r){return new o(r)}_chunkEI7MMDWYjs.a.call(void 0, u,"coingecko");exports.a = o; exports.b = u;
import{a as t}from"./chunk-YSXGDEY5.mjs";import{createToolParameters as o}from"@goat-sdk/core";import{z as e}from"zod";var d=class extends o(e.object({limit:e.number().optional().describe("The number of trending coins to return. Defaults to all coins."),include_platform:e.boolean().optional().describe("Include platform contract addresses (e.g., ETH, BSC) in response")})){static{t(this,"GetTrendingCoinsParameters")}},n=class extends o(e.object({coinId:e.string().describe("The ID of the coin on CoinGecko (e.g., 'bitcoin', 'ethereum')"),vsCurrency:e.string().default("usd").describe("The target currency to get price in (e.g., 'usd', 'eur', 'jpy')"),includeMarketCap:e.boolean().optional().default(!1).describe("Include market cap data in the response"),include24hrVol:e.boolean().optional().default(!1).describe("Include 24 hour volume data in the response"),include24hrChange:e.boolean().optional().default(!1).describe("Include 24 hour price change data in the response"),includeLastUpdatedAt:e.boolean().optional().default(!1).describe("Include last updated timestamp in the response")})){static{t(this,"GetCoinPriceParameters")}},s=class extends o(e.object({query:e.string().describe("The search query to find coins (e.g., 'bitcoin' or 'btc')")})){static{t(this,"SearchCoinsParameters")}},l=class extends o(e.object({id:e.string().describe("Asset platform's id (e.g., 'ethereum')"),contractAddresses:e.array(e.string()).describe("List of contract addresses for the tokens"),vsCurrency:e.string().default("usd").describe("Target currency (e.g., 'usd', 'eur')"),includeMarketCap:e.boolean().optional().default(!1).describe("Include market cap data"),include24hrVol:e.boolean().optional().default(!1).describe("Include 24hr volume"),include24hrChange:e.boolean().optional().default(!1).describe("Include 24hr change"),includeLastUpdatedAt:e.boolean().optional().default(!1).describe("Include last updated timestamp")})){static{t(this,"GetCoinPriceByContractAddressParameters")}},c=class extends o(e.object({id:e.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),localization:e.boolean().optional().default(!1).describe("Include all localizations"),tickers:e.boolean().optional().default(!0).describe("Include tickers data"),marketData:e.boolean().optional().default(!0).describe("Include market data"),communityData:e.boolean().optional().default(!0).describe("Include community data"),developerData:e.boolean().optional().default(!0).describe("Include developer data"),sparkline:e.boolean().optional().default(!1).describe("Include sparkline 7 days data")})){static{t(this,"GetCoinDataParameters")}},i=class extends o(e.object({includePlatform:e.boolean().optional().default(!1).describe("Include platform contract addresses")})){static{t(this,"GetSupportedCoinsParameters")}},r=class extends o(e.object({id:e.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),date:e.string().describe("The date of data snapshot in dd-mm-yyyy format"),localization:e.boolean().optional().default(!0).describe("Include localized languages")})){static{t(this,"GetHistoricalDataParameters")}},u=class extends o(e.object({id:e.string().describe("Pass the coin id (can be obtained from the supported coins endpoint)"),vsCurrency:e.string().default("usd").describe("The target currency of market data (usd, eur, jpy, etc.)"),days:e.number().describe("Data up to number of days ago (1/7/14/30/90/180/365/max)")})){static{t(this,"GetOHLCParameters")}};export{d as a,n as b,s as c,l as d,c as e,i as f,r as g,u as h};
import{a as h,b as C,c as _,d as P,e as b,f as O,g as G,h as D}from"./chunk-TPWA5WWM.mjs";import{a as d,b as p,c as u}from"./chunk-FACMQ53K.mjs";import{a as f}from"./chunk-YSXGDEY5.mjs";import{Tool as y}from"@goat-sdk/core";function l(m,e,n,i){var r=arguments.length,a=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(m,e,n,i);else for(var c=m.length-1;c>=0;c--)(o=m[c])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}f(l,"_ts_decorate");function t(m,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,e)}f(t,"_ts_metadata");var s=class{static{f(this,"CoinGeckoService")}apiKey;constructor(e){this.apiKey=e}async getTrendingCoins(e){return d(p(`${u}/search/trending`,{}),this.apiKey)}async getCoinPrice(e){let{coinId:n,vsCurrency:i,includeMarketCap:r,include24hrVol:a,include24hrChange:o,includeLastUpdatedAt:c}=e;return d(p(`${u}/simple/price`,{ids:n,vs_currencies:i,include_market_cap:r,include_24hr_vol:a,include_24hr_change:o,include_last_updated_at:c}),this.apiKey)}async searchCoins(e){let{query:n}=e;return d(p(`${u}/search`,{query:n}),this.apiKey)}async getCoinPriceByContractAddress(e){let{id:n,contractAddresses:i,vsCurrency:r,includeMarketCap:a,include24hrVol:o,include24hrChange:c,includeLastUpdatedAt:g}=e;return d(p(`${u}/simple/token_price/${n}`,{contract_addresses:i.join(","),vs_currencies:r,include_market_cap:a,include_24hr_vol:o,include_24hr_change:c,include_last_updated_at:g}),this.apiKey)}async getCoinData(e){let{id:n,localization:i,tickers:r,marketData:a,communityData:o,developerData:c,sparkline:g}=e;return d(p(`${u}/coins/${n}`,{localization:i,tickers:r,market_data:a,community_data:o,developer_data:c,sparkline:g}),this.apiKey)}async getSupportedCoins(e){let{includePlatform:n}=e;return d(p(`${u}/coins/list`,{include_platform:n}),this.apiKey)}async getHistoricalData(e){let{id:n,date:i,localization:r}=e;return d(p(`${u}/coins/${n}/history`,{date:i,localization:r}),this.apiKey)}async getOHLCData(e){let{id:n,vsCurrency:i,days:r}=e;return d(p(`${u}/coins/${n}/ohlc`,{vs_currency:i,days:r}),this.apiKey)}};l([y({description:"Get the list of trending coins from CoinGecko"}),t("design:type",Function),t("design:paramtypes",[typeof h>"u"?Object:h]),t("design:returntype",Promise)],s.prototype,"getTrendingCoins",null);l([y({description:"Get the price of a specific coin from CoinGecko"}),t("design:type",Function),t("design:paramtypes",[typeof C>"u"?Object:C]),t("design:returntype",Promise)],s.prototype,"getCoinPrice",null);l([y({description:"Search for coins by keyword"}),t("design:type",Function),t("design:paramtypes",[typeof _>"u"?Object:_]),t("design:returntype",Promise)],s.prototype,"searchCoins",null);l([y({description:"Get coin price by contract address"}),t("design:type",Function),t("design:paramtypes",[typeof P>"u"?Object:P]),t("design:returntype",Promise)],s.prototype,"getCoinPriceByContractAddress",null);l([y({description:"Get detailed coin data by ID (including market data, community data, developer stats, and more)"}),t("design:type",Function),t("design:paramtypes",[typeof b>"u"?Object:b]),t("design:returntype",Promise)],s.prototype,"getCoinData",null);l([y({description:"Get list of all supported coins"}),t("design:type",Function),t("design:paramtypes",[typeof O>"u"?Object:O]),t("design:returntype",Promise)],s.prototype,"getSupportedCoins",null);l([y({description:"Get historical data for a coin by ID"}),t("design:type",Function),t("design:paramtypes",[typeof G>"u"?Object:G]),t("design:returntype",Promise)],s.prototype,"getHistoricalData",null);l([y({description:"Get OHLC chart data for a coin by ID"}),t("design:type",Function),t("design:paramtypes",[typeof D>"u"?Object:D]),t("design:returntype",Promise)],s.prototype,"getOHLCData",null);export{s as a};
/**
* Helper function to make requests to the CoinGecko API
* @param endpointUrl - The full URL of the CoinGecko API endpoint
* @param apiKey - The CoinGecko API key
* @param options - Optional fetch options to merge with defaults
* @returns The parsed JSON response
* @throws Error if the response is not OK
*/
declare function coingeckoRequest<T = unknown>(endpointUrl: string, apiKey: string, options?: RequestInit): Promise<T>;
/**
* Helper function to build a URL with query parameters
* @param baseUrl - The base URL without query parameters
* @param params - Object containing query parameters
* @returns The full URL with encoded query parameters
*/
declare function buildUrl(baseUrl: string, params: Record<string, string | boolean | number>): string;
/**
* Base URL for the CoinGecko API
*/
declare const COINGECKO_API_BASE_URL = "https://api.coingecko.com/api/v3";
export { COINGECKO_API_BASE_URL, buildUrl, coingeckoRequest };
/**
* Helper function to make requests to the CoinGecko API
* @param endpointUrl - The full URL of the CoinGecko API endpoint
* @param apiKey - The CoinGecko API key
* @param options - Optional fetch options to merge with defaults
* @returns The parsed JSON response
* @throws Error if the response is not OK
*/
declare function coingeckoRequest<T = unknown>(endpointUrl: string, apiKey: string, options?: RequestInit): Promise<T>;
/**
* Helper function to build a URL with query parameters
* @param baseUrl - The base URL without query parameters
* @param params - Object containing query parameters
* @returns The full URL with encoded query parameters
*/
declare function buildUrl(baseUrl: string, params: Record<string, string | boolean | number>): string;
/**
* Base URL for the CoinGecko API
*/
declare const COINGECKO_API_BASE_URL = "https://api.coingecko.com/api/v3";
export { COINGECKO_API_BASE_URL, buildUrl, coingeckoRequest };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNMNLU6UWjs = require('./chunk-NMNLU6UW.js');require('./chunk-EI7MMDWY.js');exports.COINGECKO_API_BASE_URL = _chunkNMNLU6UWjs.c; exports.buildUrl = _chunkNMNLU6UWjs.b; exports.coingeckoRequest = _chunkNMNLU6UWjs.a;
import{a,b,c}from"./chunk-FACMQ53K.mjs";import"./chunk-YSXGDEY5.mjs";export{c as COINGECKO_API_BASE_URL,b as buildUrl,a as coingeckoRequest};