File size: 5,826 Bytes
71b8eb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "_type": "export",
  "__export_format": 4,
  "__export_date": "2026-05-16",
  "__export_source": "polysignal-backend",
  "resources": [
    {
      "_id": "env_polysignal",
      "_type": "environment",
      "name": "PolySignal Dev",
      "data": {
        "base_url": "http://localhost:7860",
        "token": ""
      }
    },
    {
      "_id": "wrk_polysignal",
      "_type": "workspace",
      "name": "PolySignal Backend",
      "description": "API REST PolySignal — mercados Polymarket + señales AI"
    },
    {
      "_id": "grp_auth",
      "_type": "request_group",
      "name": "Auth",
      "parentId": "wrk_polysignal"
    },
    {
      "_id": "req_health",
      "_type": "request",
      "parentId": "grp_auth",
      "name": "GET /health",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/health",
      "headers": [],
      "body": {}
    },
    {
      "_id": "req_login",
      "_type": "request",
      "parentId": "grp_auth",
      "name": "POST /auth/login",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/auth/login",
      "headers": [{ "name": "Content-Type", "value": "application/json" }],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"email\": \"admin@polysignal.test\",\n  \"password\": \"Admin123!\"\n}"
      }
    },
    {
      "_id": "req_me",
      "_type": "request",
      "parentId": "grp_auth",
      "name": "GET /auth/me",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/auth/me",
      "headers": [{ "name": "Authorization", "value": "Bearer {{ _.token }}" }],
      "body": {}
    },
    {
      "_id": "grp_markets",
      "_type": "request_group",
      "name": "Markets",
      "parentId": "wrk_polysignal"
    },
    {
      "_id": "req_markets_list",
      "_type": "request",
      "parentId": "grp_markets",
      "name": "GET /markets",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/markets",
      "parameters": [
        { "name": "limit", "value": "10" },
        { "name": "offset", "value": "0" }
      ],
      "headers": [],
      "body": {}
    },
    {
      "_id": "req_markets_by_id",
      "_type": "request",
      "parentId": "grp_markets",
      "name": "GET /markets/:id",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/markets/559677",
      "headers": [],
      "body": {}
    },
    {
      "_id": "req_market_signal",
      "_type": "request",
      "parentId": "grp_markets",
      "name": "GET /markets/:id/signal",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/markets/559677/signal",
      "headers": [],
      "body": {}
    },
    {
      "_id": "grp_positions",
      "_type": "request_group",
      "name": "Positions",
      "parentId": "wrk_polysignal"
    },
    {
      "_id": "req_positions_open",
      "_type": "request",
      "parentId": "grp_positions",
      "name": "POST /positions (open)",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/positions",
      "headers": [
        { "name": "Authorization", "value": "Bearer {{ _.token }}" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"marketId\": \"559677\",\n  \"outcome\": \"YES\",\n  \"amountEur\": 100\n}"
      }
    },
    {
      "_id": "req_positions_list",
      "_type": "request",
      "parentId": "grp_positions",
      "name": "GET /positions",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/positions",
      "headers": [{ "name": "Authorization", "value": "Bearer {{ _.token }}" }],
      "body": {}
    },
    {
      "_id": "req_positions_close",
      "_type": "request",
      "parentId": "grp_positions",
      "name": "DELETE /positions/:id (close)",
      "method": "DELETE",
      "url": "{{ _.base_url }}/api/v1/positions/1",
      "headers": [{ "name": "Authorization", "value": "Bearer {{ _.token }}" }],
      "body": {}
    },
    {
      "_id": "grp_watchlist",
      "_type": "request_group",
      "name": "Watchlist",
      "parentId": "wrk_polysignal"
    },
    {
      "_id": "req_watchlist_add",
      "_type": "request",
      "parentId": "grp_watchlist",
      "name": "POST /watchlist",
      "method": "POST",
      "url": "{{ _.base_url }}/api/v1/watchlist",
      "headers": [
        { "name": "Authorization", "value": "Bearer {{ _.token }}" },
        { "name": "Content-Type", "value": "application/json" }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"marketId\": \"559677\",\n  \"alertThreshold\": 0.75\n}"
      }
    },
    {
      "_id": "req_watchlist_list",
      "_type": "request",
      "parentId": "grp_watchlist",
      "name": "GET /watchlist",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/watchlist",
      "headers": [{ "name": "Authorization", "value": "Bearer {{ _.token }}" }],
      "body": {}
    },
    {
      "_id": "req_watchlist_delete",
      "_type": "request",
      "parentId": "grp_watchlist",
      "name": "DELETE /watchlist/:marketId",
      "method": "DELETE",
      "url": "{{ _.base_url }}/api/v1/watchlist/559677",
      "headers": [{ "name": "Authorization", "value": "Bearer {{ _.token }}" }],
      "body": {}
    },
    {
      "_id": "grp_alerts",
      "_type": "request_group",
      "name": "Alerts",
      "parentId": "wrk_polysignal"
    },
    {
      "_id": "req_alerts_list",
      "_type": "request",
      "parentId": "grp_alerts",
      "name": "GET /alerts",
      "method": "GET",
      "url": "{{ _.base_url }}/api/v1/alerts",
      "parameters": [
        { "name": "limit", "value": "20" },
        { "name": "offset", "value": "0" }
      ],
      "headers": [{ "name": "Authorization", "value": "Bearer {{ _.token }}" }],
      "body": {}
    }
  ]
}