bnb-staking-csvs: Generate CSV Exports of Your BNB Staking Rewards.

[ bsd3, console, finance, library, program, web ] [ Propose Tags ]

bnb-staking-csvs is a CLI program that queries the Binance.org API for all of a delegator's rewards and exports the resulting data to a CSV file.

You can install bnb-staking-csvs with Stack: stack install --resolver nightly bnb-staking-csvs. Then run the following to print out your rewards in CSV format:

bnb-staking-csvs <DELEGATOR_PUBKEY>

See bnb-staking-csvs --help for additional options.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.2.0
Change log CHANGELOG.md
Dependencies aeson (<3), base (>=4.7 && <5), bnb-staking-csvs, bytestring (<1), cassava (<1), cmdargs (>=0.10 && <1), cointracking-imports (<1), req (>=3 && <4), scientific (<1), text (>=1 && <2), time (>=1 && <2) [details]
License BSD-3-Clause
Copyright 2021 Pavan Rikhi
Author Pavan Rikhi
Maintainer pavan.rikhi@gmail.com
Revised Revision 1 made by lysergia at 2021-10-15T03:01:41Z
Category Web, Finance, Console
Home page https://github.com/prikhi/bnb-staking-csvs#readme
Bug tracker https://github.com/prikhi/bnb-staking-csvs/issues
Source repo head: git clone https://github.com/prikhi/bnb-staking-csvs
Uploaded by lysergia at 2021-08-10T05:05:09Z
Distributions LTSHaskell:0.2.2.0, NixOS:0.2.2.0, Stackage:0.2.2.0
Executables bnb-staking-csvs
Downloads 498 total (21 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-08-10 [all 1 reports]

Readme for bnb-staking-csvs-0.2.0.0

[back to package description]

bnb-staking-csvs

bnb-staking-csvs Build Status

Generate CSV exports of your staking rewards on BinanceChain.

Requires stack:

stack run -- <DELEGATOR_PUBKEY>
stack run -- --help

Install

You can install the CLI exe by running stack install. This lets you call the executable directly instead of through stack:

$ stack install
$ export PATH="${HOME}/.local/bin/:${PATH}"
$ bnb-staking-csvs bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2 | head -n 4
time,amount,currency,delegator,validator,validatorAddress,height
2021-04-09T20:00:00-04:00,0.00118792,BNB,bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2,BscScan,bva1t42gtf6hawqgpmdpjzmvlzvmlttlqtkvlmgjxt,155843908
2021-04-10T20:00:00-04:00,0.00095682,BNB,bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2,BscScan,bva1t42gtf6hawqgpmdpjzmvlzvmlttlqtkvlmgjxt,156060618
2021-04-11T20:00:00-04:00,1.74196290,BNB,bnb1hwzqet2vusraqvxfxgr6zhupd8kpgz5hpl2wf2,TW Staking,bva1c6aqe9ndzcn2nsan963z43xg6kgrvzynl97785,156277904

Build

You can build the project with stack:

stack build

For development, you can enable fast builds with file-watching, documentation-building, & test-running:

stack test --haddock --fast --file-watch --pedantic

To build & open the documentation, run

stack haddock --open bnb-staking-csvs

LICENSE

BSD-3