module Binance::Spot::Mining
def mining_account_list(algo:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Account-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- -
algo
(String
) --
def mining_account_list(algo:, userName:, **kwargs) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('userName', userName) @session.sign_request(:get, '/sapi/v1/mining/statistics/user/list', params: kwargs.merge( algo: algo, userName: userName )) end
def mining_algo_list
- See: https://developers.binance.com/docs/mining/rest-api/Acquiring-Algorithm -
def mining_algo_list @session.limit_request(path: '/sapi/v1/mining/pub/algoList') end
def mining_coin_list
- See: https://developers.binance.com/docs/mining/rest-api/Acquiring-CoinName -
def mining_coin_list @session.limit_request(path: '/sapi/v1/mining/pub/coinList') end
def mining_extra_bonus(algo:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Extra-Bonus-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:pageSize
(Integer
) -- Number of pages, minimum 10, maximum 200 -
:pageIndex
(Integer
) -- Page number, empty default first page, starting from 1 -
:endDate
(Integer
) -- Search date, millisecond timestamp, while empty query all -
:startDate
(Integer
) -- Search date, millisecond timestamp, while empty query all -
:coin
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- -
algo
(String
) --
def mining_extra_bonus(algo:, userName:, **kwargs) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('userName', userName) @session.sign_request(:get, '/sapi/v1/mining/payment/other', params: kwargs.merge( algo: algo, userName: userName )) end
def mining_resale_cancel(configId:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Cancel-hashrate-resale-configuration -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- Mining Account -
configId
(String
) -- Mining ID
def mining_resale_cancel(configId:, userName:, **kwargs) Binance::Utils::Validation.require_param('userName', userName) Binance::Utils::Validation.require_param('configId', configId) @session.sign_request(:post, '/sapi/v1/mining/hash-transfer/config/cancel', params: kwargs.merge( configId: configId, userName: userName )) end
def mining_resale_detail(configId:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-Detail -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:pageSize
(Integer
) -- Number of pages, minimum 10, maximum 200 -
:pageIndex
(Integer
) -- Page number, empty default first page, starting from 1
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- Mining Account -
configId
(String
) -- Mining ID
def mining_resale_detail(configId:, userName:, **kwargs) Binance::Utils::Validation.require_param('configId', configId) Binance::Utils::Validation.require_param('userName', userName) @session.sign_request(:get, '/sapi/v1/mining/hash-transfer/profit/details', params: kwargs.merge( configId: configId, userName: userName )) end
def mining_resale_list(**kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:pageSize
(Integer
) -- Number of pages, minimum 10, maximum 200 -
:pageIndex
(Integer
) -- Page number, empty default first page, starting from 1
Parameters:
-
kwargs
(Hash
) --
def mining_resale_list(**kwargs) @session.sign_request(:get, '/sapi/v1/mining/hash-transfer/config/details/list', params: kwargs) end
def mining_resale_request(userName:, algo:, startDate:, endDate:, toPoolUser:, hashRate:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-Request -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
hashRate
(Integer
) -- Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000) -
toPoolUser
(Integer
) -- Mining Account -
endDate
(Integer
) -- Number of pages, minimum 10, maximum 200 -
startDate
(Integer
) -- Resale End Time (Millisecond timestamp) -
algo
(String
) -- Transfer algorithm(sha256) -
userName
(String
) -- Mining Account
def mining_resale_request(userName:, algo:, startDate:, endDate:, toPoolUser:, hashRate:, **kwargs) Binance::Utils::Validation.require_param('userName', userName) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('startDate', startDate) Binance::Utils::Validation.require_param('endDate', endDate) Binance::Utils::Validation.require_param('toPoolUser', toPoolUser) Binance::Utils::Validation.require_param('hashRate', hashRate) @session.sign_request(:post, '/sapi/v1/mining/hash-transfer/config', params: kwargs.merge( userName: userName, algo: algo, startDate: startDate, endDate: endDate, toPoolUser: toPoolUser, hashRate: hashRate )) end
def mining_revenue_list(algo:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Earnings-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:pageSize
(Integer
) -- -
:pageIndex
(Integer
) -- -
:endDate
(Integer
) -- -
:startDate
(Integer
) -- -
:coin
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- -
algo
(String
) --
def mining_revenue_list(algo:, userName:, **kwargs) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('userName', userName) @session.sign_request(:get, '/sapi/v1/mining/payment/list', params: kwargs.merge( algo: algo, userName: userName )) end
def mining_statistics_list(algo:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Statistic-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- -
algo
(String
) --
def mining_statistics_list(algo:, userName:, **kwargs) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('userName', userName) @session.sign_request(:get, '/sapi/v1/mining/statistics/user/status', params: kwargs.merge( algo: algo, userName: userName )) end
def mining_worker(algo:, userName:, workerName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Request-for-Detail-Miner-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
workerName
(String
) -- -
userName
(String
) -- -
algo
(String
) --
def mining_worker(algo:, userName:, workerName:, **kwargs) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('userName', userName) Binance::Utils::Validation.require_param('workerName', workerName) @session.sign_request(:get, '/sapi/v1/mining/worker/detail', params: kwargs.merge( algo: algo, userName: userName, workerName: workerName )) end
def mining_worker_list(algo:, userName:, **kwargs)
- See: https://developers.binance.com/docs/mining/rest-api/Request-for-Miner-List -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:workerStatus
(String
) -- -
:sortColumn
(String
) -- -
:sort
(String
) -- -
:pageIndex
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
userName
(String
) -- -
algo
(String
) --
def mining_worker_list(algo:, userName:, **kwargs) Binance::Utils::Validation.require_param('algo', algo) Binance::Utils::Validation.require_param('userName', userName) @session.sign_request(:get, '/sapi/v1/mining/worker/list', params: kwargs.merge( algo: algo, userName: userName )) end