Skip to content

Instantly share code, notes, and snippets.

@gingeleski
Created March 5, 2016 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gingeleski/5b63b7fe1695eef3537e to your computer and use it in GitHub Desktop.
Save gingeleski/5b63b7fe1695eef3537e to your computer and use it in GitHub Desktop.
Ballpark numbers of continuously lending # out a given amount of BTC...
# 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