gobuy

command module
v0.0.0-...-4f120fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 6 Imported by: 0

README

gobuy

Simple go service to keep started in the background and buy you $X of ethereum during bear market.

Also supports buying from the command line.

No plans anytime soon to implement selling (redundant).

Requires

  • .env file containing API_KEY and SECRET_KEY from binance or setting the env variables

Usage

$ gobuy
Price (ETHUSDT): 1557.85366057

Total Balance: 1037.901787 USDT

USDT: 381.072632 USDT (36.715674%)
ETH: 344.563640 USDT (33.198097%)
LINK: 156.362570 USDT (15.065257%)
DOT: 59.848975 USDT (5.766343%)
MATIC: 35.280540 USDT (3.399218%)
AVAX: 32.392115 USDT (3.120923%)
BAND: 28.381314 USDT (2.734489%)

  -buy
        Buy once
  -docker
        Include the flag if running in container
  -interval int
        Interval in minutes (default 420)
  -qty string
        Quantity of ETH (default "0.01")
  -run
        Run the bot
  -symbol string
        Symbol of the pair to buy (default "ETHUSDT")
$ gobuy -buy [amount-of-eth]
Balance: 628 USDT
Buying 0.01 ETH once
{
  "symbol": "ETHUSDT",
  "orderId": "[secret]",
  "clientOrderId": "[secret]",
  "transactTime": 1655379729428,
  "price": "0.00000000",
  "origQty": "0.01000000",
  "executedQty": "0.01000000",
  "cummulativeQuoteQty": "11.20130000",
  "isIsolated": false,
  "status": "FILLED",
  "timeInForce": "GTC",
  "type": "MARKET",
  "side": "BUY",
  "fills": [
    {
      "price": "1120.13000000",
      "qty": "0.01000000",
      "commission": "0.00001000",
      "commissionAsset": "ETH"
    }
  ],
  "marginBuyBorrowAmount": "",
  "marginBuyBorrowAsset": ""
}
Help message
$ gobuy

  -buy
        Buy once
  -docker
        Include the flag if running in container
  -interval int
        Interval in minutes (default 420)
  -qty string
        Quantity of ETH (default "0.01")
  -run
        Run the bot
  -symbol string
        Symbol of the pair to buy (default "ETHUSDT")

Dollar-cost average into ether!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL