@oomol-lab/open-connector 1.6.2 → 1.6.4

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.
Files changed (175) hide show
  1. package/README.md +27 -0
  2. package/assets/open-connector/catalog/apps/assured_platform.json +218 -0
  3. package/assets/open-connector/catalog/apps/baixiao.json +1080 -0
  4. package/assets/open-connector/catalog/apps/benchmarkone.json +956 -0
  5. package/assets/open-connector/catalog/apps/bing_webmaster.json +3097 -0
  6. package/assets/open-connector/catalog/apps/buzzsprout.json +1979 -0
  7. package/assets/open-connector/catalog/apps/feishu.json +13 -19
  8. package/assets/open-connector/catalog/apps/feishu_app_bot.json +12 -19
  9. package/assets/open-connector/catalog/apps/jin10.json +1 -1
  10. package/assets/open-connector/catalog/apps/linkfox.json +836 -0
  11. package/assets/open-connector/catalog/apps/metatraderapi.json +1077 -0
  12. package/assets/open-connector/catalog/apps/mktindex.json +2411 -0
  13. package/assets/open-connector/catalog/apps/mojo_helpdesk.json +660 -0
  14. package/assets/open-connector/catalog/apps/mumble.json +446 -0
  15. package/assets/open-connector/catalog/apps/notion.json +112 -3
  16. package/assets/open-connector/catalog/apps/omise.json +438 -0
  17. package/assets/open-connector/catalog/apps/panjiva.json +2858 -0
  18. package/assets/open-connector/catalog/apps/papertrail.json +449 -0
  19. package/assets/open-connector/catalog/apps/peec.json +747 -0
  20. package/assets/open-connector/catalog/apps/polygon_io.json +5156 -584
  21. package/assets/open-connector/catalog/apps/quant_data.json +1928 -0
  22. package/assets/open-connector/catalog/apps/riddle_quiz_maker.json +621 -0
  23. package/assets/open-connector/catalog/apps/slack.json +327 -4
  24. package/assets/open-connector/catalog/apps/slackbot.json +280 -3
  25. package/assets/open-connector/catalog/apps/templatedocs.json +438 -0
  26. package/assets/open-connector/catalog/apps/terminus_app.json +510 -0
  27. package/assets/open-connector/catalog/apps/ticket_tailor.json +584 -0
  28. package/assets/open-connector/catalog/apps/tongdaxin.json +2186 -82
  29. package/assets/open-connector/catalog/apps/veremark.json +514 -0
  30. package/assets/open-connector/catalog/apps/walletap.json +549 -0
  31. package/assets/open-connector/catalog/apps/xiaohongshu_store.json +955 -39
  32. package/assets/open-connector/catalog/apps-index.json +1 -1
  33. package/package.json +5 -1
  34. package/src/connection-service.d.ts +2 -0
  35. package/src/connection-service.js +8 -1
  36. package/src/core/provider-id.d.ts +5 -0
  37. package/src/core/provider-id.js +12 -0
  38. package/src/oauth/oauth-credential-refresh-service.js +2 -0
  39. package/src/oauth/oauth-flow-service.js +2 -0
  40. package/src/providers/action-contracts.generated.d.ts +27 -7
  41. package/src/providers/assured_platform/executors.d.ts +4 -0
  42. package/src/providers/assured_platform/executors.js +18 -0
  43. package/src/providers/assured_platform/runtime.d.ts +7 -0
  44. package/src/providers/assured_platform/runtime.js +108 -0
  45. package/src/providers/baixiao/actions.d.ts +2 -0
  46. package/src/providers/baixiao/actions.js +377 -0
  47. package/src/providers/baixiao/executors.d.ts +4 -0
  48. package/src/providers/baixiao/executors.js +106 -0
  49. package/src/providers/benchmarkone/executors.d.ts +4 -0
  50. package/src/providers/benchmarkone/executors.js +26 -0
  51. package/src/providers/benchmarkone/runtime.d.ts +12 -0
  52. package/src/providers/benchmarkone/runtime.js +113 -0
  53. package/src/providers/bing_webmaster/actions.d.ts +2 -0
  54. package/src/providers/bing_webmaster/actions.js +113 -0
  55. package/src/providers/bing_webmaster/executors.d.ts +4 -0
  56. package/src/providers/bing_webmaster/executors.js +104 -0
  57. package/src/providers/bing_webmaster/management-actions.d.ts +2 -0
  58. package/src/providers/bing_webmaster/management-actions.js +241 -0
  59. package/src/providers/bing_webmaster/reporting-actions.d.ts +2 -0
  60. package/src/providers/bing_webmaster/reporting-actions.js +300 -0
  61. package/src/providers/bing_webmaster/schemas.d.ts +33 -0
  62. package/src/providers/bing_webmaster/schemas.js +313 -0
  63. package/src/providers/buzzsprout/executors.d.ts +4 -0
  64. package/src/providers/buzzsprout/executors.js +21 -0
  65. package/src/providers/buzzsprout/runtime.d.ts +12 -0
  66. package/src/providers/buzzsprout/runtime.js +237 -0
  67. package/src/providers/dropbox/executors.js +21 -3
  68. package/src/providers/feishu/shared/drive-actions.d.ts +1 -0
  69. package/src/providers/feishu/shared/drive-actions.js +13 -9
  70. package/src/providers/feishu/shared/drive-runtime.js +15 -3
  71. package/src/providers/feishu/shared/wiki-actions.js +4 -2
  72. package/src/providers/feishu_app_bot/scopes.js +1 -1
  73. package/src/providers/hithink_finance/runtime.js +39 -60
  74. package/src/providers/linkfox/actions.js +2 -0
  75. package/src/providers/linkfox/runtime.js +70 -1
  76. package/src/providers/linkfox/sif-actions.d.ts +10 -0
  77. package/src/providers/linkfox/sif-actions.js +193 -0
  78. package/src/providers/mcp-client.d.ts +1 -0
  79. package/src/providers/mcp-client.js +41 -27
  80. package/src/providers/metatraderapi/executors.d.ts +4 -0
  81. package/src/providers/metatraderapi/executors.js +18 -0
  82. package/src/providers/metatraderapi/runtime.d.ts +7 -0
  83. package/src/providers/metatraderapi/runtime.js +216 -0
  84. package/src/providers/mktindex/actions-mmi.d.ts +2 -0
  85. package/src/providers/mktindex/actions-mmi.js +510 -0
  86. package/src/providers/mktindex/actions.d.ts +2 -0
  87. package/src/providers/mktindex/actions.js +2 -0
  88. package/src/providers/mktindex/executors.d.ts +4 -0
  89. package/src/providers/mktindex/executors.js +27 -0
  90. package/src/providers/mktindex/request.d.ts +17 -0
  91. package/src/providers/mktindex/request.js +48 -0
  92. package/src/providers/mktindex/runtime.d.ts +9 -0
  93. package/src/providers/mktindex/runtime.js +492 -0
  94. package/src/providers/mojo_helpdesk/executors.d.ts +4 -0
  95. package/src/providers/mojo_helpdesk/executors.js +18 -0
  96. package/src/providers/mojo_helpdesk/runtime.d.ts +7 -0
  97. package/src/providers/mojo_helpdesk/runtime.js +173 -0
  98. package/src/providers/mumble/executors.d.ts +4 -0
  99. package/src/providers/mumble/executors.js +99 -0
  100. package/src/providers/notion/executors.d.ts +9 -0
  101. package/src/providers/notion/executors.js +161 -6
  102. package/src/providers/omise/executors.d.ts +4 -0
  103. package/src/providers/omise/executors.js +120 -0
  104. package/src/providers/panjiva/actions.d.ts +14 -0
  105. package/src/providers/panjiva/actions.js +389 -0
  106. package/src/providers/panjiva/executors.d.ts +4 -0
  107. package/src/providers/panjiva/executors.js +136 -0
  108. package/src/providers/papertrail/executors.d.ts +4 -0
  109. package/src/providers/papertrail/executors.js +15 -0
  110. package/src/providers/papertrail/runtime.d.ts +7 -0
  111. package/src/providers/papertrail/runtime.js +167 -0
  112. package/src/providers/peec/executors.d.ts +4 -0
  113. package/src/providers/peec/executors.js +15 -0
  114. package/src/providers/peec/runtime.d.ts +7 -0
  115. package/src/providers/peec/runtime.js +128 -0
  116. package/src/providers/polygon_io/actions.d.ts +2 -0
  117. package/src/providers/polygon_io/actions.js +282 -0
  118. package/src/providers/polygon_io/expanded-actions.d.ts +2 -0
  119. package/src/providers/polygon_io/expanded-actions.js +375 -0
  120. package/src/providers/polygon_io/expanded-runtime.d.ts +16 -0
  121. package/src/providers/polygon_io/expanded-runtime.js +277 -0
  122. package/src/providers/polygon_io/runtime.js +21 -2
  123. package/src/providers/quant_data/executors.d.ts +4 -0
  124. package/src/providers/quant_data/executors.js +15 -0
  125. package/src/providers/quant_data/runtime.d.ts +7 -0
  126. package/src/providers/quant_data/runtime.js +118 -0
  127. package/src/providers/registry.generated.js +20 -0
  128. package/src/providers/riddle_quiz_maker/executors.d.ts +4 -0
  129. package/src/providers/riddle_quiz_maker/executors.js +15 -0
  130. package/src/providers/riddle_quiz_maker/runtime.d.ts +7 -0
  131. package/src/providers/riddle_quiz_maker/runtime.js +145 -0
  132. package/src/providers/sellersprite_mcp/executors.js +2 -1
  133. package/src/providers/slack/actions.js +106 -3
  134. package/src/providers/slack/runtime.js +262 -38
  135. package/src/providers/slackbot/actions.js +1 -1
  136. package/src/providers/templatedocs/executors.d.ts +4 -0
  137. package/src/providers/templatedocs/executors.js +18 -0
  138. package/src/providers/templatedocs/runtime.d.ts +13 -0
  139. package/src/providers/templatedocs/runtime.js +151 -0
  140. package/src/providers/terminus_app/executors.d.ts +4 -0
  141. package/src/providers/terminus_app/executors.js +15 -0
  142. package/src/providers/terminus_app/runtime.d.ts +7 -0
  143. package/src/providers/terminus_app/runtime.js +172 -0
  144. package/src/providers/ticket_tailor/executors.d.ts +4 -0
  145. package/src/providers/ticket_tailor/executors.js +15 -0
  146. package/src/providers/ticket_tailor/runtime.d.ts +7 -0
  147. package/src/providers/ticket_tailor/runtime.js +152 -0
  148. package/src/providers/tongdaxin/actions.d.ts +1 -0
  149. package/src/providers/tongdaxin/actions.js +6 -3
  150. package/src/providers/tongdaxin/executors.js +55 -13
  151. package/src/providers/tongdaxin/named-action-output.d.ts +1 -0
  152. package/src/providers/tongdaxin/named-action-output.js +143 -0
  153. package/src/providers/tongdaxin/named-action-routing.d.ts +9 -0
  154. package/src/providers/tongdaxin/named-action-routing.js +417 -0
  155. package/src/providers/tongdaxin/named-actions.d.ts +2 -0
  156. package/src/providers/tongdaxin/named-actions.js +373 -0
  157. package/src/providers/twenty_crm/runtime.js +4 -2
  158. package/src/providers/veremark/executors.d.ts +4 -0
  159. package/src/providers/veremark/executors.js +129 -0
  160. package/src/providers/walletap/executors.d.ts +4 -0
  161. package/src/providers/walletap/executors.js +15 -0
  162. package/src/providers/walletap/runtime.d.ts +7 -0
  163. package/src/providers/walletap/runtime.js +147 -0
  164. package/src/providers/weixin_official_account/access-token.js +31 -7
  165. package/src/providers/weixin_store/access-token.js +33 -7
  166. package/src/providers/xiaohongshu_store/executors.js +152 -3
  167. package/src/server/api/openapi.js +3 -0
  168. package/src/server/connector-assets.d.ts +4 -0
  169. package/src/server/connector-assets.js +12 -0
  170. package/src/server/connector-build.d.ts +33 -0
  171. package/src/server/connector-build.js +73 -0
  172. package/src/server/connector-runtime.d.ts +1 -2
  173. package/src/server/connector-runtime.js +2 -8
  174. package/src/server/server-assets.d.ts +0 -28
  175. package/src/server/server-assets.js +0 -50
@@ -0,0 +1,1077 @@
1
+ {
2
+ "service": "metatraderapi",
3
+ "displayName": "MetaTraderAPI",
4
+ "description": "Inspect MetaTrader accounts and market data through MetaTraderAPI.",
5
+ "categories": [
6
+ "Finance",
7
+ "Developer Tools"
8
+ ],
9
+ "authTypes": [
10
+ "api_key"
11
+ ],
12
+ "auth": [
13
+ {
14
+ "type": "api_key",
15
+ "label": "API Key",
16
+ "placeholder": "METATRADERAPI_API_KEY",
17
+ "description": "MetaTraderAPI API key sent as a Bearer token. Sign up at https://metatraderapi.cloud/accounts/signup/, then generate and copy a key from the API Keys section of the MetaTraderAPI dashboard."
18
+ }
19
+ ],
20
+ "homepageUrl": "https://metatraderapi.cloud/",
21
+ "actions": [
22
+ {
23
+ "id": "metatraderapi.close_all_sessions",
24
+ "service": "metatraderapi",
25
+ "name": "close_all_sessions",
26
+ "description": "Stop all active MetaTraderAPI sessions for the authenticated account.",
27
+ "operationType": "destructive",
28
+ "requiredScopes": [],
29
+ "providerPermissions": [],
30
+ "inputSchema": {
31
+ "type": "object",
32
+ "properties": {},
33
+ "additionalProperties": false,
34
+ "description": "The input payload for stopping all active sessions."
35
+ },
36
+ "outputSchema": {
37
+ "type": "object",
38
+ "properties": {
39
+ "result": {
40
+ "type": "object",
41
+ "properties": {},
42
+ "additionalProperties": true,
43
+ "description": "The provider response for the session operation."
44
+ }
45
+ },
46
+ "additionalProperties": false,
47
+ "description": "The result of a MetaTraderAPI session operation."
48
+ }
49
+ },
50
+ {
51
+ "id": "metatraderapi.get_account_info",
52
+ "service": "metatraderapi",
53
+ "name": "get_account_info",
54
+ "description": "Get balance, equity, margin, leverage, currency, and other account information.",
55
+ "operationType": "read",
56
+ "requiredScopes": [],
57
+ "providerPermissions": [],
58
+ "inputSchema": {
59
+ "type": "object",
60
+ "properties": {
61
+ "sessionId": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
65
+ "pattern": "\\S"
66
+ }
67
+ },
68
+ "additionalProperties": false,
69
+ "description": "The session whose account information should be returned."
70
+ },
71
+ "outputSchema": {
72
+ "type": "object",
73
+ "properties": {
74
+ "accountInfo": {
75
+ "type": "object",
76
+ "properties": {
77
+ "balance": {
78
+ "type": "string",
79
+ "description": "The current account balance as a decimal string."
80
+ },
81
+ "equity": {
82
+ "type": "string",
83
+ "description": "The current account equity as a decimal string."
84
+ },
85
+ "margin": {
86
+ "type": "string",
87
+ "description": "The margin currently in use as a decimal string."
88
+ },
89
+ "free_margin": {
90
+ "type": "string",
91
+ "description": "The currently available margin as a decimal string."
92
+ },
93
+ "margin_level": {
94
+ "anyOf": [
95
+ {
96
+ "type": "string",
97
+ "description": "The current margin level as a decimal string, when available."
98
+ },
99
+ {
100
+ "type": "null"
101
+ }
102
+ ]
103
+ },
104
+ "leverage": {
105
+ "type": "integer",
106
+ "description": "The account leverage."
107
+ },
108
+ "currency": {
109
+ "type": "string",
110
+ "description": "The account currency code."
111
+ },
112
+ "server_time": {
113
+ "type": "string",
114
+ "description": "The current broker server time.",
115
+ "format": "date-time"
116
+ },
117
+ "profit": {
118
+ "type": "string",
119
+ "description": "The current account profit as a decimal string."
120
+ },
121
+ "credit": {
122
+ "type": "string",
123
+ "description": "The current account credit as a decimal string."
124
+ }
125
+ },
126
+ "additionalProperties": true,
127
+ "description": "The current MetaTrader account information."
128
+ }
129
+ },
130
+ "additionalProperties": false,
131
+ "description": "The MetaTrader account information."
132
+ }
133
+ },
134
+ {
135
+ "id": "metatraderapi.get_equity",
136
+ "service": "metatraderapi",
137
+ "name": "get_equity",
138
+ "description": "Get the current equity, balance, profit, and currency for a session.",
139
+ "operationType": "read",
140
+ "requiredScopes": [],
141
+ "providerPermissions": [],
142
+ "inputSchema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "sessionId": {
146
+ "type": "string",
147
+ "minLength": 1,
148
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
149
+ "pattern": "\\S"
150
+ }
151
+ },
152
+ "additionalProperties": false,
153
+ "description": "The session whose equity information should be returned."
154
+ },
155
+ "outputSchema": {
156
+ "type": "object",
157
+ "properties": {
158
+ "equity": {
159
+ "type": "object",
160
+ "properties": {
161
+ "equity": {
162
+ "type": "string",
163
+ "description": "The current account equity as a decimal string."
164
+ },
165
+ "balance": {
166
+ "type": "string",
167
+ "description": "The current account balance as a decimal string."
168
+ },
169
+ "profit": {
170
+ "type": "string",
171
+ "description": "The current account profit as a decimal string."
172
+ },
173
+ "currency": {
174
+ "type": "string",
175
+ "description": "The account currency code."
176
+ }
177
+ },
178
+ "additionalProperties": true,
179
+ "description": "The current MetaTrader equity information."
180
+ }
181
+ },
182
+ "additionalProperties": false,
183
+ "description": "The current MetaTrader account equity information."
184
+ }
185
+ },
186
+ {
187
+ "id": "metatraderapi.get_margin",
188
+ "service": "metatraderapi",
189
+ "name": "get_margin",
190
+ "description": "Get the current margin and free-margin information for a session.",
191
+ "operationType": "read",
192
+ "requiredScopes": [],
193
+ "providerPermissions": [],
194
+ "inputSchema": {
195
+ "type": "object",
196
+ "properties": {
197
+ "sessionId": {
198
+ "type": "string",
199
+ "minLength": 1,
200
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
201
+ "pattern": "\\S"
202
+ }
203
+ },
204
+ "additionalProperties": false,
205
+ "description": "The session whose margin information should be returned."
206
+ },
207
+ "outputSchema": {
208
+ "type": "object",
209
+ "properties": {
210
+ "margin": {
211
+ "type": "object",
212
+ "properties": {
213
+ "margin": {
214
+ "type": "string",
215
+ "description": "The margin currently in use as a decimal string."
216
+ },
217
+ "free_margin": {
218
+ "type": "string",
219
+ "description": "The currently available margin as a decimal string."
220
+ },
221
+ "margin_level": {
222
+ "anyOf": [
223
+ {
224
+ "type": "string",
225
+ "description": "The current margin level as a decimal string, when available."
226
+ },
227
+ {
228
+ "type": "null"
229
+ }
230
+ ]
231
+ },
232
+ "currency": {
233
+ "type": "string",
234
+ "description": "The account currency code."
235
+ }
236
+ },
237
+ "additionalProperties": true,
238
+ "description": "The current MetaTrader margin information."
239
+ }
240
+ },
241
+ "additionalProperties": false,
242
+ "description": "The current MetaTrader account margin information."
243
+ }
244
+ },
245
+ {
246
+ "id": "metatraderapi.get_session_status",
247
+ "service": "metatraderapi",
248
+ "name": "get_session_status",
249
+ "description": "Get the activity, health, and MetaTrader connection status of a session.",
250
+ "operationType": "read",
251
+ "requiredScopes": [],
252
+ "providerPermissions": [],
253
+ "inputSchema": {
254
+ "type": "object",
255
+ "properties": {
256
+ "sessionId": {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
260
+ "pattern": "\\S"
261
+ }
262
+ },
263
+ "additionalProperties": false,
264
+ "description": "The session whose status should be returned."
265
+ },
266
+ "outputSchema": {
267
+ "type": "object",
268
+ "properties": {
269
+ "status": {
270
+ "type": "object",
271
+ "properties": {
272
+ "session_id": {
273
+ "type": "string",
274
+ "description": "The provider session identifier."
275
+ },
276
+ "is_active": {
277
+ "type": "boolean",
278
+ "description": "Whether the session is active."
279
+ },
280
+ "is_healthy": {
281
+ "type": "boolean",
282
+ "description": "Whether the session is healthy."
283
+ },
284
+ "mt5_connected": {
285
+ "type": "boolean",
286
+ "description": "Whether the session is connected to the broker."
287
+ },
288
+ "subprocess_status": {
289
+ "type": "string",
290
+ "description": "The current MetaTrader subprocess status."
291
+ },
292
+ "subprocess_pid": {
293
+ "anyOf": [
294
+ {
295
+ "type": "integer",
296
+ "description": "The MetaTrader subprocess identifier, when available."
297
+ },
298
+ {
299
+ "type": "null"
300
+ }
301
+ ]
302
+ },
303
+ "last_activity": {
304
+ "type": "string",
305
+ "description": "When the session was last active.",
306
+ "format": "date-time"
307
+ },
308
+ "connection_error": {
309
+ "anyOf": [
310
+ {
311
+ "type": "string",
312
+ "description": "The latest connection error, when present."
313
+ },
314
+ {
315
+ "type": "null"
316
+ }
317
+ ]
318
+ }
319
+ },
320
+ "additionalProperties": true,
321
+ "description": "The current MetaTraderAPI session status."
322
+ }
323
+ },
324
+ "additionalProperties": false,
325
+ "description": "The health and connection status of a session."
326
+ }
327
+ },
328
+ {
329
+ "id": "metatraderapi.get_symbol",
330
+ "service": "metatraderapi",
331
+ "name": "get_symbol",
332
+ "description": "Get current prices, spread, contract size, and volume limits for a symbol.",
333
+ "operationType": "read",
334
+ "requiredScopes": [],
335
+ "providerPermissions": [],
336
+ "inputSchema": {
337
+ "type": "object",
338
+ "properties": {
339
+ "sessionId": {
340
+ "type": "string",
341
+ "minLength": 1,
342
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
343
+ "pattern": "\\S"
344
+ },
345
+ "symbol": {
346
+ "type": "string",
347
+ "minLength": 1,
348
+ "description": "The trading symbol name to inspect, such as EURUSD.",
349
+ "pattern": "\\S"
350
+ }
351
+ },
352
+ "additionalProperties": false,
353
+ "description": "The session and trading symbol to inspect."
354
+ },
355
+ "outputSchema": {
356
+ "type": "object",
357
+ "properties": {
358
+ "symbol": {
359
+ "type": "object",
360
+ "properties": {
361
+ "symbol": {
362
+ "type": "string",
363
+ "description": "The symbol name."
364
+ },
365
+ "description": {
366
+ "type": "string",
367
+ "description": "The symbol description."
368
+ },
369
+ "bid": {
370
+ "type": "number",
371
+ "description": "The current bid price."
372
+ },
373
+ "ask": {
374
+ "type": "number",
375
+ "description": "The current ask price."
376
+ },
377
+ "spread": {
378
+ "type": "integer",
379
+ "description": "The current spread in points."
380
+ },
381
+ "digits": {
382
+ "type": "integer",
383
+ "description": "The number of decimal places used by the symbol."
384
+ },
385
+ "trade_contract_size": {
386
+ "type": "number",
387
+ "description": "The symbol contract size."
388
+ },
389
+ "min_volume": {
390
+ "type": "number",
391
+ "description": "The minimum supported trade volume."
392
+ },
393
+ "max_volume": {
394
+ "type": "number",
395
+ "description": "The maximum supported trade volume."
396
+ },
397
+ "volume_step": {
398
+ "type": "number",
399
+ "description": "The supported increment between trade volumes."
400
+ }
401
+ },
402
+ "additionalProperties": true,
403
+ "description": "Detailed information about a trading symbol."
404
+ }
405
+ },
406
+ "additionalProperties": false,
407
+ "description": "Detailed information about a trading symbol."
408
+ }
409
+ },
410
+ {
411
+ "id": "metatraderapi.list_deals",
412
+ "service": "metatraderapi",
413
+ "name": "list_deals",
414
+ "description": "List executed deals from the MetaTrader account history.",
415
+ "operationType": "read",
416
+ "requiredScopes": [],
417
+ "providerPermissions": [],
418
+ "inputSchema": {
419
+ "type": "object",
420
+ "properties": {
421
+ "sessionId": {
422
+ "type": "string",
423
+ "minLength": 1,
424
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
425
+ "pattern": "\\S"
426
+ },
427
+ "dateFrom": {
428
+ "type": "string",
429
+ "description": "The first date to include, in YYYY-MM-DD format.",
430
+ "format": "date"
431
+ },
432
+ "dateTo": {
433
+ "type": "string",
434
+ "description": "The last date to include, in YYYY-MM-DD format.",
435
+ "format": "date"
436
+ },
437
+ "daysBack": {
438
+ "type": "integer",
439
+ "description": "The number of days before today to include when dateFrom is not provided."
440
+ }
441
+ },
442
+ "additionalProperties": false,
443
+ "required": [
444
+ "sessionId"
445
+ ],
446
+ "description": "The session and optional date range used to query MetaTrader account history."
447
+ },
448
+ "outputSchema": {
449
+ "type": "object",
450
+ "properties": {
451
+ "deals": {
452
+ "type": "array",
453
+ "items": {
454
+ "type": "object",
455
+ "properties": {
456
+ "ticket": {
457
+ "type": "integer",
458
+ "description": "The deal ticket."
459
+ },
460
+ "order": {
461
+ "type": "integer",
462
+ "description": "The related order ticket."
463
+ },
464
+ "time": {
465
+ "type": "string",
466
+ "description": "The deal execution time."
467
+ },
468
+ "type": {
469
+ "type": "string",
470
+ "description": "The deal type."
471
+ },
472
+ "entry": {
473
+ "type": "string",
474
+ "description": "The deal entry direction."
475
+ },
476
+ "magic": {
477
+ "type": "integer",
478
+ "description": "The MetaTrader magic number associated with the deal."
479
+ },
480
+ "position_id": {
481
+ "type": "integer",
482
+ "description": "The related position identifier."
483
+ },
484
+ "reason": {
485
+ "type": "string",
486
+ "description": "The reason the deal was created."
487
+ },
488
+ "volume": {
489
+ "type": "number",
490
+ "description": "The executed volume."
491
+ },
492
+ "price": {
493
+ "type": "number",
494
+ "description": "The execution price."
495
+ },
496
+ "commission": {
497
+ "type": "number",
498
+ "description": "The deal commission."
499
+ },
500
+ "swap": {
501
+ "type": "number",
502
+ "description": "The deal swap amount."
503
+ },
504
+ "profit": {
505
+ "type": "number",
506
+ "description": "The deal profit or loss."
507
+ },
508
+ "symbol": {
509
+ "type": "string",
510
+ "description": "The traded symbol."
511
+ },
512
+ "comment": {
513
+ "type": "string",
514
+ "description": "The deal comment."
515
+ }
516
+ },
517
+ "additionalProperties": true,
518
+ "description": "An executed MetaTrader deal."
519
+ },
520
+ "description": "The executed deals returned by MetaTraderAPI."
521
+ }
522
+ },
523
+ "additionalProperties": false,
524
+ "description": "The executed deals in the requested account history range."
525
+ }
526
+ },
527
+ {
528
+ "id": "metatraderapi.list_history_orders",
529
+ "service": "metatraderapi",
530
+ "name": "list_history_orders",
531
+ "description": "List historical MetaTrader orders, including canceled and expired orders.",
532
+ "operationType": "read",
533
+ "requiredScopes": [],
534
+ "providerPermissions": [],
535
+ "inputSchema": {
536
+ "type": "object",
537
+ "properties": {
538
+ "sessionId": {
539
+ "type": "string",
540
+ "minLength": 1,
541
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
542
+ "pattern": "\\S"
543
+ },
544
+ "dateFrom": {
545
+ "type": "string",
546
+ "description": "The first date to include, in YYYY-MM-DD format.",
547
+ "format": "date"
548
+ },
549
+ "dateTo": {
550
+ "type": "string",
551
+ "description": "The last date to include, in YYYY-MM-DD format.",
552
+ "format": "date"
553
+ },
554
+ "daysBack": {
555
+ "type": "integer",
556
+ "description": "The number of days before today to include when dateFrom is not provided."
557
+ }
558
+ },
559
+ "additionalProperties": false,
560
+ "required": [
561
+ "sessionId"
562
+ ],
563
+ "description": "The session and optional date range used to query MetaTrader account history."
564
+ },
565
+ "outputSchema": {
566
+ "type": "object",
567
+ "properties": {
568
+ "orders": {
569
+ "type": "array",
570
+ "items": {
571
+ "type": "object",
572
+ "properties": {
573
+ "ticket": {
574
+ "type": "integer",
575
+ "description": "The order ticket."
576
+ },
577
+ "time_setup": {
578
+ "type": "string",
579
+ "description": "When the order was created."
580
+ },
581
+ "time_done": {
582
+ "type": "string",
583
+ "description": "When the order completed."
584
+ },
585
+ "type": {
586
+ "type": "string",
587
+ "description": "The order type."
588
+ },
589
+ "state": {
590
+ "type": "string",
591
+ "description": "The final order state."
592
+ },
593
+ "magic": {
594
+ "type": "integer",
595
+ "description": "The MetaTrader magic number associated with the order."
596
+ },
597
+ "position_id": {
598
+ "type": "integer",
599
+ "description": "The related position identifier."
600
+ },
601
+ "reason": {
602
+ "type": "string",
603
+ "description": "The reason the order was created."
604
+ },
605
+ "volume_initial": {
606
+ "type": "number",
607
+ "description": "The order's initial volume."
608
+ },
609
+ "volume_current": {
610
+ "type": "number",
611
+ "description": "The order's remaining volume."
612
+ },
613
+ "price_open": {
614
+ "type": "number",
615
+ "description": "The requested opening price."
616
+ },
617
+ "price_current": {
618
+ "type": "number",
619
+ "description": "The current or final price."
620
+ },
621
+ "sl": {
622
+ "anyOf": [
623
+ {
624
+ "type": "number",
625
+ "description": "The stop-loss price, when set."
626
+ },
627
+ {
628
+ "type": "null"
629
+ }
630
+ ]
631
+ },
632
+ "tp": {
633
+ "anyOf": [
634
+ {
635
+ "type": "number",
636
+ "description": "The take-profit price, when set."
637
+ },
638
+ {
639
+ "type": "null"
640
+ }
641
+ ]
642
+ },
643
+ "symbol": {
644
+ "type": "string",
645
+ "description": "The traded symbol."
646
+ },
647
+ "comment": {
648
+ "type": "string",
649
+ "description": "The order comment."
650
+ }
651
+ },
652
+ "additionalProperties": true,
653
+ "description": "A historical MetaTrader order."
654
+ },
655
+ "description": "The historical orders returned by MetaTraderAPI."
656
+ }
657
+ },
658
+ "additionalProperties": false,
659
+ "description": "The historical orders in the requested account history range."
660
+ }
661
+ },
662
+ {
663
+ "id": "metatraderapi.list_orders",
664
+ "service": "metatraderapi",
665
+ "name": "list_orders",
666
+ "description": "List pending orders for a MetaTraderAPI session.",
667
+ "operationType": "read",
668
+ "requiredScopes": [],
669
+ "providerPermissions": [],
670
+ "inputSchema": {
671
+ "type": "object",
672
+ "properties": {
673
+ "sessionId": {
674
+ "type": "string",
675
+ "minLength": 1,
676
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
677
+ "pattern": "\\S"
678
+ }
679
+ },
680
+ "additionalProperties": false,
681
+ "description": "The session whose pending orders should be returned."
682
+ },
683
+ "outputSchema": {
684
+ "type": "object",
685
+ "properties": {
686
+ "orders": {
687
+ "type": "array",
688
+ "items": {
689
+ "type": "object",
690
+ "properties": {},
691
+ "additionalProperties": true,
692
+ "description": "A provider-defined pending order object."
693
+ },
694
+ "description": "The pending orders returned by MetaTraderAPI."
695
+ }
696
+ },
697
+ "additionalProperties": false,
698
+ "description": "The pending orders for the MetaTraderAPI session."
699
+ }
700
+ },
701
+ {
702
+ "id": "metatraderapi.list_positions",
703
+ "service": "metatraderapi",
704
+ "name": "list_positions",
705
+ "description": "List current open positions for a MetaTraderAPI session.",
706
+ "operationType": "read",
707
+ "requiredScopes": [],
708
+ "providerPermissions": [],
709
+ "inputSchema": {
710
+ "type": "object",
711
+ "properties": {
712
+ "sessionId": {
713
+ "type": "string",
714
+ "minLength": 1,
715
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
716
+ "pattern": "\\S"
717
+ }
718
+ },
719
+ "additionalProperties": false,
720
+ "description": "The session whose open positions should be returned."
721
+ },
722
+ "outputSchema": {
723
+ "type": "object",
724
+ "properties": {
725
+ "positions": {
726
+ "type": "array",
727
+ "items": {
728
+ "type": "object",
729
+ "properties": {},
730
+ "additionalProperties": true,
731
+ "description": "A provider-defined open position object."
732
+ },
733
+ "description": "The open positions returned by MetaTraderAPI."
734
+ }
735
+ },
736
+ "additionalProperties": false,
737
+ "description": "The open positions for the MetaTraderAPI session."
738
+ }
739
+ },
740
+ {
741
+ "id": "metatraderapi.list_sessions",
742
+ "service": "metatraderapi",
743
+ "name": "list_sessions",
744
+ "description": "List all active MetaTraderAPI sessions for the authenticated account.",
745
+ "operationType": "read",
746
+ "requiredScopes": [],
747
+ "providerPermissions": [],
748
+ "inputSchema": {
749
+ "type": "object",
750
+ "properties": {},
751
+ "additionalProperties": false,
752
+ "description": "The input payload for listing active sessions."
753
+ },
754
+ "outputSchema": {
755
+ "type": "object",
756
+ "properties": {
757
+ "sessions": {
758
+ "type": "array",
759
+ "items": {
760
+ "type": "object",
761
+ "properties": {
762
+ "session_id": {
763
+ "type": "string",
764
+ "description": "The provider session identifier."
765
+ },
766
+ "account_id": {
767
+ "type": "string",
768
+ "description": "The connected MetaTrader account identifier."
769
+ },
770
+ "server": {
771
+ "type": "string",
772
+ "description": "The connected broker server."
773
+ },
774
+ "platform": {
775
+ "type": "string",
776
+ "description": "The connected MetaTrader platform."
777
+ },
778
+ "is_active": {
779
+ "type": "boolean",
780
+ "description": "Whether the session is active."
781
+ },
782
+ "is_healthy": {
783
+ "type": "boolean",
784
+ "description": "Whether the session is healthy."
785
+ },
786
+ "started_at": {
787
+ "type": "string",
788
+ "description": "When the session started."
789
+ },
790
+ "last_activity": {
791
+ "type": "string",
792
+ "description": "When the session was last active."
793
+ }
794
+ },
795
+ "additionalProperties": true,
796
+ "description": "An active MetaTraderAPI session."
797
+ },
798
+ "description": "The active sessions available to the authenticated MetaTraderAPI account."
799
+ }
800
+ },
801
+ "additionalProperties": false,
802
+ "description": "The active MetaTraderAPI sessions."
803
+ }
804
+ },
805
+ {
806
+ "id": "metatraderapi.list_symbols",
807
+ "service": "metatraderapi",
808
+ "name": "list_symbols",
809
+ "description": "List trading symbols available to a MetaTraderAPI session.",
810
+ "operationType": "read",
811
+ "requiredScopes": [],
812
+ "providerPermissions": [],
813
+ "inputSchema": {
814
+ "type": "object",
815
+ "properties": {
816
+ "sessionId": {
817
+ "type": "string",
818
+ "minLength": 1,
819
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
820
+ "pattern": "\\S"
821
+ }
822
+ },
823
+ "additionalProperties": false,
824
+ "description": "The session whose available symbols should be returned."
825
+ },
826
+ "outputSchema": {
827
+ "type": "object",
828
+ "properties": {
829
+ "symbols": {
830
+ "type": "array",
831
+ "items": {
832
+ "type": "string",
833
+ "minLength": 1,
834
+ "description": "A trading symbol name such as EURUSD."
835
+ },
836
+ "description": "The symbol names returned by MetaTraderAPI."
837
+ }
838
+ },
839
+ "additionalProperties": false,
840
+ "description": "The trading symbols available in the session."
841
+ }
842
+ },
843
+ {
844
+ "id": "metatraderapi.ping_session",
845
+ "service": "metatraderapi",
846
+ "name": "ping_session",
847
+ "description": "Ping a MetaTraderAPI session to check whether it is responsive.",
848
+ "operationType": "read",
849
+ "requiredScopes": [],
850
+ "providerPermissions": [],
851
+ "inputSchema": {
852
+ "type": "object",
853
+ "properties": {
854
+ "sessionId": {
855
+ "type": "string",
856
+ "minLength": 1,
857
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
858
+ "pattern": "\\S"
859
+ }
860
+ },
861
+ "additionalProperties": false,
862
+ "description": "The session to ping."
863
+ },
864
+ "outputSchema": {
865
+ "type": "object",
866
+ "properties": {
867
+ "ping": {
868
+ "type": "object",
869
+ "properties": {
870
+ "success": {
871
+ "type": "boolean",
872
+ "description": "Whether the ping succeeded."
873
+ },
874
+ "message": {
875
+ "type": "string",
876
+ "description": "The provider ping message."
877
+ },
878
+ "timestamp": {
879
+ "type": "number",
880
+ "description": "The provider timestamp for the ping response."
881
+ }
882
+ },
883
+ "additionalProperties": true,
884
+ "description": "The MetaTraderAPI session ping result."
885
+ }
886
+ },
887
+ "additionalProperties": false,
888
+ "description": "The result of pinging the MetaTraderAPI session."
889
+ }
890
+ },
891
+ {
892
+ "id": "metatraderapi.start_session",
893
+ "service": "metatraderapi",
894
+ "name": "start_session",
895
+ "description": "Start a MetaTraderAPI session connected to an MT4 or MT5 trading account.",
896
+ "operationType": "write",
897
+ "requiredScopes": [],
898
+ "providerPermissions": [],
899
+ "inputSchema": {
900
+ "type": "object",
901
+ "properties": {
902
+ "accountId": {
903
+ "type": "string",
904
+ "minLength": 1,
905
+ "maxLength": 50,
906
+ "description": "The MetaTrader trading account login identifier."
907
+ },
908
+ "password": {
909
+ "type": "string",
910
+ "minLength": 1,
911
+ "maxLength": 100,
912
+ "description": "The password for the MetaTrader trading account."
913
+ },
914
+ "server": {
915
+ "type": "string",
916
+ "minLength": 1,
917
+ "maxLength": 100,
918
+ "description": "The broker server name or address used by the trading account."
919
+ },
920
+ "platform": {
921
+ "type": "string",
922
+ "enum": [
923
+ "MT4",
924
+ "MT5"
925
+ ],
926
+ "description": "The MetaTrader platform used by the trading account.",
927
+ "default": "MT5"
928
+ }
929
+ },
930
+ "additionalProperties": false,
931
+ "description": "The credentials and platform used to start a session."
932
+ },
933
+ "outputSchema": {
934
+ "type": "object",
935
+ "properties": {
936
+ "session": {
937
+ "type": "object",
938
+ "properties": {
939
+ "id": {
940
+ "type": "integer",
941
+ "description": "The provider record identifier for the session."
942
+ },
943
+ "session_id": {
944
+ "type": "string",
945
+ "description": "The provider session identifier."
946
+ },
947
+ "started_at": {
948
+ "type": "string",
949
+ "description": "When the session started.",
950
+ "format": "date-time"
951
+ },
952
+ "last_activity": {
953
+ "type": "string",
954
+ "description": "When the session was last active.",
955
+ "format": "date-time"
956
+ },
957
+ "ended_at": {
958
+ "anyOf": [
959
+ {
960
+ "type": "string",
961
+ "description": "When the session ended, when available.",
962
+ "format": "date-time"
963
+ },
964
+ {
965
+ "type": "null"
966
+ }
967
+ ]
968
+ },
969
+ "is_active": {
970
+ "type": "boolean",
971
+ "description": "Whether the session is active."
972
+ },
973
+ "subprocess_pid": {
974
+ "anyOf": [
975
+ {
976
+ "type": "integer",
977
+ "description": "The MetaTrader subprocess identifier, when available."
978
+ },
979
+ {
980
+ "type": "null"
981
+ }
982
+ ]
983
+ },
984
+ "subprocess_status": {
985
+ "type": "string",
986
+ "description": "The current MetaTrader subprocess status."
987
+ },
988
+ "mt5_connected": {
989
+ "type": "boolean",
990
+ "description": "Whether the session is connected to the broker."
991
+ },
992
+ "account_info": {
993
+ "type": "object",
994
+ "properties": {
995
+ "id": {
996
+ "type": "integer",
997
+ "description": "The provider record identifier for the account."
998
+ },
999
+ "account_id": {
1000
+ "type": "string",
1001
+ "description": "The MetaTrader account identifier."
1002
+ },
1003
+ "broker": {
1004
+ "type": "string",
1005
+ "description": "The account broker name."
1006
+ },
1007
+ "platform": {
1008
+ "type": "string",
1009
+ "enum": [
1010
+ "MT4",
1011
+ "MT5"
1012
+ ],
1013
+ "description": "The MetaTrader platform used by the account."
1014
+ },
1015
+ "server": {
1016
+ "type": "string",
1017
+ "description": "The broker server used by the account."
1018
+ },
1019
+ "is_active": {
1020
+ "type": "boolean",
1021
+ "description": "Whether the account is active."
1022
+ },
1023
+ "created_at": {
1024
+ "type": "string",
1025
+ "description": "When the provider account record was created.",
1026
+ "format": "date-time"
1027
+ }
1028
+ },
1029
+ "additionalProperties": true,
1030
+ "description": "The MetaTrader account connected to a session."
1031
+ }
1032
+ },
1033
+ "additionalProperties": true,
1034
+ "description": "A MetaTraderAPI session returned after connection."
1035
+ }
1036
+ },
1037
+ "additionalProperties": false,
1038
+ "description": "The MetaTraderAPI session that was started."
1039
+ }
1040
+ },
1041
+ {
1042
+ "id": "metatraderapi.stop_session",
1043
+ "service": "metatraderapi",
1044
+ "name": "stop_session",
1045
+ "description": "Stop one active MetaTraderAPI session.",
1046
+ "operationType": "destructive",
1047
+ "requiredScopes": [],
1048
+ "providerPermissions": [],
1049
+ "inputSchema": {
1050
+ "type": "object",
1051
+ "properties": {
1052
+ "sessionId": {
1053
+ "type": "string",
1054
+ "minLength": 1,
1055
+ "description": "The MetaTraderAPI session identifier returned by start_session.",
1056
+ "pattern": "\\S"
1057
+ }
1058
+ },
1059
+ "additionalProperties": false,
1060
+ "description": "The session to stop."
1061
+ },
1062
+ "outputSchema": {
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "result": {
1066
+ "type": "object",
1067
+ "properties": {},
1068
+ "additionalProperties": true,
1069
+ "description": "The provider response for the session operation."
1070
+ }
1071
+ },
1072
+ "additionalProperties": false,
1073
+ "description": "The result of a MetaTraderAPI session operation."
1074
+ }
1075
+ }
1076
+ ]
1077
+ }