Created
July 10, 2019 22:00
-
-
Save nuevoalex/7f8d4f1dfcb31cc2bb2588d5603498ca to your computer and use it in GitHub Desktop.
This file contains 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
### 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