fixparser-plugin-mcp 9.1.7-c6228661 → 9.1.7-ce8f7927

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ export interface VerifiedOrder {
2
+ clOrdID: string;
3
+ handlInst: string;
4
+ quantity: number;
5
+ price: number;
6
+ ordType: string;
7
+ side: string;
8
+ symbol: string;
9
+ timeInForce: string;
10
+ }
11
+ export interface PricePoint {
12
+ timestamp: number;
13
+ price: number;
14
+ }
15
+ export interface ToolResponse {
16
+ content: Array<{
17
+ type: 'text' | 'image';
18
+ text?: string;
19
+ uri: string;
20
+ mimeType?: string;
21
+ image?: {
22
+ source: {
23
+ data: string;
24
+ };
25
+ };
26
+ }>;
27
+ isError?: boolean;
28
+ }
29
+ export type ToolHandler = (args: any) => Promise<ToolResponse>;
30
+ export interface ToolHandlers {
31
+ [key: string]: ToolHandler;
32
+ }
@@ -0,0 +1,168 @@
1
+ export declare const toolSchemas: {
2
+ parse: {
3
+ description: string;
4
+ schema: {
5
+ type: string;
6
+ properties: {
7
+ fixString: {
8
+ type: string;
9
+ };
10
+ };
11
+ required: string[];
12
+ };
13
+ };
14
+ parseToJSON: {
15
+ description: string;
16
+ schema: {
17
+ type: string;
18
+ properties: {
19
+ fixString: {
20
+ type: string;
21
+ };
22
+ };
23
+ required: string[];
24
+ };
25
+ };
26
+ verifyOrder: {
27
+ description: string;
28
+ schema: {
29
+ type: string;
30
+ properties: {
31
+ clOrdID: {
32
+ type: string;
33
+ };
34
+ handlInst: {
35
+ type: string;
36
+ enum: string[];
37
+ description: string;
38
+ };
39
+ quantity: {
40
+ type: string;
41
+ };
42
+ price: {
43
+ type: string;
44
+ };
45
+ ordType: {
46
+ type: string;
47
+ enum: string[];
48
+ description: string;
49
+ };
50
+ side: {
51
+ type: string;
52
+ enum: string[];
53
+ description: string;
54
+ };
55
+ symbol: {
56
+ type: string;
57
+ };
58
+ timeInForce: {
59
+ type: string;
60
+ enum: string[];
61
+ description: string;
62
+ };
63
+ };
64
+ required: string[];
65
+ };
66
+ };
67
+ executeOrder: {
68
+ description: string;
69
+ schema: {
70
+ type: string;
71
+ properties: {
72
+ clOrdID: {
73
+ type: string;
74
+ };
75
+ handlInst: {
76
+ type: string;
77
+ enum: string[];
78
+ description: string;
79
+ };
80
+ quantity: {
81
+ type: string;
82
+ };
83
+ price: {
84
+ type: string;
85
+ };
86
+ ordType: {
87
+ type: string;
88
+ enum: string[];
89
+ description: string;
90
+ };
91
+ side: {
92
+ type: string;
93
+ enum: string[];
94
+ description: string;
95
+ };
96
+ symbol: {
97
+ type: string;
98
+ };
99
+ timeInForce: {
100
+ type: string;
101
+ enum: string[];
102
+ description: string;
103
+ };
104
+ };
105
+ required: string[];
106
+ };
107
+ };
108
+ marketDataRequest: {
109
+ description: string;
110
+ schema: {
111
+ type: string;
112
+ properties: {
113
+ mdUpdateType: {
114
+ type: string;
115
+ enum: string[];
116
+ description: string;
117
+ };
118
+ symbols: {
119
+ type: string;
120
+ items: {
121
+ type: string;
122
+ };
123
+ };
124
+ mdReqID: {
125
+ type: string;
126
+ };
127
+ subscriptionRequestType: {
128
+ type: string;
129
+ enum: string[];
130
+ description: string;
131
+ };
132
+ mdEntryTypes: {
133
+ type: string;
134
+ items: {
135
+ type: string;
136
+ enum: string[];
137
+ description: string;
138
+ };
139
+ };
140
+ };
141
+ required: string[];
142
+ };
143
+ };
144
+ getStockGraph: {
145
+ description: string;
146
+ schema: {
147
+ type: string;
148
+ properties: {
149
+ symbol: {
150
+ type: string;
151
+ };
152
+ };
153
+ required: string[];
154
+ };
155
+ };
156
+ getStockPriceHistory: {
157
+ description: string;
158
+ schema: {
159
+ type: string;
160
+ properties: {
161
+ symbol: {
162
+ type: string;
163
+ };
164
+ };
165
+ required: string[];
166
+ };
167
+ };
168
+ };
@@ -0,0 +1,14 @@
1
+ import type { IFIXParser, Message } from 'fixparser';
2
+ import type { ToolHandlers, VerifiedOrder } from '../schemas';
3
+ export declare const createToolHandlers: (
4
+ parser: IFIXParser,
5
+ verifiedOrders: Map<string, VerifiedOrder>,
6
+ pendingRequests: Map<string, (data: Message) => void>,
7
+ marketDataPrices: Map<
8
+ string,
9
+ Array<{
10
+ timestamp: number;
11
+ price: number;
12
+ }>
13
+ >,
14
+ ) => ToolHandlers;
@@ -0,0 +1,34 @@
1
+ import { type IFIXParser, type Message } from 'fixparser';
2
+ import type { ToolResponse } from '../schemas';
3
+ export declare const createMarketDataRequestHandler: (
4
+ parser: IFIXParser,
5
+ pendingRequests: Map<string, (data: Message) => void>,
6
+ ) => (args: {
7
+ mdUpdateType: string;
8
+ symbols: string[];
9
+ mdReqID: string;
10
+ subscriptionRequestType: string;
11
+ mdEntryTypes: string[];
12
+ }) => Promise<ToolResponse>;
13
+ export declare const createGetStockGraphHandler: (
14
+ marketDataPrices: Map<
15
+ string,
16
+ Array<{
17
+ timestamp: number;
18
+ price: number;
19
+ }>
20
+ >,
21
+ ) => (args: {
22
+ symbol: string;
23
+ }) => Promise<ToolResponse>;
24
+ export declare const createGetStockPriceHistoryHandler: (
25
+ marketDataPrices: Map<
26
+ string,
27
+ Array<{
28
+ timestamp: number;
29
+ price: number;
30
+ }>
31
+ >,
32
+ ) => (args: {
33
+ symbol: string;
34
+ }) => Promise<ToolResponse>;
@@ -0,0 +1,11 @@
1
+ import { type IFIXParser, type Message } from 'fixparser';
2
+ import type { ToolResponse, VerifiedOrder } from '../schemas';
3
+ export declare const createVerifyOrderHandler: (
4
+ parser: IFIXParser,
5
+ verifiedOrders: Map<string, VerifiedOrder>,
6
+ ) => (args: VerifiedOrder) => Promise<ToolResponse>;
7
+ export declare const createExecuteOrderHandler: (
8
+ parser: IFIXParser,
9
+ verifiedOrders: Map<string, VerifiedOrder>,
10
+ pendingRequests: Map<string, (data: Message) => void>,
11
+ ) => (args: VerifiedOrder) => Promise<ToolResponse>;
@@ -0,0 +1,5 @@
1
+ import type { IFIXParser } from 'fixparser';
2
+ import type { ToolResponse } from '../schemas';
3
+ export declare const createParseHandler: (parser: IFIXParser) => (args: {
4
+ fixString: string;
5
+ }) => Promise<ToolResponse>;
@@ -0,0 +1,5 @@
1
+ import type { IFIXParser } from 'fixparser';
2
+ import type { ToolResponse } from '../schemas';
3
+ export declare const createParseToJSONHandler: (parser: IFIXParser) => (args: {
4
+ fixString: string;
5
+ }) => Promise<ToolResponse>;