You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT trader_a, labels.get(trader_a) as label, SUM(token_a_amount)
117
116
FROMdex.trades
118
117
WHERE token_a_symbol ='DAI'
119
118
AND block_time > now() - interval '24 hours'
119
+
and not labels.get(trader_a) isnull
120
120
GROUP BY1
121
-
ORDER BY3DESC
122
-
LIMIT10;
121
+
ORDER BY2DESC
122
+
LIMIT100;
123
123
```
124
124
125
125
Now you’ve replaced the addresses with lists of all labels for trader\_a. Sometimes you’re only interested in a subset of labels: `labels.get` accepts an optional list of type names which filter the type of labels you get. Say you’re only interested in ‘activity’ labels:
0 commit comments