Coder Social home page Coder Social logo

caichenccb / csgo_investment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shevonkuan/csgo_investment

0.0 0.0 0.0 14.17 MB

CSGO投资追踪面板。可以追踪库存在buff和悠悠有品的价格并进行投资相关分析。

License: GNU General Public License v2.0

Python 78.10% Go 19.67% Dockerfile 2.23%

csgo_investment's Introduction

csgo_investment

本仓库是基于爬虫和python streamlit实现的csgo饰品价格跟踪,可以追踪饰品的buff和悠悠有品价格,同时对盈利亏损状况进行统计。您可以将您希望加入的功能以issues的形式发出。

注意

由于悠悠有品的价格和租赁相关信息api现在需要鉴权才能访问,可以通过登录获取10天访问权限,但是这与本项目的初衷不符,所以暂时不再支持租赁信息,前端展示的租赁相关消息均为错误的,仅为最低限度修改代码而保留。该bug修复方式为使用无状态无鉴权api,但是该api无法获取租金相关信息。见issue 5

名词和算法说明

  • 租金比例 = (租金价格 / 饰品价格) * 100
  • 年化短租比例 = (192 * 租金价格 / 饰品价格) * 100
  • 年化长租比例 = (264 * 租金价格 / 饰品价格) * 100
  • 套现比例 = 饰品价格 / Steam价格
  • 总投资额 = 购买饰品总花费
  • 追踪总量 = 加入库存文件的饰品数量
  • 库存价值 = 库存饰品和已租出饰品总价值
  • 总套现 = 卖出饰品总收入
  • 盈利 = 总套现 + 库存价值 - 总投资额
  • 总收益率 = 盈利 / 总投资额 * 100
  • 持有饰品收益 = 库存价值 - 库存内和已租出饰品总花费
  • 持有饰品收益率 = ( 库存价值 - 库存内和已租出饰品总花费 ) / 库存内和已租出饰品总花费 * 100

Prerequirements

pip install -r requirements.txt

Quick Start

streamlit run app.py

Docker Mode

You can use docker to run this app.

  1. Pull image first
docker pull shevonkuan/csgo_investment
  1. Run the image
docker run -p 80:8501 -dit -v <path_to_store_data>:/usr/local/csgo/data --restart=always shevonkuan/csgo_investment:v1.0.1
  1. Now you can access the app at http://<your_ip>

Demo

demo

TODO

  • multi-threading crawler of buff and youyou
  • use front and back end separation to imporocve the performance
  • add account system to record the user's data
  • ...

csgo_investment's People

Contributors

shevonkuan avatar mingchangli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.