All URIs are relative to https://api.cryptoweather.ai
Method | HTTP request | Description |
---|---|---|
v1_public_price_change_symbol_get | GET /v1/public/price-change/{symbol} | Price Change |
v1_public_price_current_symbol_get | GET /v1/public/price-current/{symbol} | Price Current |
v1_public_price_history_symbol_period_interval_get | GET /v1/public/price-history/{symbol}/{period}/{interval} | Price History |
v1_public_summary_get | GET /v1/public/summary | Summary |
v1_public_symbols_get | GET /v1/public/symbols | Symbols |
v1_public_trend_symbol_get | GET /v1/public/trend/{symbol} | Trend |
PublicPriceChangeResponse v1_public_price_change_symbol_get(symbol)
Price Change
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PublicApi.new
symbol = 'btc' # String | The cryptocurrency symbol.
begin
#Price Change
result = api_instance.v1_public_price_change_symbol_get(symbol)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PublicApi->v1_public_price_change_symbol_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | The cryptocurrency symbol. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
PublicPriceCurrentResponse v1_public_price_current_symbol_get(symbol)
Price Current
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PublicApi.new
symbol = 'btc' # String | The cryptocurrency symbol, provide `all` to get every symbol.
begin
#Price Current
result = api_instance.v1_public_price_current_symbol_get(symbol)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PublicApi->v1_public_price_current_symbol_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | The cryptocurrency symbol, provide `all` to get every symbol. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
PublicPriceHistoryResponse v1_public_price_history_symbol_period_interval_get(symbol, period, interval)
Price History
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PublicApi.new
symbol = 'btc' # String | The cryptocurrency symbol, provide `all` to get every symbol.
period = '30d' # String | The period to get data for, such as past 30 days.
interval = '1d' # String | The bar interval, such as 1 day.
begin
#Price History
result = api_instance.v1_public_price_history_symbol_period_interval_get(symbol, period, interval)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PublicApi->v1_public_price_history_symbol_period_interval_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | The cryptocurrency symbol, provide `all` to get every symbol. | |
period | String | The period to get data for, such as past 30 days. | |
interval | String | The bar interval, such as 1 day. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
PublicSummaryResponse v1_public_summary_get
Summary
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PublicApi.new
begin
#Summary
result = api_instance.v1_public_summary_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PublicApi->v1_public_summary_get: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
PublicSymbolsResponse v1_public_symbols_get
Symbols
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PublicApi.new
begin
#Symbols
result = api_instance.v1_public_symbols_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PublicApi->v1_public_symbols_get: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
PublicTrendResponse v1_public_trend_symbol_get(symbol)
Trend
The trend response contains a collection of forecasts for different intervals with the following attributes. + time_start
start time of the period the forecast is applicable for + time_end
end time of the period the forecast is applicable for + interval
interval in hours that the forecast is applicable for + weighted_price
forecasted weighted price during the period + change_pct
percent change in price for forecasted weighted_price relative to current price + change_usd
dollar change in price for forecasted weighted_price relative to current price
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PublicApi.new
symbol = 'btc' # String | The cryptocurrency symbol.
begin
#Trend
result = api_instance.v1_public_trend_symbol_get(symbol)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PublicApi->v1_public_trend_symbol_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | The cryptocurrency symbol. |
No authorization required
- Content-Type: Not defined
- Accept: application/json