Module: Glassnode::RESTv1Fees

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

Instance Method Summary collapse

Instance Method Details

#exchanges_mean(params = {}) ⇒ Object

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



126
127
128
# File 'lib/rest/v1/fees.rb', line 126

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

#exchanges_relative(params = {}) ⇒ Object

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



108
109
110
# File 'lib/rest/v1/fees.rb', line 108

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

#exchanges_sum(params = {}) ⇒ Object

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



117
118
119
# File 'lib/rest/v1/fees.rb', line 117

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

#fee_ratio_multiple(params = {}) ⇒ Object

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



99
100
101
# File 'lib/rest/v1/fees.rb', line 99

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

#gas_limit_tx_mean(params = {}) ⇒ Object

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



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

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

#gas_limit_tx_median(params = {}) ⇒ Object

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



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

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

#gas_price_mean(params = {}) ⇒ Object

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



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

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

#gas_price_median(params = {}) ⇒ Object

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



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

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

#gas_used_mean(params = {}) ⇒ Object

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



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

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

#gas_used_median(params = {}) ⇒ Object

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



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

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

#gas_used_sum(params = {}) ⇒ Object

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



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

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

#tx_types_breakdown_relative(params = {}) ⇒ Object

Tier: 3 Params a: asset symbol c: ["NATIVE"] i: ["24h"]



144
145
146
# File 'lib/rest/v1/fees.rb', line 144

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

#tx_types_breakdown_sum(params = {}) ⇒ Object

Tier: 3 Params a: asset symbol c: ["NATIVE"] i: ["24h"]



135
136
137
# File 'lib/rest/v1/fees.rb', line 135

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

#volume_mean(params = {}) ⇒ Object

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



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

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

#volume_median(params = {}) ⇒ Object

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



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

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

#volume_sum(params = {}) ⇒ Object

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



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

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