litecoin price history data analysis

Cryptographic currency has become a new focus of market assets. From the analysis of litecoin price history data, As bitcoin prices continue to rise, many investors are turning to other cryptocurrencies. In 2017, Litecoin has risen by 1400%, although the relative increase in bitcoin prices is not high, but There are also many investors in Litecoin.

historical%2Bdata.png

 

The price of Litecoin did not continue to rise after breaking through the pressure of 165 US dollars, but began to fall, and has fallen below the support of 155 US dollars and 150 US dollars. This was a big drop, and the price subsequently fell below $140. The current price is under $150 and 100 hours SMA. After falling to a low of $137, prices have rebounded slightly. The first pressure is near the 23.6% correction rate of the $163-137 decline. Due to the numerous resistances around $150-155, any significant increase may be limited in this block.

 

In addition, the 50% correction rate for the $163-137 range is around $150. Therefore, $150 may also be the resistance to the current uptrend. All in all, the current price is under the state of $150. The price of Litecoin is likely to continue to fall in the short term.

 

About the future of Litecoin

Analyze litecoin price history data, some people think it will rise to a high this year. This view has also been praised by analysts. And unlike Bitcoin, Litecoin's anonymous transactions are implemented on the main chain. Litecoin began to choose a different development path from Bitcoin. As a supplementary currency of Bitcoin, Litecoin continued to sit firmly at the leading position of the competition currency.

 

According to the data analysis, the recent cryptocurrency market has relatively strong market performance, while Bitcoin has similar properties of Litecoin, which has a relatively low price, long running time and high user size and popularity around the world, plus recent The trend of Bitcoin has skyrocketed. Therefore, the market sentiment is soaring, driving a large amount of funds into the Litecoin fund, which is one of the reasons for the increase.

 

Charlie Lee, the founder of Litecoin, once interviewed through Youtube. He said: "I still think this is a correct move, but what makes me suspicious is that in the long run, I think this is a correct behavior. However, in the short term, only the price of Litecoin is falling, and there is no new high, which may not be the most important decision."

转载于:https://my.oschina.net/u/3864993/blog/1846418

我现在的代码已经能爬取一个品牌的数据了from DrissionPage import ChromiumPage from datetime import datetime import csv output_filename="A4.csv" filenames=["时间","价格","趋势","天数","价格变化","促销信息"] Pos='https://tool.manmanbuy.com/HistoryLowest.aspx?url=https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fdetail_redpacket_pop%3Dtrue%26id%3D559270244089%26ltk2%3D17477065512345huo1bwf9jdb36q0gzr0vj%26ns%3D1%26priceTId%3D2147830817477065254104592e1da0%26query%3D%25E5%25A4%258D%25E5%258D%25B0%25E7%25BA%25B8%26skuId%3D3650969450084%26spm%3Da21n57.1.hoverItem.1%26utparam%3D%257B%2522aplus_abtest%2522%253A%25226c72565727cd5802a7f34f1197aa9ecd%2522%257D%26xxc%3Dad_ztc' api='https://tool.manmanbuy.com/api.ashx' #数据接口 zdh=ChromiumPage() #初始化浏览器 zdh.get(Pos) #目标网页 zdh.listen.start(api) resp=zdh.listen.wait() data = resp.response.body def parse_price_history(data): date_price_str = data['data']['datePrice'].strip('[]"') #去除特殊字符 entries = [e.strip() for e in date_price_str.split('],[')] #分割数据成独立条目 price_history = [] for entry in entries: parts = entry.split(',', 2) # 最多分割2次,保留促销信息 if len(parts) < 2: continue timestamp = int(parts[0].strip(' "\'')) price = float(parts[1].strip(' "\'')) promotion = parts[2].strip(' "\'') if len(parts) > 2 else "" # 提取促销信息 dt = datetime.fromtimestamp(timestamp // 1000).strftime('%Y-%m-%d %H:%M:%S') #转换时间格式 price_history.append((dt, price, promotion)) # 保存促销信息 trends = [] for i in range(1, len(price_history)): prev_dt, prev_price, _ = price_history[i - 1] curr_dt, curr_price, promotion = price_history[i] price_diff = curr_price - prev_price trend = "上涨" if price_diff > 0 else "下跌" # 过滤持平情况 if abs(price_diff) < 0.01: continue # 跳过持平数据 delta = (datetime.strptime(curr_dt, '%Y-%m-%d %H:%M:%S') - datetime.strptime(prev_dt, '%Y-%m-%d %H:%M:%S')) days_diff = delta.days + delta.seconds / (24 * 3600) trends.append({ "时间": curr_dt, "价格": curr_price, "趋势": trend, "天数": round(days_diff, 2), "价格变化": round(price_diff, 2), "促销信息": promotion # 单独显示促销信息 }) return { "trend_analysis": trends, "latest_price": price_history[-1][1] if price_history else None } result = parse_price_history(data) if result and result["trend_analysis"]: print(f"最新价格: {result['latest_price']} 元") print("价格变动记录(过滤持平):") for change in result["trend_analysis"]: promo = f" | 促销: {change['促销信息']}" if change["促销信息"] else "" #若有促销信息则输出,若无则不输出 print( f"时间: {change['时间']} | 价格: {change['价格']} 元 | " f"趋势: {change['趋势']} | 距上次变动: {change['天数']} 天 | " f"变化: {change['价格变化']} 元{promo}" ) else: print("未检测到价格变动或数据异常") with open(output_filename,'w',newline='',encoding='utf-8-sig') as csvfile: csv_writer = csv.writer(csvfile) csv_writer.writerow(["时间","价格","趋势","距上次变动","变化","促销"]) #增加标头 for change in result["trend_analysis"]: data=[ change["时间"], change["价格"], change["趋势"], change["天数"], change["价格变化"], change["促销信息"] ] csv_writer.writerow(data) zdh.close()请帮我在原代码的基础上修改爬取多个品牌的相关数据
06-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值