Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

NiceHash_API

NiceHash API implementation in Delphi

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

NiceHash_API

NiceHash API implementation in Delphi. This was made at version 1.2.7. If any new function is created, ask me to add it or you can contribute yourself.

Requirements

This library requires OpenSSL to work, you can download the dll Here. Put respective dll close to binary file

Uses

You can use the library from the file NiceHashAPI.pas

pascal
NiceHashAPI in 'NiceHashAPI.pas'

Functions

There are two types of function available

Public Functions

These function don't require instance of class and can be called as NiceAPI.GetBuyInfo

pascal
class function GetAPIDetail: String;
class function GetVersion: String;
pascal
class function GetStatsGlobalCurrent: String;
class function GetStatsGlobal24H: String;
pascal
class function GetStatsProvider(BTCAddr: String): String;
class function GetStatsProviderEx(BTCAddr: String;
  From: Integer = 0): String;
class function GetStatsProviderPayments(BTCAddr: String;
  From: Integer = 0): String;
class function GetStatsProviderWorkers(BTCAddr: String;
  Algorithm: ALGORITHM_AVAILABLE): String;
pascal
class function GetOrders(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE): String;
pascal
class function GetMultiAlgorithmsInfo: String;
class function GetSimpleMultiAlgorithmsInfo: String;
pascal
class function GetBuyInfo: String;

Private Functions

These functions require instance of class to be made as Client = NiceAPI.Create('ID', 'KEY') and are called as Client.GetBalance

pascal
function GetMyOrders(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE): String;
pascal
function CreateOrder(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE; Amount, Price, Limit: double;
  PoolHost, PoolPort, PoolUser, PoolPass: String;
  Code: String = ''): String;
function RefillOrder(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE; OrderId: String; Amount: double): String;
function RemoveOrder(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE; OrderId: String): String;
pascal
function SetNewPrice(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE; OrderId: String; Price: double): String;
function DecreasePrice(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE; OrderId: String): String;
pascal
function SetNewLimit(Location: LOCATION_AVAILABLE;
  Algorithm: ALGORITHM_AVAILABLE; OrderId: String; Limit: double): String;
pascal
function GetBalance: String;

NiceHash Documentation link

Link to NiceHash Documentation: Here