UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

22 lines 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeiCitrexGetTickersTool = void 0; const tools_1 = require("langchain/tools"); const zod_1 = require("zod"); const CitrexGetTickersInputSchema = zod_1.z.object({ symbol: zod_1.z.string().min(1).optional(), }); class SeiCitrexGetTickersTool extends tools_1.StructuredTool { constructor(seiKit) { super(); this.seiKit = seiKit; this.name = "citrex_get_tickers"; this.description = "Retrieves the tickers for the Citrex Protocol. The symbol must be a valid product symbol from the Citrex Protocol. Example: ETH -> 'ethperp', BTC -> 'btcperp', etc. Returns ticker data including funding rates (hourly/yearly), price data (high/low/mark), next funding time, open interest, oracle price, price change info, product details, and trading volume."; this.schema = CitrexGetTickersInputSchema; } async _call(input) { return this.seiKit.citrexGetTickers(input.symbol); } } exports.SeiCitrexGetTickersTool = SeiCitrexGetTickersTool; //# sourceMappingURL=getTickers.js.map