4.3 Configuration (where to tweak things)
Right now configuration is done directly in capture.py. Later you can abstract this to a config file or env vars, but let’s stay honest to the repo.
Open spreadnet.py and look for:
4.3.1 Minimum profit threshold
self.min_profit_threshold = 0.1 # in %Raise it if you only care about fatter edges (e.g.
0.5or1.0).Lower it if you want to see micro-edges (noise will explode).
Rule of thumb: start with defaults, then adjust after you see actual data.
4.3.2 Detection frequency (polling interval)
Somewhere in the main loop you’ll see:
await asyncio.sleep(2) # secondsLower value (e.g.
1): more frequent updates, more API load, more CPU.Higher value (e.g.
3–5): less load, slightly more latency.
If you have good hardware + don’t care about API quotas, 1 is fine. Otherwise keep 2.
4.3.3 DEX / aggregator list
You’ll see a config structure for DEXs (e.g. dex_configs or similar).
Comment out venues you don’t care about.
Add new ones by:
Adding their API endpoints.
Implementing a fetch/normalize function in the same style as existing ones.
Don’t add 10 random shit DEXs at once and then complain about errors. Add one, test, then move on.
Last updated

