java.lang.Object
com.binance.connector.client.impl.spot.Mining

public class Mining extends Object

Mining Endpoints

All endpoints under the Mining Endpoint section of the API documentation will be implemented in this class.
Response will be returned in String format.
  • Constructor Details

    • Mining

      public Mining(String baseUrl, String apiKey, String secretKey, boolean showLimitUsage)
  • Method Details

    • algorithm

      public String algorithm(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/pub/algoList
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#acquiring-algorithm-user_data
    • coinName

      public String coinName(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/pub/coinList
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#acquiring-coinname-user_data
    • detailMinerList

      public String detailMinerList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/worker/detail
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      algo -- mandatory/string -- sha256
      userName -- mandatory/string -- Mining account
      workerName -- mandatory/string -- Miner's name(required)
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#request-for-detail-miner-list-user_data
    • minerList

      public String minerList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/worker/list
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      algo -- mandatory/string -- sha256
      userName -- mandatory/string -- Mining account
      pageIndex -- optional/int -- Page number,default is first page,start form 1
      sort -- optional/int -- sort sequence(default=0)0 positive sequence, 1 negative sequence
      sortColumn -- optional/int -- Sort by( default 1): 1: miner name, 2: real-time computing power, 3: daily average computing power, 4: real-time rejection rate, 5: last submission time
      workerStatus -- optional/int -- miners status(default=0)0 all,1 valid,2 invalid,3 failure
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#request-for-miner-list-user_data
    • earningList

      public String earningList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/payment/list
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      algo -- mandatory/string -- sha256
      userName -- mandatory/string -- Mining account
      coin -- optional/string
      startDate -- optional/long -- Search date, millisecond timestamp, while empty query all
      endDate -- optional/long -- Search date, millisecond timestamp, while empty query all
      pageIndex -- optional/int -- Page number, empty default first page, starting from 1
      pageSize -- optional/int -- Number of pages, minimum 10, maximum 200
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#earnings-list-user_data
    • bonusList

      public String bonusList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/payment/other
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      algo -- mandatory/string -- sha256
      userName -- mandatory/string -- Mining account
      coin -- optional/string
      startDate -- optional/long -- Search date, millisecond timestamp, while empty query all
      endDate -- optional/long -- Search date, millisecond timestamp, while empty query all
      pageIndex -- optional/int -- Page number, empty default first page, starting from 1
      pageSize -- optional/int -- Number of pages, minimum 10, maximum 200
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#extra-bonus-list-user_data
    • hashrateResaleList

      public String hashrateResaleList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/hash-transfer/config/details/list
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      pageIndex -- optional/int -- Page number, empty default first page, starting from 1
      pageSize -- optional/int -- Number of pages, minimum 10, maximum 200
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#hashrate-resale-list-user_data
    • hashrateResaleDetail

      public String hashrateResaleDetail(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/hash-transfer/profit/details
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      configId -- mandatory/int -- Mining ID
      userName -- mandatory/string -- Mining Account
      pageIndex -- optional/int -- Page number, empty default first page, starting from 1
      pageSize -- optional/int -- Number of pages, minimum 10, maximum 200
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#hashrate-resale-detail-user_data
    • hashrateResaleRequest

      public String hashrateResaleRequest(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/hash-transfer/config
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      userName -- mandatory/string -- Mining Account
      algo -- mandatory/string -- Transfer algorithm(sha256)
      endDate -- mandatory/long -- Resale End Time (Millisecond timestamp)
      startDate -- mandatory/long -- Resale Start Time(Millisecond timestamp)
      toPoolUser -- mandatory/string -- Mining Account
      hashRate -- mandatory/long -- Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000)
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#hashrate-resale-request-user_data
    • cancelHashrateResaleConfig

      public String cancelHashrateResaleConfig(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/hash-transfer/config/cancel
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      configId -- mandatory/int -- Mining ID
      userName -- mandatory/string -- Mining Account
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#cancel-hashrate-resale-configuration-user_data
    • statsticsList

      public String statsticsList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/statistics/user/status
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      algo -- mandatory/string -- Algorithm(sha256)
      userName -- mandatory/string -- Mining Account
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#statistic-list-user_data
    • accountList

      public String accountList(LinkedHashMap<String,​Object> parameters)
      GET /sapi/v1/mining/statistics/user/list
      Parameters:
      parameters - LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter

      algo -- mandatory/string -- Algorithm(sha256)
      userName -- mandatory/string -- Mining Account
      recvWindow -- optional/long
      Returns:
      String
      See Also:
      https://binance-docs.github.io/apidocs/spot/en/#account-list-user_data