Get the S2F ratio based on Bitcoin’s daily inflation
format: python s2f.py outpath proxy(dict)
example1: python s2f.py s2f.txt
example2: python s2f.py s2f.txt "{'http': 'http://127.0.0.1:1087', 'https': 'http://127.0.0.1:1087'}"
(base) ✘ leek ~/code/python/s2f_bitcoin python s2f.py s2f.txt "{'http': 'http://127.0.0.1:1087', 'https': 'http://127.0.0.1:1087'}"
date_time: 20090220 daily_production: 6100 progress_stock: 252450 s2f_rate_day: 41.385245901639344 s2f_rate_year: 0.1133842353469571
date_time: 20090221 daily_production: 5700 progress_stock: 258150 s2f_rate_day: 45.28947368421053 s2f_rate_year: 0.12408074981975487
date_time: 20090222 daily_production: 6050 progress_stock: 264200 s2f_rate_day: 43.66942148760331 s2f_rate_year: 0.11964225065096797
date_time: 20090223 daily_production: 5400 progress_stock: 269600 s2f_rate_day: 49.925925925925924 s2f_rate_year: 0.13678335870116692
date_time: 20090224 daily_production: 5300 progress_stock: 274900 s2f_rate_day: 51.867924528301884 s2f_rate_year: 0.14210390281726543
date_time: 20090225 daily_production: 5250 progress_stock: 280150 s2f_rate_day: 53.36190476190476 s2f_rate_year: 0.14619699934768426
date_time: 20090226 daily_production: 5350 progress_stock: 285500 s2f_rate_day: 53.36448598130841 s2f_rate_year: 0.1462040711816669
date_time: 20090227 daily_production: 5750 progress_stock: 291250 s2f_rate_day: 50.65217391304348 s2f_rate_year: 0.13877307921381773
date_time: 20090228 daily_production: 4950 progress_stock: 296200 s2f_rate_day: 59.83838383838384 s2f_rate_year: 0.1639407776394078
date_time: 20090301 daily_production: 5250 progress_stock: 301450 s2f_rate_day: 57.41904761904762 s2f_rate_year: 0.15731245923026743
date_time: 20090302 daily_production: 5400 progress_stock: 306850 s2f_rate_day: 56.824074074074076 s2f_rate_year: 0.15568239472349063
date_time: 20090303 daily_production: 5250 progress_stock: 312100 s2f_rate_day: 59.44761904761905 s2f_rate_year: 0.16287018917155904
date_time: 20090304 daily_production: 5200 progress_stock: 317300 s2f_rate_day: 61.01923076923077 s2f_rate_year: 0.16717597471022128
date_time: 20090305 daily_production: 5600 progress_stock: 322900 s2f_rate_day: 57.660714285714285 s2f_rate_year: 0.15797455968688845
date_time: 20090306 daily_production: 5850 progress_stock: 328750 s2f_rate_day: 56.1965811965812 s2f_rate_year: 0.15396323615501697