python BITCOIN genesis-mining Hash Power 0.35 TH/s profit, Market Prices and exchanges rates api





import datetime
import datetime
import decimal
import json
import pandas as pd
import urllib.request

from pandas import DataFrame

u = urllib.request.urlopen('http://info.finance.naver.com/marketindex/?tabSel=exchange#tab_section')

strUsd = str(u.read())
substr_point = strUsd.find('selectbox-default') - 25
usd = float(strUsd[substr_point:substr_point+6])
price = int(usd * 57.50);

b = urllib.request.urlopen('https://blockchain.info/ko/ticker')
js = json.loads(b.read())

coinList = pd.DataFrame( columns = ['15m', 'last', 'buy','sell', 'symbol'], index =[item for item in js])

for item in js:
  coinList.ix[item,'15m']   = int(js[item]['15m'])
  coinList.ix[item,'last']  = int(js[item]['last'])
  coinList.ix[item,'buy']  = int(js[item]['buy'])
  coinList.ix[item,'sell']  = int(js[item]['sell'])
  coinList.ix[item,'symbol']  = js[item]['symbol']

usdUrl = 'https://blockchain.info/tobtc?currency=USD&value='+str(coinList.ix['USD']['15m']-(coinList.ix['USD']['15m']-1))
krwUrl = 'https://blockchain.info/tobtc?currency=KRW&value=10'

uBit = float(urllib.request.urlopen(usdUrl).read().decode('utf-8'))
kBit = str(urllib.request.urlopen(krwUrl).read().decode('utf-8'))

myBit = 0.00006999
profit = int(myBit /float(decimal.Decimal(kBit)) * 10)

tDay = int(price/profit)
date = datetime.date(2017,8,19)+datetime.timedelta(days=tDay) 

print('0.01 USD  =',decimal.Decimal(str(uBit/100)))
print('10 KRW    =',kBit)
print('지불 금액    = USD 57.50' )
print('일 수익    = KRW ',profit)
print('원금필요 일수 = day',tDay)
print('원금회복 일  =',date)

제휴 코드 WD9he5
결제시 제휴코드를 넣으면 결제금액의 3프로 할인

genesis-mining URL :  https://www.genesis-mining.com/ 


현재 시점에선 2018년 3월 23일에 원금 회복이네요



Popular posts from this blog

com.gpki.secureweb.GPKISecureWEBException: ErrCode=1507,ErrMsg=[GPKI_CMS_ProcessEnvelopedData] 해당 인증서로는 데이터를 풀 수 없습니다.

PL/SQL Developer Tip 선택한 것만 실행

전자정부 EgovMap Xml Jsp