Skip to content

Instantly share code, notes, and snippets.

@nuevoalex
Created July 10, 2019 22:00
Show Gist options
  • Save nuevoalex/7f8d4f1dfcb31cc2bb2588d5603498ca to your computer and use it in GitHub Desktop.
Save nuevoalex/7f8d4f1dfcb31cc2bb2588d5603498ca to your computer and use it in GitHub Desktop.
### V2 Invalid Filter:
Get 0x bids (remove all bids where gas fees are > max(5 cents, 1% of the trade's value), we should do this for all books on augur in v2)
valid_revenue = best_bid_quantity*range*(1-reporter_fee-creator_fee)*e^(-.15*time_til_market_finalizes_in_years) - gasToDoATrade - gasToClaimWinnings
valid_cost = best_bid_quantity * (max - best_bid)
valid_profit = valid_revenue - valid_cost
if valid_profit >= 0:
show_market
else:
invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment