项目作者: sinhadotabhinav

项目描述 :
This is a golang-based application that retrieves live exchange information of the cryptocurrency market. Additionally, the application also calculates your profits or losses on preferred cryptocurrencies.
高级语言: Go
项目地址: git://github.com/sinhadotabhinav/cryptogeek.git
创建时间: 2021-05-16T16:14:58Z
项目社区:https://github.com/sinhadotabhinav/cryptogeek

开源协议:MIT License

下载


Cryptogeek

Go Report Card

This is a golang-based application that retrieves live exchange information of the cryptocurrency market. Additionally, the application also calculates your profits or losses on preferred cryptocurrencies.

Configurations

Update the full path of CRYPTOGEEK_CONFIG_PATH in config.go.

Customise the /configs/config.json based on your trading currencies. Set "has_invested": false if you are not interested in the profit/loss statement of your assets.
See below example:

  1. {
  2. "has_invested": true,
  3. "platform": "binance",
  4. "quote_asset_symbol": "USDT",
  5. "base_assets": [
  6. {
  7. "symbol": "DOGE",
  8. "price": 0.52399,
  9. "quantity": 491.80770
  10. },
  11. {
  12. "symbol": "XRP",
  13. "price": 1.4809,
  14. "quantity": 26.14383
  15. }
  16. ]
  17. }

How to run the application?

Fork this repository and follow the Configurations section to update the config file. Update the go module name based on your needs and push changes to GitHub. Replace the module name in the below command and execute application.

  1. $ go get github.com/sinhadotabhinav/cryptogeek

Command crytogeek covers:

Fetching live exchange information from exchange platform such as Binance\
Functionality asking user to input desired quote asset and base asset(s)\
Printing live price details for the assets\
Optionally, printing profit/ loss statement in case of trades

Run the $ cryptogeek command when inside GOBIN path or from anywhere after appending the GOBIN path to bash PATH.