UNPKG

bybit-mcp-server

Version:
147 lines 4.94 kB
import { z } from 'zod'; export declare const BybitConfig: z.ZodObject<{ apiKey: z.ZodString; apiSecret: z.ZodString; environment: z.ZodDefault<z.ZodEnum<["testnet", "mainnet"]>>; baseUrl: z.ZodOptional<z.ZodString>; debug: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { apiKey: string; apiSecret: string; environment: "testnet" | "mainnet"; debug: boolean; baseUrl?: string | undefined; }, { apiKey: string; apiSecret: string; environment?: "testnet" | "mainnet" | undefined; baseUrl?: string | undefined; debug?: boolean | undefined; }>; export type BybitConfigType = z.infer<typeof BybitConfig>; export interface BybitToolRequest { name: string; arguments: Record<string, unknown>; } export interface BybitToolResponse { content: Array<{ type: 'text'; text: string; }>; isError?: boolean; } export declare const PriceSchema: z.ZodObject<{ symbol: z.ZodString; }, "strip", z.ZodTypeAny, { symbol: string; }, { symbol: string; }>; export declare const OrderBookSchema: z.ZodObject<{ symbol: z.ZodString; limit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { symbol: string; limit?: number | undefined; }, { symbol: string; limit?: number | undefined; }>; export declare const KlinesSchema: z.ZodObject<{ symbol: z.ZodString; interval: z.ZodEnum<["1", "3", "5", "15", "30", "60", "120", "240", "360", "720", "D", "M", "W"]>; limit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { symbol: string; interval: "1" | "3" | "5" | "15" | "30" | "60" | "120" | "240" | "360" | "720" | "D" | "M" | "W"; limit?: number | undefined; }, { symbol: string; interval: "1" | "3" | "5" | "15" | "30" | "60" | "120" | "240" | "360" | "720" | "D" | "M" | "W"; limit?: number | undefined; }>; export declare const TickerSchema: z.ZodObject<{ symbol: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { symbol?: string | undefined; }, { symbol?: string | undefined; }>; export declare const PlaceOrderSchema: z.ZodObject<{ category: z.ZodEnum<["spot", "linear", "inverse", "option"]>; symbol: z.ZodString; side: z.ZodEnum<["Buy", "Sell"]>; orderType: z.ZodEnum<["Market", "Limit"]>; qty: z.ZodString; price: z.ZodOptional<z.ZodString>; timeInForce: z.ZodOptional<z.ZodEnum<["GTC", "IOC", "FOK"]>>; }, "strip", z.ZodTypeAny, { symbol: string; category: "spot" | "linear" | "inverse" | "option"; side: "Buy" | "Sell"; orderType: "Market" | "Limit"; qty: string; price?: string | undefined; timeInForce?: "GTC" | "IOC" | "FOK" | undefined; }, { symbol: string; category: "spot" | "linear" | "inverse" | "option"; side: "Buy" | "Sell"; orderType: "Market" | "Limit"; qty: string; price?: string | undefined; timeInForce?: "GTC" | "IOC" | "FOK" | undefined; }>; export declare const CancelOrderSchema: z.ZodObject<{ category: z.ZodEnum<["spot", "linear", "inverse", "option"]>; symbol: z.ZodString; orderId: z.ZodOptional<z.ZodString>; orderLinkId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { symbol: string; category: "spot" | "linear" | "inverse" | "option"; orderId?: string | undefined; orderLinkId?: string | undefined; }, { symbol: string; category: "spot" | "linear" | "inverse" | "option"; orderId?: string | undefined; orderLinkId?: string | undefined; }>; export declare const OrderHistorySchema: z.ZodObject<{ category: z.ZodEnum<["spot", "linear", "inverse", "option"]>; symbol: z.ZodOptional<z.ZodString>; limit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { category: "spot" | "linear" | "inverse" | "option"; symbol?: string | undefined; limit?: number | undefined; }, { category: "spot" | "linear" | "inverse" | "option"; symbol?: string | undefined; limit?: number | undefined; }>; export declare const OpenOrdersSchema: z.ZodObject<{ category: z.ZodEnum<["spot", "linear", "inverse", "option"]>; symbol: z.ZodOptional<z.ZodString>; limit: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { category: "spot" | "linear" | "inverse" | "option"; symbol?: string | undefined; limit?: number | undefined; }, { category: "spot" | "linear" | "inverse" | "option"; symbol?: string | undefined; limit?: number | undefined; }>; export declare const WalletBalanceSchema: z.ZodObject<{ accountType: z.ZodEnum<["UNIFIED", "CONTRACT", "SPOT", "INVESTMENT", "OPTION", "FUND"]>; coin: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { accountType: "UNIFIED" | "CONTRACT" | "SPOT" | "INVESTMENT" | "OPTION" | "FUND"; coin?: string | undefined; }, { accountType: "UNIFIED" | "CONTRACT" | "SPOT" | "INVESTMENT" | "OPTION" | "FUND"; coin?: string | undefined; }>; //# sourceMappingURL=types.d.ts.map