feat(demo): seed script for guaranteed dashboard activity - #21
Open
ethanterrero wants to merge 1 commit into
Open
feat(demo): seed script for guaranteed dashboard activity#21ethanterrero wants to merge 1 commit into
ethanterrero wants to merge 1 commit into
Conversation
Real binary arbs on Polymarket are rare — a typical collection window on the live bot finds zero `opportunity_detected` rows. To ensure the Activity feed and Markets page always have something to show during the blockchain-club presentation, this adds a curated SQL seed at `supabase/seed_demo_activity.sql`. What it does - Inserts ~35 events across 18 plausible Polymarket-style markets (Fed policy, GDP, BTC/ETH price, sports outcomes, tech / corporate events, pop culture). - Timestamps are `now() - interval '...'` so events land across the last 8 hours, matching the bot's real snapshot collection window. - Kinds restricted to `opportunity_detected` and `dry_run` — the only two `arb-recorder` actually emits in dry-run mode. No fake fills. - Prices, sizes, and expected_profit values are within the same orders of magnitude the live bot would produce given the configured caps. How to use - Run via Supabase SQL Editor (paste-in) or `psql -f ...`. See the new "Seed data" section in `DEMO.md`. - Idempotent only in the additive sense — re-running appends a fresh batch with refreshed `now() -` timestamps. To re-anchor cleanly, `delete from public.activity;` first. DEMO.md gets a new section pointing at the seed, between the slide queries and the reset-to-production steps. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Real binary arbs on Polymarket are rare — the live bot typically finds zero
opportunity_detectedrows in a short collection window. Adds a curated SQL seed atsupabase/seed_demo_activity.sqlso the dashboard's Activity feed and Markets page are always populated for the blockchain-club talk.What's in the seed
now() - interval '...'so events land across the last 8 hours — matches the bot's real snapshot collection window so the Activity feed and Balance chart line up.opportunity_detectedanddry_run— the only twoarb-recorderactually emits in dry-run mode. No fake fills; the demo stays truthful.max_order_size_usdc = 50,min_net_spread = 0.001).Idempotency
Re-running appends a fresh batch with refreshed
now() -timestamps. To re-anchor cleanly (e.g. right before the talk),delete from public.activity;first.DEMO.md
New "Seed data" section between the slide queries and the reset steps explains how to run it and when to reseed.
Verified
kawgriwaxfgvgcvyepjj— 23opportunity_detected+ 13dry_runrows total, total expected profit on dry-runs = $2.89.Test plan
🤖 Generated with Claude Code