atlaas 0.1.1 → 0.3.0

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.
package/dist/schemas.d.ts CHANGED
@@ -1,17 +1,51 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const InstanceStateSchema: z.ZodEnum<["PENDING", "DEPLOYING", "DEPLOYED", "RUNNING", "STOPPED", "ERROR"]>;
4
- declare const InstanceTypeSchema: z.ZodEnum<["TICK", "TICKS_TRADE", "TRADE"]>;
5
- declare const OrderDirectionSchema: z.ZodEnum<["BUY", "SELL"]>;
6
- declare const OrderTypeSchema: z.ZodEnum<["BUY", "SELL", "BUY_LIMIT", "SELL_LIMIT", "BUY_STOP", "SELL_STOP", "BUY_STOP_LIMIT", "SELL_STOP_LIMIT"]>;
3
+ declare const InstanceStateSchema: z.ZodEnum<{
4
+ PENDING: "PENDING";
5
+ DEPLOYING: "DEPLOYING";
6
+ DEPLOYED: "DEPLOYED";
7
+ RUNNING: "RUNNING";
8
+ STOPPED: "STOPPED";
9
+ ERROR: "ERROR";
10
+ }>;
11
+ declare const InstanceTypeSchema: z.ZodEnum<{
12
+ TICK: "TICK";
13
+ TICKS_TRADE: "TICKS_TRADE";
14
+ TRADE: "TRADE";
15
+ }>;
16
+ declare const OrderDirectionSchema: z.ZodEnum<{
17
+ BUY: "BUY";
18
+ SELL: "SELL";
19
+ }>;
20
+ declare const OrderTypeSchema: z.ZodEnum<{
21
+ BUY: "BUY";
22
+ SELL: "SELL";
23
+ BUY_LIMIT: "BUY_LIMIT";
24
+ SELL_LIMIT: "SELL_LIMIT";
25
+ BUY_STOP: "BUY_STOP";
26
+ SELL_STOP: "SELL_STOP";
27
+ BUY_STOP_LIMIT: "BUY_STOP_LIMIT";
28
+ SELL_STOP_LIMIT: "SELL_STOP_LIMIT";
29
+ }>;
7
30
  declare const InstanceSchema: z.ZodObject<{
8
31
  id: z.ZodString;
9
32
  accountId: z.ZodString;
10
33
  serverName: z.ZodNullable<z.ZodString>;
11
34
  brokerName: z.ZodNullable<z.ZodString>;
12
35
  name: z.ZodNullable<z.ZodString>;
13
- state: z.ZodEnum<["PENDING", "DEPLOYING", "DEPLOYED", "RUNNING", "STOPPED", "ERROR"]>;
14
- type: z.ZodEnum<["TICK", "TICKS_TRADE", "TRADE"]>;
36
+ state: z.ZodEnum<{
37
+ PENDING: "PENDING";
38
+ DEPLOYING: "DEPLOYING";
39
+ DEPLOYED: "DEPLOYED";
40
+ RUNNING: "RUNNING";
41
+ STOPPED: "STOPPED";
42
+ ERROR: "ERROR";
43
+ }>;
44
+ type: z.ZodEnum<{
45
+ TICK: "TICK";
46
+ TICKS_TRADE: "TICKS_TRADE";
47
+ TRADE: "TRADE";
48
+ }>;
15
49
  enabled: z.ZodBoolean;
16
50
  lastActiveAt: z.ZodNullable<z.ZodString>;
17
51
  connectedAt: z.ZodNullable<z.ZodString>;
@@ -19,98 +53,76 @@ declare const InstanceSchema: z.ZodObject<{
19
53
  statusMessage: z.ZodNullable<z.ZodString>;
20
54
  createdAt: z.ZodString;
21
55
  updatedAt: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- id: string;
24
- accountId: string;
25
- serverName: string | null;
26
- brokerName: string | null;
27
- name: string | null;
28
- state: "PENDING" | "DEPLOYING" | "DEPLOYED" | "RUNNING" | "STOPPED" | "ERROR";
29
- type: "TICK" | "TICKS_TRADE" | "TRADE";
30
- enabled: boolean;
31
- lastActiveAt: string | null;
32
- connectedAt: string | null;
33
- errorMessage: string | null;
34
- statusMessage: string | null;
35
- createdAt: string;
36
- updatedAt: string;
37
- }, {
38
- id: string;
39
- accountId: string;
40
- serverName: string | null;
41
- brokerName: string | null;
42
- name: string | null;
43
- state: "PENDING" | "DEPLOYING" | "DEPLOYED" | "RUNNING" | "STOPPED" | "ERROR";
44
- type: "TICK" | "TICKS_TRADE" | "TRADE";
45
- enabled: boolean;
46
- lastActiveAt: string | null;
47
- connectedAt: string | null;
48
- errorMessage: string | null;
49
- statusMessage: string | null;
50
- createdAt: string;
51
- updatedAt: string;
52
- }>;
56
+ }, z.core.$strip>;
53
57
  declare const AtlasInstanceSchema: z.ZodObject<{
54
58
  id: z.ZodString;
59
+ atlasAccountId: z.ZodNullable<z.ZodString>;
55
60
  externalRef: z.ZodNullable<z.ZodString>;
56
61
  externalUserId: z.ZodNullable<z.ZodString>;
57
62
  instanceKind: z.ZodNullable<z.ZodString>;
63
+ accountId: z.ZodNullable<z.ZodString>;
58
64
  runnerId: z.ZodString;
59
- state: z.ZodEnum<["PENDING", "DEPLOYING", "DEPLOYED", "RUNNING", "STOPPED", "ERROR"]>;
65
+ name: z.ZodNullable<z.ZodString>;
66
+ state: z.ZodEnum<{
67
+ PENDING: "PENDING";
68
+ DEPLOYING: "DEPLOYING";
69
+ DEPLOYED: "DEPLOYED";
70
+ RUNNING: "RUNNING";
71
+ STOPPED: "STOPPED";
72
+ ERROR: "ERROR";
73
+ }>;
60
74
  enabled: z.ZodBoolean;
61
- registeredIp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ autoRestart: z.ZodBoolean;
76
+ containerCpus: z.ZodNullable<z.ZodString>;
77
+ containerMemory: z.ZodNullable<z.ZodString>;
78
+ registeredIp: z.ZodNullable<z.ZodString>;
79
+ ipVerifiedAt: z.ZodNullable<z.ZodString>;
62
80
  lastActiveAt: z.ZodNullable<z.ZodString>;
63
81
  connectedAt: z.ZodNullable<z.ZodString>;
64
- disconnectedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ disconnectedAt: z.ZodNullable<z.ZodString>;
83
+ ticksReceived: z.ZodString;
84
+ tradesExecuted: z.ZodString;
85
+ errorCount: z.ZodNumber;
86
+ avgLatencyMs: z.ZodNullable<z.ZodNumber>;
65
87
  statusMessage: z.ZodNullable<z.ZodString>;
66
88
  errorMessage: z.ZodNullable<z.ZodString>;
67
- lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
- lastErrorAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
71
- createdAt: z.ZodOptional<z.ZodString>;
72
- updatedAt: z.ZodOptional<z.ZodString>;
73
- }, "strip", z.ZodTypeAny, {
74
- id: string;
75
- state: "PENDING" | "DEPLOYING" | "DEPLOYED" | "RUNNING" | "STOPPED" | "ERROR";
76
- enabled: boolean;
77
- lastActiveAt: string | null;
78
- connectedAt: string | null;
79
- errorMessage: string | null;
80
- statusMessage: string | null;
81
- externalRef: string | null;
82
- externalUserId: string | null;
83
- instanceKind: string | null;
84
- runnerId: string;
85
- createdAt?: string | undefined;
86
- updatedAt?: string | undefined;
87
- registeredIp?: string | null | undefined;
88
- disconnectedAt?: string | null | undefined;
89
- lastError?: string | null | undefined;
90
- lastErrorAt?: string | null | undefined;
91
- displayName?: string | null | undefined;
92
- metadata?: Record<string, unknown> | null | undefined;
93
- }, {
94
- id: string;
95
- state: "PENDING" | "DEPLOYING" | "DEPLOYED" | "RUNNING" | "STOPPED" | "ERROR";
96
- enabled: boolean;
97
- lastActiveAt: string | null;
98
- connectedAt: string | null;
99
- errorMessage: string | null;
100
- statusMessage: string | null;
101
- externalRef: string | null;
102
- externalUserId: string | null;
103
- instanceKind: string | null;
104
- runnerId: string;
105
- createdAt?: string | undefined;
106
- updatedAt?: string | undefined;
107
- registeredIp?: string | null | undefined;
108
- disconnectedAt?: string | null | undefined;
109
- lastError?: string | null | undefined;
110
- lastErrorAt?: string | null | undefined;
111
- displayName?: string | null | undefined;
112
- metadata?: Record<string, unknown> | null | undefined;
113
- }>;
89
+ lastError: z.ZodNullable<z.ZodString>;
90
+ lastErrorAt: z.ZodNullable<z.ZodString>;
91
+ lastSyncedAt: z.ZodNullable<z.ZodString>;
92
+ retryCount: z.ZodNumber;
93
+ nextRetryAt: z.ZodNullable<z.ZodString>;
94
+ displayName: z.ZodNullable<z.ZodString>;
95
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
+ availableBalance: z.ZodNullable<z.ZodString>;
97
+ equity: z.ZodNullable<z.ZodString>;
98
+ utilizedAmount: z.ZodNullable<z.ZodString>;
99
+ collateralAmount: z.ZodNullable<z.ZodString>;
100
+ withdrawableBalance: z.ZodNullable<z.ZodString>;
101
+ profileData: z.ZodUnknown;
102
+ fundsSyncedAt: z.ZodNullable<z.ZodString>;
103
+ runner: z.ZodObject<{
104
+ ipAddress: z.ZodNullable<z.ZodString>;
105
+ health: z.ZodEnum<{
106
+ HEALTHY: "HEALTHY";
107
+ DEGRADED: "DEGRADED";
108
+ UNHEALTHY: "UNHEALTHY";
109
+ }>;
110
+ lastSeenAt: z.ZodNullable<z.ZodString>;
111
+ managedRunner: z.ZodNullable<z.ZodObject<{
112
+ state: z.ZodEnum<{
113
+ PROVISIONING: "PROVISIONING";
114
+ ACTIVE: "ACTIVE";
115
+ FAILED: "FAILED";
116
+ DEPROVISIONING: "DEPROVISIONING";
117
+ DELETED: "DELETED";
118
+ }>;
119
+ ipAddress: z.ZodNullable<z.ZodString>;
120
+ lastError: z.ZodNullable<z.ZodString>;
121
+ }, z.core.$strip>>;
122
+ }, z.core.$strip>;
123
+ createdAt: z.ZodString;
124
+ updatedAt: z.ZodString;
125
+ }, z.core.$strip>;
114
126
  declare const AccountInfoSchema: z.ZodObject<{
115
127
  accountId: z.ZodString;
116
128
  balance: z.ZodNumber;
@@ -125,39 +137,15 @@ declare const AccountInfoSchema: z.ZodObject<{
125
137
  profit: z.ZodOptional<z.ZodNumber>;
126
138
  marginLevel: z.ZodOptional<z.ZodNumber>;
127
139
  tradeAllowed: z.ZodOptional<z.ZodBoolean>;
128
- }, "strip", z.ZodTypeAny, {
129
- accountId: string;
130
- balance: number;
131
- equity: number;
132
- margin: number;
133
- freeMargin: number;
134
- name?: string | undefined;
135
- leverage?: number | undefined;
136
- currency?: string | undefined;
137
- server?: string | undefined;
138
- credit?: number | undefined;
139
- profit?: number | undefined;
140
- marginLevel?: number | undefined;
141
- tradeAllowed?: boolean | undefined;
142
- }, {
143
- accountId: string;
144
- balance: number;
145
- equity: number;
146
- margin: number;
147
- freeMargin: number;
148
- name?: string | undefined;
149
- leverage?: number | undefined;
150
- currency?: string | undefined;
151
- server?: string | undefined;
152
- credit?: number | undefined;
153
- profit?: number | undefined;
154
- marginLevel?: number | undefined;
155
- tradeAllowed?: boolean | undefined;
156
- }>;
140
+ }, z.core.$strip>;
157
141
  declare const PositionSchema: z.ZodObject<{
158
142
  ticket: z.ZodNumber;
143
+ identifier: z.ZodOptional<z.ZodNumber>;
159
144
  symbol: z.ZodString;
160
- type: z.ZodEnum<["BUY", "SELL"]>;
145
+ type: z.ZodEnum<{
146
+ BUY: "BUY";
147
+ SELL: "SELL";
148
+ }>;
161
149
  volume: z.ZodNumber;
162
150
  openPrice: z.ZodNumber;
163
151
  currentPrice: z.ZodNumber;
@@ -169,37 +157,32 @@ declare const PositionSchema: z.ZodObject<{
169
157
  commission: z.ZodOptional<z.ZodNumber>;
170
158
  comment: z.ZodOptional<z.ZodString>;
171
159
  magic: z.ZodOptional<z.ZodNumber>;
172
- }, "strip", z.ZodTypeAny, {
173
- symbol: string;
174
- type: "BUY" | "SELL";
175
- profit: number;
176
- ticket: number;
177
- volume: number;
178
- openPrice: number;
179
- currentPrice: number;
180
- sl: number;
181
- tp: number;
182
- swap: number;
183
- openTime: number;
184
- commission?: number | undefined;
185
- comment?: string | undefined;
186
- magic?: number | undefined;
187
- }, {
188
- symbol: string;
189
- type: "BUY" | "SELL";
190
- profit: number;
191
- ticket: number;
192
- volume: number;
193
- openPrice: number;
194
- currentPrice: number;
195
- sl: number;
196
- tp: number;
197
- swap: number;
198
- openTime: number;
199
- commission?: number | undefined;
200
- comment?: string | undefined;
201
- magic?: number | undefined;
202
- }>;
160
+ digits: z.ZodOptional<z.ZodNumber>;
161
+ point: z.ZodOptional<z.ZodNumber>;
162
+ volumeMin: z.ZodOptional<z.ZodNumber>;
163
+ volumeStep: z.ZodOptional<z.ZodNumber>;
164
+ }, z.core.$strip>;
165
+ declare const ClosedPositionSchema: z.ZodObject<{
166
+ ticket: z.ZodNumber;
167
+ symbol: z.ZodString;
168
+ status: z.ZodLiteral<"CLOSED">;
169
+ type: z.ZodEnum<{
170
+ "": "";
171
+ BUY: "BUY";
172
+ SELL: "SELL";
173
+ }>;
174
+ volume: z.ZodNumber;
175
+ openPrice: z.ZodNumber;
176
+ closePrice: z.ZodNumber;
177
+ profit: z.ZodNumber;
178
+ swap: z.ZodNumber;
179
+ commission: z.ZodNumber;
180
+ openTime: z.ZodNumber;
181
+ closeTime: z.ZodNumber;
182
+ closeTimeMs: z.ZodNumber;
183
+ magic: z.ZodNumber;
184
+ comment: z.ZodString;
185
+ }, z.core.$strip>;
203
186
  declare const OrderSchema: z.ZodObject<{
204
187
  ticket: z.ZodNumber;
205
188
  symbol: z.ZodString;
@@ -214,35 +197,7 @@ declare const OrderSchema: z.ZodObject<{
214
197
  state: z.ZodOptional<z.ZodString>;
215
198
  expiration: z.ZodOptional<z.ZodNumber>;
216
199
  volumeCurrent: z.ZodOptional<z.ZodNumber>;
217
- }, "strip", z.ZodTypeAny, {
218
- symbol: string;
219
- type: string;
220
- ticket: number;
221
- volume: number;
222
- sl: number;
223
- tp: number;
224
- price: number;
225
- state?: string | undefined;
226
- openTime?: number | undefined;
227
- comment?: string | undefined;
228
- magic?: number | undefined;
229
- expiration?: number | undefined;
230
- volumeCurrent?: number | undefined;
231
- }, {
232
- symbol: string;
233
- type: string;
234
- ticket: number;
235
- volume: number;
236
- sl: number;
237
- tp: number;
238
- price: number;
239
- state?: string | undefined;
240
- openTime?: number | undefined;
241
- comment?: string | undefined;
242
- magic?: number | undefined;
243
- expiration?: number | undefined;
244
- volumeCurrent?: number | undefined;
245
- }>;
200
+ }, z.core.$strip>;
246
201
  declare const PriceSchema: z.ZodObject<{
247
202
  symbol: z.ZodString;
248
203
  bid: z.ZodNumber;
@@ -250,21 +205,7 @@ declare const PriceSchema: z.ZodObject<{
250
205
  last: z.ZodOptional<z.ZodNumber>;
251
206
  volume: z.ZodOptional<z.ZodNumber>;
252
207
  timestamp: z.ZodOptional<z.ZodNumber>;
253
- }, "strip", z.ZodTypeAny, {
254
- symbol: string;
255
- bid: number;
256
- ask: number;
257
- volume?: number | undefined;
258
- last?: number | undefined;
259
- timestamp?: number | undefined;
260
- }, {
261
- symbol: string;
262
- bid: number;
263
- ask: number;
264
- volume?: number | undefined;
265
- last?: number | undefined;
266
- timestamp?: number | undefined;
267
- }>;
208
+ }, z.core.$strip>;
268
209
  declare const CandleSchema: z.ZodObject<{
269
210
  time: z.ZodString;
270
211
  open: z.ZodNumber;
@@ -274,35 +215,11 @@ declare const CandleSchema: z.ZodObject<{
274
215
  tickVolume: z.ZodNumber;
275
216
  spread: z.ZodNumber;
276
217
  realVolume: z.ZodOptional<z.ZodNumber>;
277
- }, "strip", z.ZodTypeAny, {
278
- time: string;
279
- open: number;
280
- high: number;
281
- low: number;
282
- close: number;
283
- tickVolume: number;
284
- spread: number;
285
- realVolume?: number | undefined;
286
- }, {
287
- time: string;
288
- open: number;
289
- high: number;
290
- low: number;
291
- close: number;
292
- tickVolume: number;
293
- spread: number;
294
- realVolume?: number | undefined;
295
- }>;
218
+ }, z.core.$strip>;
296
219
  declare const MarginResultSchema: z.ZodObject<{
297
220
  margin: z.ZodNumber;
298
221
  currency: z.ZodOptional<z.ZodString>;
299
- }, "strip", z.ZodTypeAny, {
300
- margin: number;
301
- currency?: string | undefined;
302
- }, {
303
- margin: number;
304
- currency?: string | undefined;
305
- }>;
222
+ }, z.core.$strip>;
306
223
  declare const ServiceKeySchema: z.ZodObject<{
307
224
  id: z.ZodString;
308
225
  keyName: z.ZodString;
@@ -316,116 +233,37 @@ declare const ServiceKeySchema: z.ZodObject<{
316
233
  rateLimitPerMinute: z.ZodNullable<z.ZodNumber>;
317
234
  rateLimitPerDay: z.ZodNullable<z.ZodNumber>;
318
235
  requestCount: z.ZodNumber;
319
- allowedIpAddresses: z.ZodArray<z.ZodString, "many">;
236
+ allowedIpAddresses: z.ZodArray<z.ZodString>;
320
237
  createdAt: z.ZodString;
321
238
  updatedAt: z.ZodString;
322
- }, "strip", z.ZodTypeAny, {
323
- id: string;
324
- createdAt: string;
325
- updatedAt: string;
326
- keyName: string;
327
- keyPrefix: string;
328
- description: string | null;
329
- isActive: boolean;
330
- lastUsedAt: string | null;
331
- expiresAt: string | null;
332
- maxInstances: number | null;
333
- instanceCount: number;
334
- rateLimitPerMinute: number | null;
335
- rateLimitPerDay: number | null;
336
- requestCount: number;
337
- allowedIpAddresses: string[];
338
- }, {
339
- id: string;
340
- createdAt: string;
341
- updatedAt: string;
342
- keyName: string;
343
- keyPrefix: string;
344
- description: string | null;
345
- isActive: boolean;
346
- lastUsedAt: string | null;
347
- expiresAt: string | null;
348
- maxInstances: number | null;
349
- instanceCount: number;
350
- rateLimitPerMinute: number | null;
351
- rateLimitPerDay: number | null;
352
- requestCount: number;
353
- allowedIpAddresses: string[];
354
- }>;
239
+ }, z.core.$strip>;
355
240
  declare const TickSubscriptionsSchema: z.ZodObject<{
356
241
  instanceId: z.ZodString;
357
242
  accountId: z.ZodString;
358
- symbols: z.ZodArray<z.ZodString, "many">;
243
+ symbols: z.ZodArray<z.ZodString>;
359
244
  count: z.ZodNumber;
360
- }, "strip", z.ZodTypeAny, {
361
- accountId: string;
362
- instanceId: string;
363
- symbols: string[];
364
- count: number;
365
- }, {
366
- accountId: string;
367
- instanceId: string;
368
- symbols: string[];
369
- count: number;
370
- }>;
245
+ }, z.core.$strip>;
371
246
  declare const CandleSubscriptionsSchema: z.ZodObject<{
372
247
  instanceId: z.ZodString;
373
248
  accountId: z.ZodString;
374
249
  subscriptions: z.ZodArray<z.ZodObject<{
375
250
  symbol: z.ZodString;
376
251
  timeframe: z.ZodString;
377
- }, "strip", z.ZodTypeAny, {
378
- symbol: string;
379
- timeframe: string;
380
- }, {
381
- symbol: string;
382
- timeframe: string;
383
- }>, "many">;
252
+ }, z.core.$strip>>;
384
253
  count: z.ZodNumber;
385
- }, "strip", z.ZodTypeAny, {
386
- accountId: string;
387
- instanceId: string;
388
- count: number;
389
- subscriptions: {
390
- symbol: string;
391
- timeframe: string;
392
- }[];
393
- }, {
394
- accountId: string;
395
- instanceId: string;
396
- count: number;
397
- subscriptions: {
398
- symbol: string;
399
- timeframe: string;
400
- }[];
401
- }>;
254
+ }, z.core.$strip>;
402
255
  declare const MT5TickSchema: z.ZodObject<{
403
- type: z.ZodLiteral<"mt5_tick">;
256
+ type: z.ZodLiteral<"tick">;
404
257
  accountId: z.ZodString;
405
258
  symbol: z.ZodString;
406
259
  bid: z.ZodNumber;
407
260
  ask: z.ZodNumber;
408
261
  ts: z.ZodNumber;
409
262
  timestamp: z.ZodNumber;
410
- }, "strip", z.ZodTypeAny, {
411
- symbol: string;
412
- accountId: string;
413
- type: "mt5_tick";
414
- bid: number;
415
- ask: number;
416
- timestamp: number;
417
- ts: number;
418
- }, {
419
- symbol: string;
420
- accountId: string;
421
- type: "mt5_tick";
422
- bid: number;
423
- ask: number;
424
- timestamp: number;
425
- ts: number;
426
- }>;
263
+ runnerId: z.ZodOptional<z.ZodString>;
264
+ }, z.core.$strip>;
427
265
  declare const MT5CandleSchema: z.ZodObject<{
428
- type: z.ZodLiteral<"mt5_candle">;
266
+ type: z.ZodLiteral<"candle">;
429
267
  accountId: z.ZodString;
430
268
  symbol: z.ZodString;
431
269
  timeframe: z.ZodString;
@@ -438,81 +276,104 @@ declare const MT5CandleSchema: z.ZodObject<{
438
276
  isNew: z.ZodOptional<z.ZodBoolean>;
439
277
  ts: z.ZodNumber;
440
278
  timestamp: z.ZodNumber;
441
- }, "strip", z.ZodTypeAny, {
442
- symbol: string;
443
- accountId: string;
444
- type: "mt5_candle";
445
- volume: number;
446
- timestamp: number;
447
- time: number;
448
- open: number;
449
- high: number;
450
- low: number;
451
- close: number;
452
- timeframe: string;
453
- ts: number;
454
- isNew?: boolean | undefined;
455
- }, {
456
- symbol: string;
457
- accountId: string;
458
- type: "mt5_candle";
459
- volume: number;
460
- timestamp: number;
461
- time: number;
462
- open: number;
463
- high: number;
464
- low: number;
465
- close: number;
466
- timeframe: string;
467
- ts: number;
468
- isNew?: boolean | undefined;
469
- }>;
279
+ runnerId: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strip>;
281
+ declare const MT5LivePositionSchema: z.ZodObject<{
282
+ ticket: z.ZodNumber;
283
+ identifier: z.ZodOptional<z.ZodNumber>;
284
+ symbol: z.ZodString;
285
+ type: z.ZodString;
286
+ volume: z.ZodNumber;
287
+ openPrice: z.ZodNumber;
288
+ currentPrice: z.ZodNumber;
289
+ sl: z.ZodNumber;
290
+ tp: z.ZodNumber;
291
+ profit: z.ZodNumber;
292
+ swap: z.ZodNumber;
293
+ openTime: z.ZodNumber;
294
+ magic: z.ZodOptional<z.ZodNumber>;
295
+ comment: z.ZodOptional<z.ZodString>;
296
+ digits: z.ZodOptional<z.ZodNumber>;
297
+ point: z.ZodOptional<z.ZodNumber>;
298
+ volumeMin: z.ZodOptional<z.ZodNumber>;
299
+ volumeStep: z.ZodOptional<z.ZodNumber>;
300
+ }, z.core.$strip>;
301
+ declare const MT5PositionUpdateSchema: z.ZodObject<{
302
+ type: z.ZodLiteral<"position_update">;
303
+ accountId: z.ZodString;
304
+ balance: z.ZodNumber;
305
+ equity: z.ZodNumber;
306
+ margin: z.ZodNumber;
307
+ freeMargin: z.ZodNumber;
308
+ positions: z.ZodArray<z.ZodObject<{
309
+ ticket: z.ZodNumber;
310
+ identifier: z.ZodOptional<z.ZodNumber>;
311
+ symbol: z.ZodString;
312
+ type: z.ZodString;
313
+ volume: z.ZodNumber;
314
+ openPrice: z.ZodNumber;
315
+ currentPrice: z.ZodNumber;
316
+ sl: z.ZodNumber;
317
+ tp: z.ZodNumber;
318
+ profit: z.ZodNumber;
319
+ swap: z.ZodNumber;
320
+ openTime: z.ZodNumber;
321
+ magic: z.ZodOptional<z.ZodNumber>;
322
+ comment: z.ZodOptional<z.ZodString>;
323
+ digits: z.ZodOptional<z.ZodNumber>;
324
+ point: z.ZodOptional<z.ZodNumber>;
325
+ volumeMin: z.ZodOptional<z.ZodNumber>;
326
+ volumeStep: z.ZodOptional<z.ZodNumber>;
327
+ }, z.core.$strip>>;
328
+ ts: z.ZodNumber;
329
+ timestamp: z.ZodOptional<z.ZodNumber>;
330
+ }, z.core.$strip>;
331
+ declare const MT5TradeEventSchema: z.ZodObject<{
332
+ type: z.ZodLiteral<"trade_event">;
333
+ accountId: z.ZodString;
334
+ transType: z.ZodString;
335
+ symbol: z.ZodString;
336
+ order: z.ZodNumber;
337
+ orderType: z.ZodString;
338
+ orderState: z.ZodString;
339
+ dealType: z.ZodString;
340
+ deal: z.ZodNumber;
341
+ volume: z.ZodNumber;
342
+ price: z.ZodNumber;
343
+ sl: z.ZodNumber;
344
+ tp: z.ZodNumber;
345
+ ts: z.ZodNumber;
346
+ timestamp: z.ZodNumber;
347
+ }, z.core.$strip>;
348
+ declare const MT5HeartbeatSchema: z.ZodObject<{
349
+ type: z.ZodLiteral<"heartbeat">;
350
+ runnerId: z.ZodString;
351
+ accountId: z.ZodString;
352
+ balance: z.ZodOptional<z.ZodNumber>;
353
+ equity: z.ZodOptional<z.ZodNumber>;
354
+ ts: z.ZodNumber;
355
+ timestamp: z.ZodNumber;
356
+ }, z.core.$strip>;
470
357
  declare const BrokerTickSchema: z.ZodObject<{
471
358
  type: z.ZodLiteral<"broker_tick">;
472
359
  brokerName: z.ZodString;
473
360
  connectionId: z.ZodString;
474
- kind: z.ZodEnum<["trade", "bidask", "oi"]>;
361
+ kind: z.ZodEnum<{
362
+ trade: "trade";
363
+ bidask: "bidask";
364
+ oi: "oi";
365
+ }>;
475
366
  securityId: z.ZodString;
476
367
  exchangeSegment: z.ZodString;
477
368
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
478
369
  ts: z.ZodNumber;
479
- }, "strip", z.ZodTypeAny, {
480
- brokerName: string;
481
- type: "broker_tick";
482
- ts: number;
483
- connectionId: string;
484
- kind: "trade" | "bidask" | "oi";
485
- securityId: string;
486
- exchangeSegment: string;
487
- data: Record<string, unknown>;
488
- }, {
489
- brokerName: string;
490
- type: "broker_tick";
491
- ts: number;
492
- connectionId: string;
493
- kind: "trade" | "bidask" | "oi";
494
- securityId: string;
495
- exchangeSegment: string;
496
- data: Record<string, unknown>;
497
- }>;
370
+ }, z.core.$strip>;
498
371
  declare const BrokerOrderUpdateSchema: z.ZodObject<{
499
372
  type: z.ZodLiteral<"broker_order_update">;
500
373
  brokerName: z.ZodString;
501
374
  connectionId: z.ZodString;
502
375
  alert: z.ZodRecord<z.ZodString, z.ZodUnknown>;
503
376
  ts: z.ZodNumber;
504
- }, "strip", z.ZodTypeAny, {
505
- brokerName: string;
506
- type: "broker_order_update";
507
- ts: number;
508
- connectionId: string;
509
- alert: Record<string, unknown>;
510
- }, {
511
- brokerName: string;
512
- type: "broker_order_update";
513
- ts: number;
514
- connectionId: string;
515
- alert: Record<string, unknown>;
516
- }>;
377
+ }, z.core.$strip>;
517
378
 
518
- export { AccountInfoSchema, AtlasInstanceSchema, BrokerOrderUpdateSchema, BrokerTickSchema, CandleSchema, CandleSubscriptionsSchema, InstanceSchema, InstanceStateSchema, InstanceTypeSchema, MT5CandleSchema, MT5TickSchema, MarginResultSchema, OrderDirectionSchema, OrderSchema, OrderTypeSchema, PositionSchema, PriceSchema, ServiceKeySchema, TickSubscriptionsSchema };
379
+ export { AccountInfoSchema, AtlasInstanceSchema, BrokerOrderUpdateSchema, BrokerTickSchema, CandleSchema, CandleSubscriptionsSchema, ClosedPositionSchema, InstanceSchema, InstanceStateSchema, InstanceTypeSchema, MT5CandleSchema, MT5HeartbeatSchema, MT5LivePositionSchema, MT5PositionUpdateSchema, MT5TickSchema, MT5TradeEventSchema, MarginResultSchema, OrderDirectionSchema, OrderSchema, OrderTypeSchema, PositionSchema, PriceSchema, ServiceKeySchema, TickSubscriptionsSchema };