Git Product home page Git Product logo

nicehashbot's Introduction

My fork

This is my fork that has fixed NullPointerExeption when invoking Handler that contains try/catch. I also added two custom handlers, one is for profitable mining of ZCash and second is for Monero.

NiceHashBot

NiceHash bot for automatic order management.

Features

  • Create new orders (including when 2FA is turned on)
  • Automatically manage orders for:
    • price adjustment - keep price as low as possible and sustain wanted speed, but keep price below max specified
    • refilling - automatically refill order when it is nearly depleted
    • re-creation - automatically create new order if order is removed by the system (timeout or any other reason)
  • Ability to adjust max price and speed limit for each monitored order
  • Pool manager to easily define new pools, remove them or use for orders
  • Console window showing all important events or errors
  • Custom order handlers

Instructions on how to run

  • Download binaries from here: https://github.com/nicehash/NiceHashBot/releases
  • Extract zip archive
  • Run NiceHashBot.exe
  • Note: .NET Framework 2.0 or higher is required. No additional installations are needed if you use Windows 7 or later. Install .NET Framework 2.0 if you use Windows XP or lower.

Instructions on how to compile

  • Use Visual Studio 2010 or later
  • Open project in Visual Studio
  • Rebuild & run

For programmers

You can easily create your own bot software by reusing this code. NiceHashBotLib is the core of everything - modifications of this library should not be needed. Examine NiceHashBot project to see how NiceHashBotLib is used. You can create your own bot with little coding knowledge by just calling certain methods of OrderInstance class such as 'SetMaximalPrice', 'SetLimit' and 'Stop'. With these methods you have full control of what is happening with the order - NiceHashBotLib takes care of evaluating current orders and adjusting lowest possible price.

How to create custom order handler?

NiceHashBot allows you to programmatically adjust 'MaxPrice' and 'Limit' for each order by creating custom C# DLL. Take a look at existing example: https://github.com/nicehash/NiceHashBot/blob/master/src/HandlerExample/HandlerClass.cs

DLL has to contain class 'HandlerClass' and public static method 'HandleOrder' inside that class. Method 'HandleOrder' is called two times per second. It gets parameters statistics of order, current maximal price and current speed limit. Inside the method, you should perform all the logic related to calculation of maximal price and speed limit. After you finish with calculation, just assign new numbers to 'MaxPrice' and/or 'NewLimit' or leave them intact, if you do not wish to change them. The provided example shows, how this is done by calling CoinWarz API, deserializing JSON and setting maximal price according to performed profitability calculation.

You can easily create own order handler. You need to have Visual Studio 2010 or later. Make copy of HandlerExample project (optionally you can rename it), modify code inside 'HandleOrder' method. You can add your own classes, methods and properties, just remember that 'HandleOrder' is called twice per second when NiceHashBot is running and you have set this handler to be order handler for your order. When finished with programming, rebuild project to create DLL. Use this DLL as order handler.

nicehashbot's People

Contributors

amacar avatar kenshirothefist avatar raskal8 avatar ctubio avatar

Watchers

James Cloos avatar

Forkers

infernoman

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.