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.
capture.py
Open spreadnet.py and look for:
spreadnet.py
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.5 or 1.0).
0.5
1.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) # seconds
Lower value (e.g. 1): more frequent updates, more API load, more CPU.
1
Higher value (e.g. 3–5): less load, slightly more latency.
3–5
If you have good hardware + don’t care about API quotas, 1 is fine. Otherwise keep 2.
2
4.3.3 DEX / aggregator list
You’ll see a config structure for DEXs (e.g. dex_configs or similar).
dex_configs
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 2 months ago