Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add offer-monitor #181

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion offer-monitor/offer-monitor.sh
@@ -1,9 +1,13 @@
#!/usr/bin/env bash
# goal: this script aims to collect all bisq offers that go online in 24-hour periods.
# leave it running and it will collect all offers for each calendar day in a separate file.
# requires: python 2.
# instructions: set full path in settings.env and start bisq with --dumpStatistics=true.

mkdir -p data

while true
do
python parse-offers.py
sleep 30
sleep 10
done
2 changes: 1 addition & 1 deletion offer-monitor/parse-offers.py
Expand Up @@ -57,4 +57,4 @@ def objToDict( offersObject ):
print( 'failed to write results.' )

if( newOffers > 0 ):
print( "%s total offers: +%s at %s" %( len(existingOffers), newOffers, thisTime ) )
print( "total offers: %s; new: +%s; current: %s; time: %s" %( len(existingOffers), newOffers, len( bisqOffers ), thisTime ) )