Code Monkey home page Code Monkey logo

qitmeerlockprofit's Introduction

QitmeerLockProfit

Qitmeer Locking Profit Calculation

Qitmeer 锁仓收益计算脚本

使用说明:

  • 先使用 gettx.sh 脚本获取交易信息,建立起交易数据文件(txdata.txt)

  • 再利用 weight-add.sh 脚本计算时间权重以及锁仓当量,生成 TimeWeightGuard.txt 和 TimeWeightHonor.txt

  • 最后利用 profit.sh 脚本计算收益

TimeWeightGuard.txt 和 TimeWeightHonor.txt 两个文件中已经包含了每笔资金在 12 期的时间权重,以及当前数据尾对应的每一期的锁仓当量(lockVolume),由于新数据的进来会造成 lockVolume 的增加,但不会 TimeWeight 的结果,因此 TimeWeight 文件可以追加,而最后的收益文件 ProfitGuard.txt 和 ProfitHonor.txt 中当前期以及未来期的收益值会发生变化,因此收益文件每次要重新生成(或者得更新对应期数的收益列)

qitmeerlockprofit's People

Contributors

blocklee avatar

Watchers

 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.