Module: Glassnode::RESTv1Mining

Included in:
RESTv1
Defined in:
lib/rest/v1/mining.rb

Instance Method Summary collapse

Instance Method Details

#difficulty_latest(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1month", "1w"]



18
19
20
# File 'lib/rest/v1/mining.rb', line 18

def difficulty_latest(params={})
  authenticated_get("metrics/mining/difficulty_latest", params: params).body
end

#difficulty_mean(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1month", "1w"]



9
10
11
# File 'lib/rest/v1/mining.rb', line 9

def difficulty_mean(params={})
  authenticated_get("metrics/mining/difficulty_mean", params: params).body
end

#hash_rate_mean(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1month", "1w"]



27
28
29
# File 'lib/rest/v1/mining.rb', line 27

def hash_rate_mean(params={})
  authenticated_get("metrics/mining/hash_rate_mean", params: params).body
end

#marketcap_thermocap_ratio(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h"]



81
82
83
# File 'lib/rest/v1/mining.rb', line 81

def marketcap_thermocap_ratio(params={})
  authenticated_get("metrics/mining/marketcap_thermocap_ratio", params: params).body
end

#miners_outflow_multiple(params = {}) ⇒ Object

Tier: 3 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m"]



63
64
65
# File 'lib/rest/v1/mining.rb', line 63

def miners_outflow_multiple(params={})
  authenticated_get("metrics/mining/miners_outflow_multiple", params: params).body
end

#miners_unspent_supply(params = {}) ⇒ Object

Tier: 3 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1month", "1w", "24h", "1h", "10m"]



90
91
92
# File 'lib/rest/v1/mining.rb', line 90

def miners_unspent_supply(params={})
  authenticated_get("metrics/mining/miners_unspent_supply", params: params).body
end

#revenue_from_fees(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m"]



45
46
47
# File 'lib/rest/v1/mining.rb', line 45

def revenue_from_fees(params={})
  authenticated_get("metrics/mining/revenue_from_fees", params: params).body
end

#revenue_sum(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h"]



36
37
38
# File 'lib/rest/v1/mining.rb', line 36

def revenue_sum(params={})
  authenticated_get("metrics/mining/revenue_sum", params: params).body
end

#thermocap(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["USD"] i: ["1h", "24h"]



72
73
74
# File 'lib/rest/v1/mining.rb', line 72

def thermocap(params={})
  authenticated_get("metrics/mining/thermocap", params: params).body
end

#volume_mined_sum(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m"]



54
55
56
# File 'lib/rest/v1/mining.rb', line 54

def volume_mined_sum(params={})
  authenticated_get("metrics/mining/volume_mined_sum", params: params).body
end