-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathagent-openapi.json
More file actions
559 lines (559 loc) · 25.8 KB
/
Copy pathagent-openapi.json
File metadata and controls
559 lines (559 loc) · 25.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
{
"openapi": "3.0.3",
"info": {
"title": "QuantDinger Agent Gateway",
"version": "1.0.0",
"description": "Versioned, scoped surface for AI agents. Distinct from the human web API (/api/...). All routes (except /health) require a Bearer agent token. See docs/agent/AI_INTEGRATION_DESIGN.md."
},
"servers": [
{ "url": "http://localhost:8888" }
],
"components": {
"securitySchemes": {
"AgentToken": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "qd_agent_xxx"
},
"HumanJWT": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
},
"schemas": {
"Envelope": {
"type": "object",
"properties": {
"code": { "type": "integer", "description": "0 on success" },
"message": { "type": "string" },
"data": {}
}
},
"Error": {
"type": "object",
"properties": {
"code": { "type": "integer" },
"message": { "type": "string" },
"details": {},
"retriable": { "type": "boolean" }
}
},
"Job": {
"type": "object",
"properties": {
"job_id": { "type": "string" },
"kind": { "type": "string", "enum": ["backtest", "quick_trade_order"] },
"status": { "type": "string", "enum": ["queued","running","succeeded","failed","cancelled"] },
"request": { "type": "object" },
"result": { "type": "object" },
"error": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"started_at": { "type": "string", "format": "date-time" },
"finished_at": { "type": "string", "format": "date-time" }
}
},
"TokenIssued": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"token": { "type": "string", "description": "Full token; shown ONCE — store securely" },
"token_prefix": { "type": "string" },
"scopes": { "type": "array", "items": { "type": "string", "enum": ["R","W","B","N","C","T"] } },
"markets": { "type": "array", "items": { "type": "string" } },
"instruments": { "type": "array", "items": { "type": "string" } },
"paper_only": { "type": "boolean" },
"rate_limit_per_min": { "type": "integer" },
"expires_at": { "type": "string", "format": "date-time", "nullable": true }
}
},
"BacktestRequest": {
"type": "object",
"additionalProperties": false,
"required": ["code","startDate","endDate"],
"properties": {
"code": { "type": "string", "description": "Strategy API V2 Python code using initialize(context) and a runtime handler" },
"startDate": { "type": "string", "format": "date", "example": "2024-01-01" },
"endDate": { "type": "string", "format": "date", "example": "2024-12-31" },
"initialCapital": { "type": "number", "minimum": 0, "exclusiveMinimum": true, "default": 10000 },
"commission": { "type": "number", "default": 0.001 },
"slippage": { "type": "number", "nullable": true },
"leverageEnabled": { "type": "boolean", "default": false },
"leverage": { "type": "number", "default": 1 },
"params": { "type": "object" }
}
},
"StrategyDeploymentRequest": {
"type": "object",
"additionalProperties": false,
"required": ["name", "sourceId", "initialCapital"],
"properties": {
"name": { "type": "string" },
"sourceId": { "type": "integer" },
"initialCapital": { "type": "number", "minimum": 0, "exclusiveMinimum": true },
"executionMode": { "type": "string", "enum": ["signal", "live"], "default": "signal" },
"credentialId": { "type": "integer", "nullable": true },
"leverageEnabled": { "type": "boolean", "default": false },
"leverage": { "type": "number", "default": 1 },
"params": { "type": "object" },
"notificationChannels": { "type": "array", "items": { "type": "string" } },
"notificationTargets": { "type": "object" },
"positionSide": { "type": "string", "enum": ["long", "short"], "nullable": true },
"accountRisk": { "type": "object" }
}
},
"StrategyDeploymentPatch": {
"type": "object",
"minProperties": 1,
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"sourceId": { "type": "integer" },
"initialCapital": { "type": "number" },
"executionMode": { "type": "string", "enum": ["signal", "live"] },
"credentialId": { "type": "integer", "nullable": true },
"leverageEnabled": { "type": "boolean" },
"leverage": { "type": "number" },
"params": { "type": "object" },
"notificationChannels": { "type": "array", "items": { "type": "string" } },
"notificationTargets": { "type": "object" },
"positionSide": { "type": "string", "enum": ["long", "short"], "nullable": true },
"accountRisk": { "type": "object" }
}
},
"IndicatorValidateRequest": {
"type": "object",
"required": ["code"],
"properties": {
"code": { "type": "string" },
"indicator_params": { "type": "object" }
}
},
"IndicatorSaveRequest": {
"type": "object",
"required": ["code"],
"properties": {
"code": { "type": "string", "description": "Python indicator source (max 512 KiB)" },
"name": { "type": "string" },
"description": { "type": "string" },
"indicator_id": { "type": "integer", "description": "Update existing row when set" },
"validate": { "type": "boolean", "default": true }
}
},
"IndicatorSummary": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"description": { "type": "string" },
"updated_at": { "type": "string" }
}
},
"OrderRequest": {
"type": "object",
"additionalProperties": false,
"required": ["market","symbol","side","qty"],
"properties": {
"market": { "type": "string" },
"symbol": { "type": "string" },
"side": { "type": "string", "enum": ["buy","sell"] },
"qty": { "type": "number", "minimum": 0, "exclusiveMinimum": true },
"order_type": { "type": "string", "enum": ["market","limit"], "default": "market" },
"limit_price": { "type": "number", "nullable": true },
"credential_id": { "type": "integer", "description": "Required for live agent trading" },
"market_type": { "type": "string", "enum": ["spot","swap"], "default": "spot" },
"leverage": { "type": "integer", "default": 1 },
"margin_mode": { "type": "string", "enum": ["cross","isolated"], "nullable": true },
"tp_price": { "type": "number", "nullable": true, "description": "Optional take-profit price for live orders" },
"sl_price": { "type": "number", "nullable": true, "description": "Optional stop-loss price for live orders" }
}
},
"StrategySourceWriteRequest": {
"type": "object",
"required": ["name", "code"],
"properties": {
"name": { "type": "string" },
"description": { "type": "string" },
"code": { "type": "string", "description": "Strategy API V2 Python source, max 512 KiB" },
"template_key": { "type": "string" },
"param_schema": { "type": "object" },
"metadata": { "type": "object" }
}
},
"StrategySourcePatchRequest": {
"type": "object",
"minProperties": 1,
"properties": {
"name": { "type": "string" },
"description": { "type": "string" },
"code": { "type": "string", "description": "Strategy API V2 Python source, max 512 KiB" },
"template_key": { "type": "string" },
"param_schema": { "type": "object" },
"metadata": { "type": "object" }
}
}
}
},
"security": [{ "AgentToken": [] }],
"paths": {
"/api/agent/v1/health": {
"get": {
"summary": "Public liveness (no token required)",
"security": [],
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/whoami": {
"get": {
"summary": "Inspect calling token (scopes, allowlists, paper_only)",
"x-scope-class": "R",
"responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } }
}
},
"/api/agent/v1/markets": {
"get": {
"summary": "List markets the token is allowed to query",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/markets/{market}/symbols": {
"get": {
"summary": "Search symbols within a market",
"x-scope-class": "R",
"parameters": [
{ "in": "path", "name": "market", "required": true, "schema": { "type": "string" } },
{ "in": "query", "name": "keyword", "required": false, "schema": { "type": "string" } },
{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 100 } }
],
"responses": { "200": { "description": "OK" }, "403": { "description": "Market not in token allowlist" } }
}
},
"/api/agent/v1/klines": {
"get": {
"summary": "OHLCV bars",
"x-scope-class": "R",
"parameters": [
{ "in": "query", "name": "market", "required": true, "schema": { "type": "string" } },
{ "in": "query", "name": "symbol", "required": true, "schema": { "type": "string" } },
{ "in": "query", "name": "timeframe", "required": false, "schema": { "type": "string", "default": "1D" } },
{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "default": 300, "maximum": 2000 } },
{ "in": "query", "name": "before_time", "required": false, "schema": { "type": "integer", "description": "unix seconds" } }
],
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/price": {
"get": {
"summary": "Latest price",
"x-scope-class": "R",
"parameters": [
{ "in": "query", "name": "market", "required": true, "schema": { "type": "string" } },
{ "in": "query", "name": "symbol", "required": true, "schema": { "type": "string" } }
],
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/strategies": {
"get": {
"summary": "List strategies (tenant-scoped)",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
},
"post": {
"summary": "Create a strategy (status defaults to 'stopped')",
"x-scope-class": "W",
"requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StrategyDeploymentRequest" } } } },
"responses": { "200": { "description": "Created" } }
}
},
"/api/agent/v1/strategies/{strategy_id}": {
"get": {
"summary": "Get a strategy",
"description": "Returns full strategy row for the tenant. Credential-like fields in exchange_config / notification_config are redacted (***) before the response leaves the Gateway.",
"x-scope-class": "R",
"parameters": [{ "in": "path", "name": "strategy_id", "required": true, "schema": { "type": "integer" } }],
"responses": { "200": { "description": "OK" }, "404": { "description": "Not found" } }
},
"patch": {
"summary": "Update canonical strategy deployment settings",
"x-scope-class": "W",
"parameters": [{ "in": "path", "name": "strategy_id", "required": true, "schema": { "type": "integer" } }],
"requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StrategyDeploymentPatch" } } } },
"responses": { "200": { "description": "OK" }, "400": { "description": "Unsupported or invalid deployment field" } }
}
},
"/api/agent/v1/strategies/{strategy_id}/stop": {
"post": {
"summary": "Stop a tenant-owned strategy",
"description": "Persists status='stopped', attempts to stop the runtime executor, and verifies the final persisted status. Does not delete the strategy and does not place orders.",
"x-scope-class": "T",
"parameters": [{ "in": "path", "name": "strategy_id", "required": true, "schema": { "type": "integer" } }],
"responses": { "200": { "description": "Stopped" }, "404": { "description": "Strategy not found" } }
}
},
"/api/agent/v1/strategy-sources/authoring-contract": {
"get": {
"summary": "Canonical Strategy API V2 authoring contract and starter source",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/strategy-sources/templates": {
"get": {
"summary": "List system Strategy API V2 templates with starter source",
"x-scope-class": "R",
"parameters": [
{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "default": 20, "maximum": 100 } }
],
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/strategy-sources/compile": {
"post": {
"summary": "Compile Strategy API V2 source and return the canonical manifest without saving",
"x-scope-class": "R",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": { "type": "string" },
"source_id": { "type": "integer" }
}
}
}
}
},
"responses": { "200": { "description": "Compiled manifest" }, "400": { "description": "Invalid Strategy API V2 source" } }
}
},
"/api/agent/v1/strategy-sources": {
"get": {
"summary": "List tenant-owned Strategy API V2 sources without code bodies",
"x-scope-class": "R",
"parameters": [
{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "default": 50, "maximum": 200 } }
],
"responses": { "200": { "description": "OK" } }
},
"post": {
"summary": "Compile and save a private Strategy API V2 source",
"x-scope-class": "W",
"requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StrategySourceWriteRequest" } } } },
"responses": { "200": { "description": "Created" }, "400": { "description": "Compile or validation failure" } }
}
},
"/api/agent/v1/strategy-sources/{source_id}": {
"get": {
"summary": "Get a tenant-owned Strategy API V2 source including visible code",
"x-scope-class": "R",
"parameters": [{ "in": "path", "name": "source_id", "required": true, "schema": { "type": "integer" } }],
"responses": { "200": { "description": "OK" }, "404": { "description": "Not found" } }
},
"patch": {
"summary": "Compile and update a tenant-owned Strategy API V2 source",
"x-scope-class": "W",
"parameters": [{ "in": "path", "name": "source_id", "required": true, "schema": { "type": "integer" } }],
"requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StrategySourcePatchRequest" } } } },
"responses": { "200": { "description": "Updated" }, "403": { "description": "Hidden marketplace source" }, "404": { "description": "Not found" } }
}
},
"/api/agent/v1/strategy-sources/{source_id}/versions": {
"get": {
"summary": "List immutable version snapshots for a Strategy API V2 source",
"x-scope-class": "R",
"parameters": [{ "in": "path", "name": "source_id", "required": true, "schema": { "type": "integer" } }],
"responses": { "200": { "description": "OK" }, "404": { "description": "Not found" } }
}
},
"/api/agent/v1/strategy-sources/{source_id}/versions/{version_id}/restore": {
"post": {
"summary": "Restore a prior source version and create a new snapshot",
"x-scope-class": "W",
"parameters": [
{ "in": "path", "name": "source_id", "required": true, "schema": { "type": "integer" } },
{ "in": "path", "name": "version_id", "required": true, "schema": { "type": "integer" } }
],
"requestBody": {
"required": true,
"content": { "application/json": { "schema": { "type": "object", "required": ["confirm"], "properties": { "confirm": { "type": "boolean", "enum": [true] } } } } }
},
"responses": { "200": { "description": "Restored" }, "400": { "description": "Explicit confirmation missing" }, "404": { "description": "Not found" } }
}
},
"/api/agent/v1/runtime/overview": {
"get": {
"summary": "Runtime overview",
"description": "Compact tenant runtime overview: strategy counts, running strategy summaries, positions, pending orders, paper orders, and unrealized PnL.",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/backtest/run": {
"post": {
"summary": "Submit a backtest job",
"x-scope-class": "B",
"parameters": [
{ "in": "header", "name": "Idempotency-Key", "required": false, "schema": { "type": "string" } }
],
"requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BacktestRequest" } } } },
"responses": { "202": { "description": "Queued" } }
}
},
"/api/agent/v1/indicators/authoring-contract": {
"get": {
"summary": "Indicator I/O contract + starter Python template",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/indicators": {
"get": {
"summary": "List tenant indicators (compact; no code bodies)",
"x-scope-class": "R",
"parameters": [
{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "default": 50, "maximum": 200 } }
],
"responses": { "200": { "description": "OK" } }
},
"post": {
"summary": "Save indicator into private library (qd_indicator_codes)",
"x-scope-class": "W",
"requestBody": {
"required": true,
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/IndicatorSaveRequest" } } }
},
"responses": { "200": { "description": "Saved" }, "400": { "description": "Validation failed or code too large" } }
}
},
"/api/agent/v1/indicators/validate": {
"post": {
"summary": "Sandbox-validate indicator code without persisting",
"x-scope-class": "R",
"requestBody": {
"required": true,
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/IndicatorValidateRequest" } } }
},
"responses": { "200": { "description": "Validation result" } }
}
},
"/api/agent/v1/indicators/link-config": {
"post": {
"summary": "Normalize chart-indicator config for the indicator library; not an executable strategy path",
"x-scope-class": "W",
"requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object" } } } },
"responses": { "200": { "description": "Linked config" } }
}
},
"/api/agent/v1/indicators/{indicator_id}": {
"get": {
"summary": "Fetch one indicator including Python source",
"x-scope-class": "R",
"parameters": [{ "in": "path", "name": "indicator_id", "required": true, "schema": { "type": "integer" } }],
"responses": { "200": { "description": "OK" }, "404": { "description": "Not found" } }
}
},
"/api/agent/v1/jobs": {
"get": {
"summary": "List recent jobs",
"x-scope-class": "R",
"parameters": [
{ "in": "query", "name": "kind", "required": false, "schema": { "type": "string" } },
{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "default": 50 } }
],
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/jobs/{job_id}": {
"get": {
"summary": "Get a single job",
"x-scope-class": "R",
"parameters": [{ "in": "path", "name": "job_id", "required": true, "schema": { "type": "string" } }],
"responses": { "200": { "description": "OK" }, "404": { "description": "Not found" } }
}
},
"/api/agent/v1/jobs/{job_id}/stream": {
"get": {
"summary": "Stream job progress as Server-Sent Events",
"description": "Long-lived SSE stream. Frame types: `snapshot` (current job row), `progress` (each on_progress emission, with monotonic `seq`), `ping` (~15s keepalive), `result` (final). Resume after disconnect via `?since=<seq>` or `Last-Event-ID` header. If the job has already terminated when the client connects, `snapshot` and `result` are emitted immediately and the stream closes.",
"x-scope-class": "R",
"parameters": [
{ "in": "path", "name": "job_id", "required": true, "schema": { "type": "string" } },
{ "in": "query", "name": "since", "required": false, "schema": { "type": "integer", "minimum": 0 }, "description": "Resume from this sequence number (exclusive)." },
{ "in": "header", "name": "Last-Event-ID", "required": false, "schema": { "type": "string" }, "description": "Standard SSE resume header; alternative to `since`." }
],
"responses": {
"200": {
"description": "SSE stream",
"content": { "text/event-stream": { "schema": { "type": "string" } } }
},
"404": { "description": "Job not found in this tenant" }
}
}
},
"/api/agent/v1/portfolio/positions": {
"get": {
"summary": "Manual portfolio positions",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/portfolio/paper-orders": {
"get": {
"summary": "Recent paper orders",
"x-scope-class": "R",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/quick-trade/orders": {
"post": {
"summary": "Place a quick order (paper by default; live only when fully unlocked)",
"description": "Requires T scope. Paper-only tokens record qd_agent_paper_orders. Live execution requires token paper_only=false, AGENT_LIVE_TRADING_ENABLED=true, and credential_id. Live orders reuse the same execution path as human Quick Trade.",
"x-scope-class": "T",
"parameters": [{ "in": "header", "name": "Idempotency-Key", "required": false, "schema": { "type": "string" } }],
"requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderRequest" } } } },
"responses": { "200": { "description": "OK (paper fill or live order)" }, "400": { "description": "Invalid order payload" }, "403": { "description": "Scope/instrument denied" }, "501": { "description": "Live-capable token used while AGENT_LIVE_TRADING_ENABLED is disabled" } }
}
},
"/api/agent/v1/quick-trade/kill-switch": {
"post": {
"summary": "Cancel all open paper orders for the calling tenant",
"x-scope-class": "T",
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/admin/tokens": {
"post": {
"summary": "Issue a new agent token (admin only; full token shown ONCE)",
"security": [{ "HumanJWT": [] }],
"requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object" } } } },
"responses": { "200": { "description": "Issued", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenIssued" } } } } }
},
"get": {
"summary": "List tokens for tenant (admin only; no secrets)",
"security": [{ "HumanJWT": [] }],
"responses": { "200": { "description": "OK" } }
}
},
"/api/agent/v1/admin/tokens/{token_id}": {
"delete": {
"summary": "Revoke a token (admin only)",
"security": [{ "HumanJWT": [] }],
"parameters": [{ "in": "path", "name": "token_id", "required": true, "schema": { "type": "integer" } }],
"responses": { "200": { "description": "Revoked" } }
}
},
"/api/agent/v1/admin/audit": {
"get": {
"summary": "Recent agent audit log entries (admin only)",
"security": [{ "HumanJWT": [] }],
"parameters": [{ "in": "query", "name": "limit", "required": false, "schema": { "type": "integer", "default": 100 } }],
"responses": { "200": { "description": "OK" } }
}
}
}
}