UNPKG

sei-agent-kit

Version:

A package for building AI agents on the SEI blockchain

19 lines 905 B
import { StructuredTool } from "langchain/tools"; import { z } from "zod"; const CitrexGetTickersInputSchema = z.object({ symbol: z.string().min(1).optional(), }); export class SeiCitrexGetTickersTool extends StructuredTool { seiKit; name = "citrex_get_tickers"; 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."; schema = CitrexGetTickersInputSchema; constructor(seiKit) { super(); this.seiKit = seiKit; } async _call(input) { return this.seiKit.citrexGetTickers(input.symbol); } } //# sourceMappingURL=getTickers.js.map