Created
March 5, 2016 19:35
-
-
Save gingeleski/5b63b7fe1695eef3537e to your computer and use it in GitHub Desktop.
Ballpark numbers of continuously lending # out a given amount of BTC...
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
# Ballpark numbers of continuously lending | |
# out a given amount of BTC on Poloniex | |
########################################################## | |
# FILL THESE IN | |
start_btc = 150.0 # BTC - amount you're starting with | |
term = 2 # days - all loans will be for 2 day terms | |
daily_interest = 0.0025 # % expressed as 1.0 being 100% | |
run_days = 364 # how many days to run this for | |
########################################################## | |
rotations = run_days / term | |
end_btc = start_btc | |
(run_days/term).times { end_btc += end_btc * daily_interest * term * 0.85 } | |
puts "Starting balance: #{start_btc} BTC" | |
puts "Ending balance: #{end_btc} BTC" | |
puts "Profit: #{end_btc - start_btc} (over #{run_days} days)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment