GithubHelp home page GithubHelp logo

b10c77 / binance-dumper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andreihq/binance-dumper

0.0 2.0 0.0 19 KB

Script that attempts to sell the position at best price during the first candle when trading starts on Binance.

JavaScript 100.00%

binance-dumper's Introduction

binance-dumper

Script that attempts to sell the position at best price during the first candle when trading starts on Binance.

Requirements

Node v10.15+

Instructions

  1. Install npm depedencies.
    npm install
  2. Configure script parameters. (See below)
  3. Run the script
    npm start config.json
    or
    node index.js config.json

Script Configuration

Configuration file config.json must be supplied as first argument to the script. Script is configurable using following parameters:

Name Type Description
apiKey STRING Your Binance API Key.
apiSecret STRING Your Binance API Secret.
symbol STRING Pair that you want to trade (ex. "BTCUSDT").
tradingStartTime NUMBER start time (in miliseconds) when trading is suppose to start.
sellQuantity DECIMAL The size of your position you are trying to sell.
minSellPrice DECIMAL The minimum price. Script won't place orders below this price.
startingPrice DECIMAL The first order price. Script uses this price to place the first order when trading opens and order book is empty.
priceDelta DECIMAL Price difference (expressed in percentage) between order price and current best price when script adjusts order price to match current bid. Example: If we set priceDelta = 0.03 and current order price is 100$, when best bid price moves below 97$ (3%), the old order will be cancelled and new order will be created with the price set to current bid.
limitDepth DECIMAL Defines how deep into order book the limit order sell price is set. For example, if current best bid is 100, setting limitDepth to 0.05, will place limit order with sell price of 95. (5% deep into the order book from the best bid)

binance-dumper's People

Contributors

andreihq avatar

Watchers

Block77 avatar James Cloos 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.