cyberosa commited on
Commit
dac33fe
·
1 Parent(s): 8b1525b

updating live data from open markets

Browse files
live_data/markets_live_data.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2678985815f4f6c33e0cabaa57551154ce2d9e1635f6975145c90d1a758c5857
3
- size 162550
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6864e62db64bc8372f73a3da637d86e6ccadea03f8fa4a72d8f53a3afea095d1
3
+ size 174970
notebooks/analysis_of_markets_data.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 30,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
@@ -14,7 +14,7 @@
14
  },
15
  {
16
  "cell_type": "code",
17
- "execution_count": 32,
18
  "metadata": {},
19
  "outputs": [
20
  {
@@ -49,7 +49,6 @@
49
  " <th>open</th>\n",
50
  " <th>total_trades</th>\n",
51
  " <th>...</th>\n",
52
- " <th>second_outcome</th>\n",
53
  " <th>sample_datetime</th>\n",
54
  " <th>first_token_perc</th>\n",
55
  " <th>second_token_perc</th>\n",
@@ -59,6 +58,7 @@
59
  " <th>price_weighted_second_outcome_perc</th>\n",
60
  " <th>bought_tokens_first_perc</th>\n",
61
  " <th>bought_tokens_second_perc</th>\n",
 
62
  " </tr>\n",
63
  " </thead>\n",
64
  " <tbody>\n",
@@ -72,10 +72,9 @@
72
  " <td>[5728447658624505774, 8553800771178854358]</td>\n",
73
  " <td>Will SpaceX successfully send four people on a...</td>\n",
74
  " <td>1724320709</td>\n",
75
- " <td>True</td>\n",
76
  " <td>25</td>\n",
77
  " <td>...</td>\n",
78
- " <td>No</td>\n",
79
  " <td>2024-08-22 11:58:29</td>\n",
80
  " <td>59.89</td>\n",
81
  " <td>40.11</td>\n",
@@ -85,6 +84,7 @@
85
  " <td>37.33</td>\n",
86
  " <td>57.34</td>\n",
87
  " <td>42.66</td>\n",
 
88
  " </tr>\n",
89
  " <tr>\n",
90
  " <th>1</th>\n",
@@ -96,10 +96,9 @@
96
  " <td>[9108406198169923801, 5379645893465440960]</td>\n",
97
  " <td>Will there be a significant increase in the pu...</td>\n",
98
  " <td>1724320709</td>\n",
99
- " <td>True</td>\n",
100
  " <td>6</td>\n",
101
  " <td>...</td>\n",
102
- " <td>No</td>\n",
103
  " <td>2024-08-22 11:58:29</td>\n",
104
  " <td>37.13</td>\n",
105
  " <td>62.87</td>\n",
@@ -109,6 +108,7 @@
109
  " <td>93.52</td>\n",
110
  " <td>7.13</td>\n",
111
  " <td>92.87</td>\n",
 
112
  " </tr>\n",
113
  " <tr>\n",
114
  " <th>2</th>\n",
@@ -120,10 +120,9 @@
120
  " <td>[3560526624520056083, 13762009154082647147]</td>\n",
121
  " <td>Will the World War II-era bomb in Northern Ire...</td>\n",
122
  " <td>1724320709</td>\n",
123
- " <td>True</td>\n",
124
  " <td>6</td>\n",
125
  " <td>...</td>\n",
126
- " <td>No</td>\n",
127
  " <td>2024-08-22 11:58:29</td>\n",
128
  " <td>79.45</td>\n",
129
  " <td>20.55</td>\n",
@@ -133,6 +132,7 @@
133
  " <td>0.00</td>\n",
134
  " <td>100.00</td>\n",
135
  " <td>0.00</td>\n",
 
136
  " </tr>\n",
137
  " <tr>\n",
138
  " <th>3</th>\n",
@@ -144,10 +144,9 @@
144
  " <td>[5353172588127988920, 9153450443325863452]</td>\n",
145
  " <td>Will the human remains found on the Michigan m...</td>\n",
146
  " <td>1724320709</td>\n",
147
- " <td>True</td>\n",
148
  " <td>4</td>\n",
149
  " <td>...</td>\n",
150
- " <td>No</td>\n",
151
  " <td>2024-08-22 11:58:29</td>\n",
152
  " <td>63.10</td>\n",
153
  " <td>36.90</td>\n",
@@ -157,6 +156,7 @@
157
  " <td>6.36</td>\n",
158
  " <td>92.98</td>\n",
159
  " <td>7.02</td>\n",
 
160
  " </tr>\n",
161
  " <tr>\n",
162
  " <th>4</th>\n",
@@ -168,10 +168,9 @@
168
  " <td>[12470403414325965877, 3929303517455492411]</td>\n",
169
  " <td>Will Ethan Holliday be drafted in the 2025 MLB...</td>\n",
170
  " <td>1724320709</td>\n",
171
- " <td>True</td>\n",
172
  " <td>4</td>\n",
173
  " <td>...</td>\n",
174
- " <td>No</td>\n",
175
  " <td>2024-08-22 11:58:29</td>\n",
176
  " <td>23.96</td>\n",
177
  " <td>76.04</td>\n",
@@ -181,10 +180,11 @@
181
  " <td>100.00</td>\n",
182
  " <td>0.00</td>\n",
183
  " <td>100.00</td>\n",
 
184
  " </tr>\n",
185
  " </tbody>\n",
186
  "</table>\n",
187
- "<p>5 rows × 22 columns</p>\n",
188
  "</div>"
189
  ],
190
  "text/plain": [
@@ -209,45 +209,45 @@
209
  "3 [5353172588127988920, 9153450443325863452] \n",
210
  "4 [12470403414325965877, 3929303517455492411] \n",
211
  "\n",
212
- " title sample_timestamp open \\\n",
213
- "0 Will SpaceX successfully send four people on a... 1724320709 True \n",
214
- "1 Will there be a significant increase in the pu... 1724320709 True \n",
215
- "2 Will the World War II-era bomb in Northern Ire... 1724320709 True \n",
216
- "3 Will the human remains found on the Michigan m... 1724320709 True \n",
217
- "4 Will Ethan Holliday be drafted in the 2025 MLB... 1724320709 True \n",
218
  "\n",
219
- " total_trades ... second_outcome sample_datetime first_token_perc \\\n",
220
- "0 25 ... No 2024-08-22 11:58:29 59.89 \n",
221
- "1 6 ... No 2024-08-22 11:58:29 37.13 \n",
222
- "2 6 ... No 2024-08-22 11:58:29 79.45 \n",
223
- "3 4 ... No 2024-08-22 11:58:29 63.10 \n",
224
- "4 4 ... No 2024-08-22 11:58:29 23.96 \n",
225
  "\n",
226
- " second_token_perc mean_trade_size total_bet_amount \\\n",
227
- "0 40.11 0.398600 9.965 \n",
228
- "1 62.87 0.411333 2.468 \n",
229
- "2 20.55 1.150000 6.900 \n",
230
- "3 36.90 0.628500 2.514 \n",
231
- "4 76.04 1.395750 5.583 \n",
232
  "\n",
233
- " price_weighted_first_outcome_perc price_weighted_second_outcome_perc \\\n",
234
- "0 62.67 37.33 \n",
235
- "1 6.48 93.52 \n",
236
- "2 100.00 0.00 \n",
237
- "3 93.64 6.36 \n",
238
- "4 0.00 100.00 \n",
239
  "\n",
240
- " bought_tokens_first_perc bought_tokens_second_perc \n",
241
- "0 57.34 42.66 \n",
242
- "1 7.13 92.87 \n",
243
- "2 100.00 0.00 \n",
244
- "3 92.98 7.02 \n",
245
- "4 0.00 100.00 \n",
246
  "\n",
247
- "[5 rows x 22 columns]"
248
  ]
249
  },
250
- "execution_count": 32,
251
  "metadata": {},
252
  "output_type": "execute_result"
253
  }
@@ -259,7 +259,251 @@
259
  },
260
  {
261
  "cell_type": "code",
262
- "execution_count": 33,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  "metadata": {},
264
  "outputs": [
265
  {
@@ -290,7 +534,7 @@
290
  "dtype: int64"
291
  ]
292
  },
293
- "execution_count": 33,
294
  "metadata": {},
295
  "output_type": "execute_result"
296
  }
@@ -353,7 +597,7 @@
353
  },
354
  {
355
  "cell_type": "code",
356
- "execution_count": 35,
357
  "metadata": {},
358
  "outputs": [
359
  {
@@ -361,10 +605,11 @@
361
  "text/plain": [
362
  "sample_timestamp\n",
363
  "1724320709 41\n",
 
364
  "Name: count, dtype: int64"
365
  ]
366
  },
367
- "execution_count": 35,
368
  "metadata": {},
369
  "output_type": "execute_result"
370
  }
@@ -373,6 +618,84 @@
373
  "live_fpmms.sample_timestamp.value_counts()"
374
  ]
375
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  {
377
  "cell_type": "code",
378
  "execution_count": 6,
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 1,
6
  "metadata": {},
7
  "outputs": [],
8
  "source": [
 
14
  },
15
  {
16
  "cell_type": "code",
17
+ "execution_count": 2,
18
  "metadata": {},
19
  "outputs": [
20
  {
 
49
  " <th>open</th>\n",
50
  " <th>total_trades</th>\n",
51
  " <th>...</th>\n",
 
52
  " <th>sample_datetime</th>\n",
53
  " <th>first_token_perc</th>\n",
54
  " <th>second_token_perc</th>\n",
 
58
  " <th>price_weighted_second_outcome_perc</th>\n",
59
  " <th>bought_tokens_first_perc</th>\n",
60
  " <th>bought_tokens_second_perc</th>\n",
61
+ " <th>resolutionTimestamp</th>\n",
62
  " </tr>\n",
63
  " </thead>\n",
64
  " <tbody>\n",
 
72
  " <td>[5728447658624505774, 8553800771178854358]</td>\n",
73
  " <td>Will SpaceX successfully send four people on a...</td>\n",
74
  " <td>1724320709</td>\n",
75
+ " <td>False</td>\n",
76
  " <td>25</td>\n",
77
  " <td>...</td>\n",
 
78
  " <td>2024-08-22 11:58:29</td>\n",
79
  " <td>59.89</td>\n",
80
  " <td>40.11</td>\n",
 
84
  " <td>37.33</td>\n",
85
  " <td>57.34</td>\n",
86
  " <td>42.66</td>\n",
87
+ " <td>None</td>\n",
88
  " </tr>\n",
89
  " <tr>\n",
90
  " <th>1</th>\n",
 
96
  " <td>[9108406198169923801, 5379645893465440960]</td>\n",
97
  " <td>Will there be a significant increase in the pu...</td>\n",
98
  " <td>1724320709</td>\n",
99
+ " <td>False</td>\n",
100
  " <td>6</td>\n",
101
  " <td>...</td>\n",
 
102
  " <td>2024-08-22 11:58:29</td>\n",
103
  " <td>37.13</td>\n",
104
  " <td>62.87</td>\n",
 
108
  " <td>93.52</td>\n",
109
  " <td>7.13</td>\n",
110
  " <td>92.87</td>\n",
111
+ " <td>None</td>\n",
112
  " </tr>\n",
113
  " <tr>\n",
114
  " <th>2</th>\n",
 
120
  " <td>[3560526624520056083, 13762009154082647147]</td>\n",
121
  " <td>Will the World War II-era bomb in Northern Ire...</td>\n",
122
  " <td>1724320709</td>\n",
123
+ " <td>False</td>\n",
124
  " <td>6</td>\n",
125
  " <td>...</td>\n",
 
126
  " <td>2024-08-22 11:58:29</td>\n",
127
  " <td>79.45</td>\n",
128
  " <td>20.55</td>\n",
 
132
  " <td>0.00</td>\n",
133
  " <td>100.00</td>\n",
134
  " <td>0.00</td>\n",
135
+ " <td>None</td>\n",
136
  " </tr>\n",
137
  " <tr>\n",
138
  " <th>3</th>\n",
 
144
  " <td>[5353172588127988920, 9153450443325863452]</td>\n",
145
  " <td>Will the human remains found on the Michigan m...</td>\n",
146
  " <td>1724320709</td>\n",
147
+ " <td>False</td>\n",
148
  " <td>4</td>\n",
149
  " <td>...</td>\n",
 
150
  " <td>2024-08-22 11:58:29</td>\n",
151
  " <td>63.10</td>\n",
152
  " <td>36.90</td>\n",
 
156
  " <td>6.36</td>\n",
157
  " <td>92.98</td>\n",
158
  " <td>7.02</td>\n",
159
+ " <td>None</td>\n",
160
  " </tr>\n",
161
  " <tr>\n",
162
  " <th>4</th>\n",
 
168
  " <td>[12470403414325965877, 3929303517455492411]</td>\n",
169
  " <td>Will Ethan Holliday be drafted in the 2025 MLB...</td>\n",
170
  " <td>1724320709</td>\n",
171
+ " <td>False</td>\n",
172
  " <td>4</td>\n",
173
  " <td>...</td>\n",
 
174
  " <td>2024-08-22 11:58:29</td>\n",
175
  " <td>23.96</td>\n",
176
  " <td>76.04</td>\n",
 
180
  " <td>100.00</td>\n",
181
  " <td>0.00</td>\n",
182
  " <td>100.00</td>\n",
183
+ " <td>None</td>\n",
184
  " </tr>\n",
185
  " </tbody>\n",
186
  "</table>\n",
187
+ "<p>5 rows × 23 columns</p>\n",
188
  "</div>"
189
  ],
190
  "text/plain": [
 
209
  "3 [5353172588127988920, 9153450443325863452] \n",
210
  "4 [12470403414325965877, 3929303517455492411] \n",
211
  "\n",
212
+ " title sample_timestamp open \\\n",
213
+ "0 Will SpaceX successfully send four people on a... 1724320709 False \n",
214
+ "1 Will there be a significant increase in the pu... 1724320709 False \n",
215
+ "2 Will the World War II-era bomb in Northern Ire... 1724320709 False \n",
216
+ "3 Will the human remains found on the Michigan m... 1724320709 False \n",
217
+ "4 Will Ethan Holliday be drafted in the 2025 MLB... 1724320709 False \n",
218
  "\n",
219
+ " total_trades ... sample_datetime first_token_perc second_token_perc \\\n",
220
+ "0 25 ... 2024-08-22 11:58:29 59.89 40.11 \n",
221
+ "1 6 ... 2024-08-22 11:58:29 37.13 62.87 \n",
222
+ "2 6 ... 2024-08-22 11:58:29 79.45 20.55 \n",
223
+ "3 4 ... 2024-08-22 11:58:29 63.10 36.90 \n",
224
+ "4 4 ... 2024-08-22 11:58:29 23.96 76.04 \n",
225
  "\n",
226
+ " mean_trade_size total_bet_amount price_weighted_first_outcome_perc \\\n",
227
+ "0 0.398600 9.965 62.67 \n",
228
+ "1 0.411333 2.468 6.48 \n",
229
+ "2 1.150000 6.900 100.00 \n",
230
+ "3 0.628500 2.514 93.64 \n",
231
+ "4 1.395750 5.583 0.00 \n",
232
  "\n",
233
+ " price_weighted_second_outcome_perc bought_tokens_first_perc \\\n",
234
+ "0 37.33 57.34 \n",
235
+ "1 93.52 7.13 \n",
236
+ "2 0.00 100.00 \n",
237
+ "3 6.36 92.98 \n",
238
+ "4 100.00 0.00 \n",
239
  "\n",
240
+ " bought_tokens_second_perc resolutionTimestamp \n",
241
+ "0 42.66 None \n",
242
+ "1 92.87 None \n",
243
+ "2 0.00 None \n",
244
+ "3 7.02 None \n",
245
+ "4 100.00 None \n",
246
  "\n",
247
+ "[5 rows x 23 columns]"
248
  ]
249
  },
250
+ "execution_count": 2,
251
  "metadata": {},
252
  "output_type": "execute_result"
253
  }
 
259
  },
260
  {
261
  "cell_type": "code",
262
+ "execution_count": 3,
263
+ "metadata": {},
264
+ "outputs": [
265
+ {
266
+ "data": {
267
+ "text/html": [
268
+ "<div>\n",
269
+ "<style scoped>\n",
270
+ " .dataframe tbody tr th:only-of-type {\n",
271
+ " vertical-align: middle;\n",
272
+ " }\n",
273
+ "\n",
274
+ " .dataframe tbody tr th {\n",
275
+ " vertical-align: top;\n",
276
+ " }\n",
277
+ "\n",
278
+ " .dataframe thead th {\n",
279
+ " text-align: right;\n",
280
+ " }\n",
281
+ "</style>\n",
282
+ "<table border=\"1\" class=\"dataframe\">\n",
283
+ " <thead>\n",
284
+ " <tr style=\"text-align: right;\">\n",
285
+ " <th></th>\n",
286
+ " <th>creationTimestamp</th>\n",
287
+ " <th>id</th>\n",
288
+ " <th>liquidityMeasure</th>\n",
289
+ " <th>liquidityParameter</th>\n",
290
+ " <th>openingTimestamp</th>\n",
291
+ " <th>outcomeTokenAmounts</th>\n",
292
+ " <th>title</th>\n",
293
+ " <th>sample_timestamp</th>\n",
294
+ " <th>open</th>\n",
295
+ " <th>total_trades</th>\n",
296
+ " <th>...</th>\n",
297
+ " <th>sample_datetime</th>\n",
298
+ " <th>first_token_perc</th>\n",
299
+ " <th>second_token_perc</th>\n",
300
+ " <th>mean_trade_size</th>\n",
301
+ " <th>total_bet_amount</th>\n",
302
+ " <th>price_weighted_first_outcome_perc</th>\n",
303
+ " <th>price_weighted_second_outcome_perc</th>\n",
304
+ " <th>bought_tokens_first_perc</th>\n",
305
+ " <th>bought_tokens_second_perc</th>\n",
306
+ " <th>resolutionTimestamp</th>\n",
307
+ " </tr>\n",
308
+ " </thead>\n",
309
+ " <tbody>\n",
310
+ " <tr>\n",
311
+ " <th>200</th>\n",
312
+ " <td>1724633865</td>\n",
313
+ " <td>0xd7e3d0f71b8c6d19c21639d7e051dbd8fb6036c7</td>\n",
314
+ " <td>6677597715120281882</td>\n",
315
+ " <td>7000000000000000003</td>\n",
316
+ " <td>1725062400</td>\n",
317
+ " <td>[9539281035899715502, 5136655458162468477]</td>\n",
318
+ " <td>Will Meta and Snap debut their rival AR glasse...</td>\n",
319
+ " <td>1724679627</td>\n",
320
+ " <td>True</td>\n",
321
+ " <td>11</td>\n",
322
+ " <td>...</td>\n",
323
+ " <td>2024-08-26 15:40:27</td>\n",
324
+ " <td>35.00</td>\n",
325
+ " <td>65.00</td>\n",
326
+ " <td>0.550909</td>\n",
327
+ " <td>6.060</td>\n",
328
+ " <td>18.93</td>\n",
329
+ " <td>81.07</td>\n",
330
+ " <td>30.35</td>\n",
331
+ " <td>69.65</td>\n",
332
+ " <td>None</td>\n",
333
+ " </tr>\n",
334
+ " <tr>\n",
335
+ " <th>201</th>\n",
336
+ " <td>1724549630</td>\n",
337
+ " <td>0xe5b58dc5da5d4f36c2520cc494e6396125dcaf34</td>\n",
338
+ " <td>6370701121566728366</td>\n",
339
+ " <td>7000000000000000003</td>\n",
340
+ " <td>1724976000</td>\n",
341
+ " <td>[4504209296945904222, 10878712948180412338]</td>\n",
342
+ " <td>Will Google's Essentials app for Windows PC be...</td>\n",
343
+ " <td>1724679627</td>\n",
344
+ " <td>True</td>\n",
345
+ " <td>12</td>\n",
346
+ " <td>...</td>\n",
347
+ " <td>2024-08-26 15:40:27</td>\n",
348
+ " <td>70.72</td>\n",
349
+ " <td>29.28</td>\n",
350
+ " <td>0.385250</td>\n",
351
+ " <td>4.623</td>\n",
352
+ " <td>95.67</td>\n",
353
+ " <td>4.33</td>\n",
354
+ " <td>91.50</td>\n",
355
+ " <td>8.50</td>\n",
356
+ " <td>None</td>\n",
357
+ " </tr>\n",
358
+ " <tr>\n",
359
+ " <th>202</th>\n",
360
+ " <td>1690321980</td>\n",
361
+ " <td>0xe7ed8a5f2f0f17f7d584ae8ddd0592d1ac67791f</td>\n",
362
+ " <td>242918463834049</td>\n",
363
+ " <td>10000000000002729</td>\n",
364
+ " <td>1730502000</td>\n",
365
+ " <td>[121477155290599, 823200047456111971]</td>\n",
366
+ " <td>Will Twitter implement a new misinformation po...</td>\n",
367
+ " <td>1724679627</td>\n",
368
+ " <td>True</td>\n",
369
+ " <td>255</td>\n",
370
+ " <td>...</td>\n",
371
+ " <td>2024-08-26 15:40:27</td>\n",
372
+ " <td>99.99</td>\n",
373
+ " <td>0.01</td>\n",
374
+ " <td>0.373357</td>\n",
375
+ " <td>95.206</td>\n",
376
+ " <td>55.20</td>\n",
377
+ " <td>44.80</td>\n",
378
+ " <td>50.22</td>\n",
379
+ " <td>49.78</td>\n",
380
+ " <td>None</td>\n",
381
+ " </tr>\n",
382
+ " <tr>\n",
383
+ " <th>203</th>\n",
384
+ " <td>1724633310</td>\n",
385
+ " <td>0xf9613dbb29382018e604f666f33df1a462e26bbb</td>\n",
386
+ " <td>6898633531370163255</td>\n",
387
+ " <td>7000000000000000003</td>\n",
388
+ " <td>1725062400</td>\n",
389
+ " <td>[8307248786318638362, 5898463048404064425]</td>\n",
390
+ " <td>Will Elon Musk's X staff receive their stocks ...</td>\n",
391
+ " <td>1724679627</td>\n",
392
+ " <td>True</td>\n",
393
+ " <td>10</td>\n",
394
+ " <td>...</td>\n",
395
+ " <td>2024-08-26 15:40:27</td>\n",
396
+ " <td>41.52</td>\n",
397
+ " <td>58.48</td>\n",
398
+ " <td>0.210200</td>\n",
399
+ " <td>2.102</td>\n",
400
+ " <td>17.13</td>\n",
401
+ " <td>82.87</td>\n",
402
+ " <td>19.24</td>\n",
403
+ " <td>80.76</td>\n",
404
+ " <td>None</td>\n",
405
+ " </tr>\n",
406
+ " <tr>\n",
407
+ " <th>204</th>\n",
408
+ " <td>1724373085</td>\n",
409
+ " <td>0xfa1a0f1961a35c463630286bef8ff29521613ba7</td>\n",
410
+ " <td>6763920134694989087</td>\n",
411
+ " <td>7000000000000000021</td>\n",
412
+ " <td>1724803200</td>\n",
413
+ " <td>[5378798833037069370, 9109840602150347095]</td>\n",
414
+ " <td>Will Google’s AI tool 'Reimagine' create contr...</td>\n",
415
+ " <td>1724679627</td>\n",
416
+ " <td>True</td>\n",
417
+ " <td>81</td>\n",
418
+ " <td>...</td>\n",
419
+ " <td>2024-08-26 15:40:27</td>\n",
420
+ " <td>62.88</td>\n",
421
+ " <td>37.12</td>\n",
422
+ " <td>0.454123</td>\n",
423
+ " <td>36.784</td>\n",
424
+ " <td>58.56</td>\n",
425
+ " <td>41.44</td>\n",
426
+ " <td>52.60</td>\n",
427
+ " <td>47.40</td>\n",
428
+ " <td>None</td>\n",
429
+ " </tr>\n",
430
+ " </tbody>\n",
431
+ "</table>\n",
432
+ "<p>5 rows × 23 columns</p>\n",
433
+ "</div>"
434
+ ],
435
+ "text/plain": [
436
+ " creationTimestamp id \\\n",
437
+ "200 1724633865 0xd7e3d0f71b8c6d19c21639d7e051dbd8fb6036c7 \n",
438
+ "201 1724549630 0xe5b58dc5da5d4f36c2520cc494e6396125dcaf34 \n",
439
+ "202 1690321980 0xe7ed8a5f2f0f17f7d584ae8ddd0592d1ac67791f \n",
440
+ "203 1724633310 0xf9613dbb29382018e604f666f33df1a462e26bbb \n",
441
+ "204 1724373085 0xfa1a0f1961a35c463630286bef8ff29521613ba7 \n",
442
+ "\n",
443
+ " liquidityMeasure liquidityParameter openingTimestamp \\\n",
444
+ "200 6677597715120281882 7000000000000000003 1725062400 \n",
445
+ "201 6370701121566728366 7000000000000000003 1724976000 \n",
446
+ "202 242918463834049 10000000000002729 1730502000 \n",
447
+ "203 6898633531370163255 7000000000000000003 1725062400 \n",
448
+ "204 6763920134694989087 7000000000000000021 1724803200 \n",
449
+ "\n",
450
+ " outcomeTokenAmounts \\\n",
451
+ "200 [9539281035899715502, 5136655458162468477] \n",
452
+ "201 [4504209296945904222, 10878712948180412338] \n",
453
+ "202 [121477155290599, 823200047456111971] \n",
454
+ "203 [8307248786318638362, 5898463048404064425] \n",
455
+ "204 [5378798833037069370, 9109840602150347095] \n",
456
+ "\n",
457
+ " title sample_timestamp \\\n",
458
+ "200 Will Meta and Snap debut their rival AR glasse... 1724679627 \n",
459
+ "201 Will Google's Essentials app for Windows PC be... 1724679627 \n",
460
+ "202 Will Twitter implement a new misinformation po... 1724679627 \n",
461
+ "203 Will Elon Musk's X staff receive their stocks ... 1724679627 \n",
462
+ "204 Will Google’s AI tool 'Reimagine' create contr... 1724679627 \n",
463
+ "\n",
464
+ " open total_trades ... sample_datetime first_token_perc \\\n",
465
+ "200 True 11 ... 2024-08-26 15:40:27 35.00 \n",
466
+ "201 True 12 ... 2024-08-26 15:40:27 70.72 \n",
467
+ "202 True 255 ... 2024-08-26 15:40:27 99.99 \n",
468
+ "203 True 10 ... 2024-08-26 15:40:27 41.52 \n",
469
+ "204 True 81 ... 2024-08-26 15:40:27 62.88 \n",
470
+ "\n",
471
+ " second_token_perc mean_trade_size total_bet_amount \\\n",
472
+ "200 65.00 0.550909 6.060 \n",
473
+ "201 29.28 0.385250 4.623 \n",
474
+ "202 0.01 0.373357 95.206 \n",
475
+ "203 58.48 0.210200 2.102 \n",
476
+ "204 37.12 0.454123 36.784 \n",
477
+ "\n",
478
+ " price_weighted_first_outcome_perc price_weighted_second_outcome_perc \\\n",
479
+ "200 18.93 81.07 \n",
480
+ "201 95.67 4.33 \n",
481
+ "202 55.20 44.80 \n",
482
+ "203 17.13 82.87 \n",
483
+ "204 58.56 41.44 \n",
484
+ "\n",
485
+ " bought_tokens_first_perc bought_tokens_second_perc resolutionTimestamp \n",
486
+ "200 30.35 69.65 None \n",
487
+ "201 91.50 8.50 None \n",
488
+ "202 50.22 49.78 None \n",
489
+ "203 19.24 80.76 None \n",
490
+ "204 52.60 47.40 None \n",
491
+ "\n",
492
+ "[5 rows x 23 columns]"
493
+ ]
494
+ },
495
+ "execution_count": 3,
496
+ "metadata": {},
497
+ "output_type": "execute_result"
498
+ }
499
+ ],
500
+ "source": [
501
+ "live_fpmms.tail()"
502
+ ]
503
+ },
504
+ {
505
+ "cell_type": "code",
506
+ "execution_count": 38,
507
  "metadata": {},
508
  "outputs": [
509
  {
 
534
  "dtype: int64"
535
  ]
536
  },
537
+ "execution_count": 38,
538
  "metadata": {},
539
  "output_type": "execute_result"
540
  }
 
597
  },
598
  {
599
  "cell_type": "code",
600
+ "execution_count": 39,
601
  "metadata": {},
602
  "outputs": [
603
  {
 
605
  "text/plain": [
606
  "sample_timestamp\n",
607
  "1724320709 41\n",
608
+ "1724340348 41\n",
609
  "Name: count, dtype: int64"
610
  ]
611
  },
612
+ "execution_count": 39,
613
  "metadata": {},
614
  "output_type": "execute_result"
615
  }
 
618
  "live_fpmms.sample_timestamp.value_counts()"
619
  ]
620
  },
621
+ {
622
+ "cell_type": "code",
623
+ "execution_count": 40,
624
+ "metadata": {},
625
+ "outputs": [],
626
+ "source": [
627
+ "avg_dist_gap_perc = live_fpmms.groupby(\"sample_datetime\")[\"dist_gap_perc\"].mean().reset_index()"
628
+ ]
629
+ },
630
+ {
631
+ "cell_type": "code",
632
+ "execution_count": 43,
633
+ "metadata": {},
634
+ "outputs": [],
635
+ "source": [
636
+ "avg_dist_gap_perc.rename(columns={\"dist_gap_perc\":\"mean_dist_gap_perc\"}, inplace=True)"
637
+ ]
638
+ },
639
+ {
640
+ "cell_type": "code",
641
+ "execution_count": 44,
642
+ "metadata": {},
643
+ "outputs": [
644
+ {
645
+ "data": {
646
+ "text/html": [
647
+ "<div>\n",
648
+ "<style scoped>\n",
649
+ " .dataframe tbody tr th:only-of-type {\n",
650
+ " vertical-align: middle;\n",
651
+ " }\n",
652
+ "\n",
653
+ " .dataframe tbody tr th {\n",
654
+ " vertical-align: top;\n",
655
+ " }\n",
656
+ "\n",
657
+ " .dataframe thead th {\n",
658
+ " text-align: right;\n",
659
+ " }\n",
660
+ "</style>\n",
661
+ "<table border=\"1\" class=\"dataframe\">\n",
662
+ " <thead>\n",
663
+ " <tr style=\"text-align: right;\">\n",
664
+ " <th></th>\n",
665
+ " <th>sample_datetime</th>\n",
666
+ " <th>mean_dist_gap_perc</th>\n",
667
+ " </tr>\n",
668
+ " </thead>\n",
669
+ " <tbody>\n",
670
+ " <tr>\n",
671
+ " <th>0</th>\n",
672
+ " <td>2024-08-22 11:58:29</td>\n",
673
+ " <td>18.808293</td>\n",
674
+ " </tr>\n",
675
+ " <tr>\n",
676
+ " <th>1</th>\n",
677
+ " <td>2024-08-22 17:25:48</td>\n",
678
+ " <td>12.970732</td>\n",
679
+ " </tr>\n",
680
+ " </tbody>\n",
681
+ "</table>\n",
682
+ "</div>"
683
+ ],
684
+ "text/plain": [
685
+ " sample_datetime mean_dist_gap_perc\n",
686
+ "0 2024-08-22 11:58:29 18.808293\n",
687
+ "1 2024-08-22 17:25:48 12.970732"
688
+ ]
689
+ },
690
+ "execution_count": 44,
691
+ "metadata": {},
692
+ "output_type": "execute_result"
693
+ }
694
+ ],
695
+ "source": [
696
+ "avg_dist_gap_perc"
697
+ ]
698
+ },
699
  {
700
  "cell_type": "code",
701
  "execution_count": 6,