GithubHelp home page GithubHelp logo

avalla / pump-bot Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 11.0 243 KB

A simple bot that helps to take profit in organized crypto pump events.

License: MIT License

JavaScript 100.00%
trading cryptocurrency bot coin pump binance pump-and-dump cryptocurrency-trading-bot trade

pump-bot's Introduction

Pump-Bot

Pump-Bot CI Maintainability Test Coverage GitHub

A simple bot that helps to take profit in organized crypto pump events.

Getting started

Install npm modules:

$ yarn install

Create configuration.yml file copying configuration.example.yml and configure it.

thresholds:
  BTC: 0.0001
  USDT: 10
binance:
  api_key: "PUT BINANCE API KEY"
  api_secret: "PUT BINANCE API SECRET"
defaults:
  profit: 0.5
  stopLoss: 0.2
  interval: "5m"
  quote: "USDT"

Getting help:

$ yarn start --help

 /$$$$$$$                                    /$$$$$$$              /$$
| $$__  $$                                  | $$__  $$            | $$
| $$  \ $$ /$$   /$$ /$$$$$$/$$$$   /$$$$$$ | $$  \ $$  /$$$$$$  /$$$$$$
| $$$$$$$/| $$  | $$| $$_  $$_  $$ /$$__  $$| $$$$$$$  /$$__  $$|_  $$_/
| $$____/ | $$  | $$| $$ \ $$ \ $$| $$  \ $$| $$__  $$| $$  \ $$  | $$
| $$      | $$  | $$| $$ | $$ | $$| $$  | $$| $$  \ $$| $$  | $$  | $$ /$$
| $$      |  $$$$$$/| $$ | $$ | $$| $$$$$$$/| $$$$$$$/|  $$$$$$/  |  $$$$/
|__/       \______/ |__/ |__/ |__/| $$____/ |_______/  \______/    \___/
                                  | $$
                                  | $$
                                  |__/

Made in Italy with ❤ :: Version 1.0.0



Usage: program [options]

Options:
  -V, --version                output the version number
  -d, --dry-run                don't execute order
  -p, --profit <profit>        profit percentage, use decimals (for 10% use 0.1) (default: 0.5)
  -sl, --stop-loss <stopLoss>  stop-loss percentage, use decimals (for 10% use 0.1) (default: 0.2)
  -i, --interval <interval>    candle interval (e.g. 1m, 5m, 1w) (default: "5m")
  -q, --quote <quote>          quote currency (e.g. BTC, USDT, etc) (default: "USDT")
  -b, --base <base>            base currency (e.g PIVX, etc)
  -t, --total <total>          total amount that you to risk
  -h, --help                   display help for command

Run pump-bot!

$ yarn start -b WIN -q USDT -t 10.5 -p 0.01 -sl 0.01

 /$$$$$$$                                    /$$$$$$$              /$$
| $$__  $$                                  | $$__  $$            | $$
| $$  \ $$ /$$   /$$ /$$$$$$/$$$$   /$$$$$$ | $$  \ $$  /$$$$$$  /$$$$$$
| $$$$$$$/| $$  | $$| $$_  $$_  $$ /$$__  $$| $$$$$$$  /$$__  $$|_  $$_/
| $$____/ | $$  | $$| $$ \ $$ \ $$| $$  \ $$| $$__  $$| $$  \ $$  | $$
| $$      | $$  | $$| $$ | $$ | $$| $$  | $$| $$  \ $$| $$  | $$  | $$ /$$
| $$      |  $$$$$$/| $$ | $$ | $$| $$$$$$$/| $$$$$$$/|  $$$$$$/  |  $$$$/
|__/       \______/ |__/ |__/ |__/| $$____/ |_______/  \______/    \___/
                                  | $$
                                  | $$
                                  |__/

Made in Italy with ❤ :: Version 1.0.0
                      -> USE AT YOUR OWN RISK <-

1617399628169 Command-line input received:
   Interval:  5m
   Pair:      WINUSDT
   Total:     10.5
   Profit:    2%
   Stop-loss: 1%
1617399628169 Starting Pump-Bot...
1617399628634 > MKT PRICE: 0.00056949
1617399628635 Working with pair WINUSDT threshold is 10.1 USDT
1617399628635 I will buy 18438 WIN for 10.50025662 USDT
1617399628985 > BUY FILLED orderId 88959586 :: Quantity 18438.00000000 Total 10.50007224 (0.000569)
1617399629261 > BALANCE 11.53082040 USDT :: 36908.00000000 WIN
1617399629507 > MIN PRICE in 5m was 0.00056736
1617399629507 > STOP-LOSS PRICE 0.000563
1617399629751 > SELL-OCO EXECUTING orderListId 22387831 :: Quantity 18438
1617399629751   > STOP_LOSS_LIMIT NEW orderId 88959599 :: Price 0.00056300
1617399629751   > LIMIT_MAKER     NEW orderId 88959600 :: Price 0.00057900
1617399630008 > BALANCE 11.53082040 USDT :: 18470.00000000 WIN

RESULTS
  Buy price:    0.000569 WIN
  Sell price:   0.000579 WIN
  Stop price:   0.000563 WIN
  Est. profit:  0.175602 USDT (2%)
  Est. loss:    0.119406 USDT (1%)

Done, good luck my friend...

Logic flow

  1. Retrieve market price
  2. Calculate quantity (amount / market price)
  3. Buy calculated quantity at market price
  4. Retrieve lower price in last candle with specified interval
  5. Calculate sell price (lower price + profit)
  6. Place sell and limit orders

Known issues

Be sure that total buy, sell and stop-loss prices are higher than minimum order threshold (should be 10USDT or 0.0001BTC). The software will do some checks and adjustment, but is better if you manage these values manually.

Examples:

  • 10 USDT of investment with 10% stop-loss is wrong, 9 USDT is less than 10 USDT threshold.
  • 9 USDT of investment is wrong, 9 USDT is less than 10 USDT threshold.

Donations

  • BTC: 1LXEJ4YAJh3MN7UnC9wpEUyFBTyTePRM2w
  • ETH: 0x4B2A0cd094D8a3E282f14fECe07817B7449bbf9d
  • XMR: 45GHnspRymU3wagMGwx4vZiPQnBVFDuF3bL7qbfUx1kZajuiGZtVkKdBraPjb1gjTc4GPSvhC8owvPa7smZzmyxAGLh5kjA

Notes

USE AT YOUR OWN RISK!

pump-bot's People

Contributors

avalla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pump-bot's Issues

Sale order is unsuccessful

Hi, I appreciate your great work.
Recently discover your bot and I´m impress. But actually I have a problem. When execute the order, it´s only send to binance the buy order but not the sell order.

This is my configuration:

thresholds:
BTC: 0.0001
USDT: 15
binance:
api_key: "JIMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
api_secret: "a5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
defaults:
profit: 0.1
stopLoss: 0.2
interval: "5m"
quote: "USDT"

And this is my order

[C:\Users\M1\Documents\Binance\pump-bot-main]$ yarn start -b BAND -q USDT -t 15 -p 0.01 -sl 0.02
yarn run v1.22.17
$ node program.js -b BAND -q USDT -t 15 -p 0.01 -sl 0.02

/$$$$$$$ /$$$$$$$ /$$
| $$__ $$ | $$__ $$ | $$
| $$ \ $$ /$$ /$$ /$$$$$$/$$$$ /$$$$$$ | $$ \ $$ /$$$$$$ /$$$$$$
| $$$$$$$/| $$ | $$| $$_ $$_ $$ /$$__ $$| $$$$$$$ /$$__ $$|_ $$/
| $$
/ | $$ | $$| $$ \ $$ \ $$| $$ \ $$| $$__ $$| $$ \ $$ | $$
| $$ | $$ | $$| $$ | $$ | $$| $$ | $$| $$ \ $$| $$ | $$ | $$ /$$
| $$ | $$$$$$/| $$ | $$ | $$| $$$$$$$/| $$$$$$$/| $$$$$$/ | $$$$/
|/ _/ |/ |/ |_/| $$
/ |______/ __/ _/
| $$
| $$
|
/

Made in Italy with G¥ñ :: Version 1.0.0

                  -> USE AT YOUR OWN RISK <-

1635478314813 Command-line input received:
Interval: 5m
Pair: BANDUSDT
Total: 15
Profit: 1%
Stop-loss: 2%
1635478314814 Starting Pump-Bot...
1635478315092 > MKT PRICE: 8.52600000 { BANDUSDT: '8.52600000' }
1635478315094 Working with pair BANDUSDT threshold is 15 USDT
1635478315094 I will buy 2 BAND for 17.052 USDT
1635478315594 > MKT BUY FILLED orderId 807917910 :: Quantity 2.00000000 Total 17.05400000 (8.527)
1635478316237 > BALANCE 4.97951064 USDT :: 2.00000000 BAND
1635478316402 > MIN PRICE in 5m was 8.46700000
1635478316575 > OPEN PRICE 24hours ago was 8.49400000
1635478316575 Current variation is 0.38%
1635478316575 > SELL PRICE 8.55167
1635478316576 > STOP-LOSS PRICE 8.35646

Sorry, there was an error

Please check on binance if there are open orders!!!!

{"code":-1013,"msg":"Filter failure: PRICE_FILTER"}

Done, good luck my friend...
Done in 2.65s.

[C:\Users\M1\Documents\Binance\pump-bot-main]$

Thanks in advance

error: required option '-b, --base <base>' not specified

Hi, thank you so much for this script.
I keep getting the message error : required option '-b, --base <base>' not specified
I've used both commands npm start -b WIN -q USDT -t 10.5 -p 0.01 -sl 0.01 and npm start -b WIN -q USDT is this a bug or something wrong with the commands?

EDIT : never mind I fixed the code :)

Having Buy as Market and Sell at Limit

Hey!

Again thank you for a great bot, it looks good and im looking to use it on a pump this Thursday.

From looking at alot of the pumps, I have seen the following as one of the better ways to make sure you can maintain a pump:

1. Buying:

Alot of places recommend using the Market and a 75% Buy in order to get the fastest buy. It goes something like this:

  1. Select Market Order
  2. Click on Percent of your total BTC (100% can result in errors, 75% is recommended)
  3. Click Buy to complete trade

image

2. Selling

It is recommended to do a Limit order BUT, I appreciate that can be a pain as it does require a manual limit being set. I guess it could be worked out?

Limit (Recommended):

  1. Select Limit Order
  2. Enter Price or click from the Ask Order Book (red)
  3. Click 100% on the Slider
  4. Press Sell and check your order fills.

BUT as it can be tricky to set the limit, Market would work I believe simlar to what you have setup?

Market:

  1. Select Market Order
  2. Click 100% then press Sell when price is above your average Buy

image

Of course,t his is how its done via Binacne itself, but do you think this is better? if so maybe there could be an option to what you would like your buy and sell setup as? (so market and a % etc.)

What are your thoughts?

Also do you hgave a discord etc. for the bot?

Cannot Find Module in Main.js

Hey,

I came across your bot and liked the look of it however when I run it, I get the following:

yarn start -b WIN -q USDT -t 10.5 -p 0.01 -sl 0.01
yarn run v1.22.10
$ node main.js -b WIN -q USDT -t 10.5 -p 0.01 -sl 0.01
internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'C:\Users\Darth\Documents\work\pump-bot\main.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Any idea? I cant find a main.js?

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.