Module: Glassnode::RESTv1Market

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

Instance Method Summary collapse

Instance Method Details

#amer_30d_price_change(params = {}) ⇒ Object

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



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

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

#apac_30d_price_change(params = {}) ⇒ Object

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



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

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

#deltacap_usd(params = {}) ⇒ Object

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



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

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

#emea_30d_price_change(params = {}) ⇒ Object

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



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

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

#marketcap_realized_usd(params = {}) ⇒ Object

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



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

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

#marketcap_usd(params = {}) ⇒ Object

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



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

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

#mvrv(params = {}) ⇒ Object

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



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

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

#mvrv_less_155(params = {}) ⇒ Object

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



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

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

#mvrv_more_155(params = {}) ⇒ Object

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



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

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

#mvrv_z_score(params = {}) ⇒ Object

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



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

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

#price_drawdown_relative(params = {}) ⇒ Object

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



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

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

#price_realized_usd(params = {}) ⇒ Object

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



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

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

#price_usd(params = {}) ⇒ Object

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



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

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

#price_usd_close(params = {}) ⇒ Object

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



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

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

#price_usd_ohlc(params = {}) ⇒ Object

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



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

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