UNPKG

@dbotx/fast-swap-mcp-server

Version:

Fast Swap MCP Server - Supports quickly initiating token buy/sell tasks, querying transaction results, and managing take-profit/stop-loss tasks.

88 lines 2.81 kB
import type { CreateFastSwapRequest, CreateFastSwapsRequest, ApiResponse, SwapOrderInfo, TpslTask, CreateLimitOrdersRequest, EditLimitOrderRequest, EnableLimitOrderRequest, LimitOrderInfo, WalletInfo, WalletQueryParams, TokenSecurityInfo, TokenSecurityQueryParams } from './types.js'; export declare class DbotClient { private client; private apiKey; private baseUrl; constructor(apiKey?: string, baseUrl?: string); /** * Converts request data to the format required by the API */ private convertRequestData; /** * Converts batch request data to the format required by the API */ private convertBatchRequestData; /** * Creates a fast buy/sell trade order */ createFastSwap(request: CreateFastSwapRequest): Promise<ApiResponse<{ id: string; }>>; /** * Creates batch fast buy/sell trade orders */ createFastSwaps(request: CreateFastSwapsRequest): Promise<ApiResponse<{ id: string; }[]>>; /** * Queries fast buy/sell order information */ getSwapOrderInfo(orderIds: string[]): Promise<ApiResponse<SwapOrderInfo[]>>; /** * Gets all take-profit/stop-loss tasks created by the user's fast buy/sell */ getSwapTpslTasks(params?: { page?: number; size?: number; chain?: string; state?: string; sourceId?: string; token?: string; sortBy?: string; sort?: number; }): Promise<ApiResponse<TpslTask[]>>; /** * Gets user's fast buy/sell records */ getSwapRecords(params?: { page?: number; size?: number; chain?: string; }): Promise<ApiResponse<any[]>>; /** * Creates limit orders */ createLimitOrders(request: CreateLimitOrdersRequest): Promise<ApiResponse<any>>; /** * Gets the list of limit orders */ getLimitOrders(params?: { page?: number; size?: number; chain?: string; state?: string; groupId?: string; token?: string; }): Promise<ApiResponse<LimitOrderInfo[]>>; /** * Edits a limit order */ editLimitOrder(request: EditLimitOrderRequest): Promise<ApiResponse<any>>; /** * Enables/disables a limit order */ enableLimitOrder(request: EnableLimitOrderRequest): Promise<ApiResponse<any>>; /** * Deletes a limit order */ deleteLimitOrder(orderId: string): Promise<ApiResponse<any>>; /** * Get user's wallets for a specific chain */ getWallets(params?: WalletQueryParams): Promise<ApiResponse<WalletInfo[]>>; /** * Get token security information */ getTokenSecurityInfo(params: TokenSecurityQueryParams): Promise<ApiResponse<TokenSecurityInfo>>; } //# sourceMappingURL=client.d.ts.map