coinmarketcap_client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -9
- data/docs/{Info.md → CryptocurrencyInfo.md} +2 -2
- data/docs/{InfoUrls.md → CryptocurrencyInfoUrls.md} +1 -1
- data/docs/{MarketData.md → CryptocurrencyListings.md} +1 -1
- data/docs/{Map.md → CryptocurrencyMap.md} +1 -1
- data/docs/DefaultApi.md +146 -22
- data/docs/GlobalMetricsHistoricalQuote.md +10 -0
- data/docs/GlobalMetricsQuote.md +10 -0
- data/docs/GlobalMetricsQuotesHistorical.md +10 -0
- data/docs/GlobalMetricsQuotesLatest.md +14 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2004Data.md +8 -0
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +9 -0
- data/docs/InlineResponse2007.md +9 -0
- data/docs/InlineResponse2008.md +9 -0
- data/docs/InlineResponse2009.md +9 -0
- data/docs/Quote.md +1 -1
- data/lib/coinmarketcap_client.rb +13 -4
- data/lib/coinmarketcap_client/api/default_api.rb +150 -26
- data/lib/coinmarketcap_client/models/{info.rb → cryptocurrency_info.rb} +2 -2
- data/lib/coinmarketcap_client/models/{info_urls.rb → cryptocurrency_info_urls.rb} +1 -1
- data/lib/coinmarketcap_client/models/{market_data.rb → cryptocurrency_listings.rb} +1 -1
- data/lib/coinmarketcap_client/models/{map.rb → cryptocurrency_map.rb} +1 -1
- data/lib/coinmarketcap_client/models/global_metrics_historical_quote.rb +202 -0
- data/lib/coinmarketcap_client/models/global_metrics_quote.rb +202 -0
- data/lib/{coinmarketcap_api/models/inline_response_200_3.rb → coinmarketcap_client/models/global_metrics_quotes_historical.rb} +30 -11
- data/lib/{coinmarketcap_api/models/map.rb → coinmarketcap_client/models/global_metrics_quotes_latest.rb} +49 -55
- data/lib/coinmarketcap_client/models/inline_response_200.rb +1 -1
- data/lib/coinmarketcap_client/models/inline_response_200_1.rb +1 -1
- data/lib/coinmarketcap_client/models/inline_response_200_2.rb +1 -1
- data/lib/coinmarketcap_client/models/inline_response_200_3.rb +2 -4
- data/lib/coinmarketcap_client/models/inline_response_200_4.rb +2 -4
- data/lib/{coinmarketcap_api/models/inline_response_200_1.rb → coinmarketcap_client/models/inline_response_200_4_data.rb} +11 -11
- data/lib/coinmarketcap_client/models/inline_response_200_5.rb +1 -1
- data/lib/{coinmarketcap_api/models/inline_response_200_2.rb → coinmarketcap_client/models/inline_response_200_6.rb} +5 -5
- data/lib/{coinmarketcap_api/models/inline_response_200.rb → coinmarketcap_client/models/inline_response_200_7.rb} +4 -4
- data/lib/{coinmarketcap_api/models/inline_response_default_1.rb → coinmarketcap_client/models/inline_response_200_8.rb} +13 -4
- data/lib/{coinmarketcap_api/models/inline_response_default.rb → coinmarketcap_client/models/inline_response_200_9.rb} +13 -4
- data/lib/coinmarketcap_client/models/quote.rb +1 -1
- data/lib/coinmarketcap_client/version.rb +1 -1
- data/spec/api/default_api_spec.rb +71 -6
- data/spec/api_client_spec.rb +29 -29
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{info_spec.rb → cryptocurrency_info_spec.rb} +6 -6
- data/spec/models/{info_urls_spec.rb → cryptocurrency_info_urls_spec.rb} +6 -6
- data/spec/models/{market_data_spec.rb → cryptocurrency_listings_spec.rb} +6 -6
- data/spec/models/{map_spec.rb → cryptocurrency_map_spec.rb} +6 -6
- data/spec/models/global_metrics_historical_quote_spec.rb +53 -0
- data/spec/models/global_metrics_quote_spec.rb +53 -0
- data/spec/models/global_metrics_quotes_historical_spec.rb +53 -0
- data/spec/models/global_metrics_quotes_latest_spec.rb +77 -0
- data/spec/models/inline_response_200_1_spec.rb +9 -3
- data/spec/models/inline_response_200_2_spec.rb +3 -3
- data/spec/models/inline_response_200_3_spec.rb +9 -3
- data/spec/models/inline_response_200_4_data_spec.rb +41 -0
- data/spec/models/inline_response_200_4_spec.rb +3 -3
- data/spec/models/inline_response_200_5_spec.rb +3 -3
- data/spec/models/inline_response_200_6_spec.rb +47 -0
- data/spec/models/inline_response_200_7_spec.rb +47 -0
- data/spec/models/inline_response_200_8_spec.rb +47 -0
- data/spec/models/inline_response_200_9_spec.rb +47 -0
- data/spec/models/inline_response_200_spec.rb +3 -3
- data/spec/models/inline_response_default_1_spec.rb +3 -3
- data/spec/models/inline_response_default_spec.rb +3 -3
- data/spec/models/platform_spec.rb +3 -3
- data/spec/models/quote_spec.rb +3 -3
- data/spec/models/status_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +54 -34
- data/lib/coinmarketcap_api.rb +0 -50
- data/lib/coinmarketcap_api/api/default_api.rb +0 -145
- data/lib/coinmarketcap_api/api_client.rb +0 -389
- data/lib/coinmarketcap_api/api_error.rb +0 -38
- data/lib/coinmarketcap_api/configuration.rb +0 -209
- data/lib/coinmarketcap_api/models/info.rb +0 -276
- data/lib/coinmarketcap_api/models/info_urls.rb +0 -263
- data/lib/coinmarketcap_api/models/status.rb +0 -219
- data/lib/coinmarketcap_api/version.rb +0 -15
@@ -29,7 +29,7 @@ module CoinmarketcapClient
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'data' => :'
|
32
|
+
:'data' => :'GlobalMetricsQuotesLatest',
|
33
33
|
:'status' => :'Status'
|
34
34
|
}
|
35
35
|
end
|
@@ -43,9 +43,7 @@ module CoinmarketcapClient
|
|
43
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
44
|
|
45
45
|
if attributes.has_key?(:'data')
|
46
|
-
|
47
|
-
self.data = value
|
48
|
-
end
|
46
|
+
self.data = attributes[:'data']
|
49
47
|
end
|
50
48
|
|
51
49
|
if attributes.has_key?(:'status')
|
@@ -29,7 +29,7 @@ module CoinmarketcapClient
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'data' => :'
|
32
|
+
:'data' => :'InlineResponse2004Data',
|
33
33
|
:'status' => :'Status'
|
34
34
|
}
|
35
35
|
end
|
@@ -43,9 +43,7 @@ module CoinmarketcapClient
|
|
43
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
44
|
|
45
45
|
if attributes.has_key?(:'data')
|
46
|
-
|
47
|
-
self.data = value
|
48
|
-
end
|
46
|
+
self.data = attributes[:'data']
|
49
47
|
end
|
50
48
|
|
51
49
|
if attributes.has_key?(:'status')
|
@@ -12,21 +12,21 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
16
|
-
class
|
17
|
-
attr_accessor :
|
15
|
+
module CoinmarketcapClient
|
16
|
+
class InlineResponse2004Data
|
17
|
+
attr_accessor :quote
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'quote' => :'quote'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'quote' => :'Array<GlobalMetricsQuotesHistorical>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module CoinmarketcapAPI
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'quote')
|
42
|
+
if (value = attributes[:'quote']).is_a?(Array)
|
43
|
+
self.quote = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module CoinmarketcapAPI
|
|
63
63
|
def ==(o)
|
64
64
|
return true if self.equal?(o)
|
65
65
|
self.class == o.class &&
|
66
|
-
|
66
|
+
quote == o.quote
|
67
67
|
end
|
68
68
|
|
69
69
|
# @see the `==` method
|
@@ -75,7 +75,7 @@ module CoinmarketcapAPI
|
|
75
75
|
# Calculates hash code according to all attributes.
|
76
76
|
# @return [Fixnum] Hash code
|
77
77
|
def hash
|
78
|
-
[
|
78
|
+
[quote].hash
|
79
79
|
end
|
80
80
|
|
81
81
|
# Builds the object from hash
|
@@ -135,7 +135,7 @@ module CoinmarketcapAPI
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
else # model
|
138
|
-
temp_model =
|
138
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
139
139
|
temp_model.build_from_hash(value)
|
140
140
|
end
|
141
141
|
end
|
@@ -12,8 +12,8 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
16
|
-
class
|
15
|
+
module CoinmarketcapClient
|
16
|
+
class InlineResponse2006
|
17
17
|
attr_accessor :data
|
18
18
|
|
19
19
|
attr_accessor :status
|
@@ -29,7 +29,7 @@ module CoinmarketcapAPI
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'data' => :'
|
32
|
+
:'data' => :'Hash<String, CryptocurrencyInfo>',
|
33
33
|
:'status' => :'Status'
|
34
34
|
}
|
35
35
|
end
|
@@ -43,7 +43,7 @@ module CoinmarketcapAPI
|
|
43
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
44
|
|
45
45
|
if attributes.has_key?(:'data')
|
46
|
-
if (value = attributes[:'data']).is_a?(
|
46
|
+
if (value = attributes[:'data']).is_a?(Hash)
|
47
47
|
self.data = value
|
48
48
|
end
|
49
49
|
end
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,8 +12,8 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
16
|
-
class
|
15
|
+
module CoinmarketcapClient
|
16
|
+
class InlineResponse2007
|
17
17
|
attr_accessor :data
|
18
18
|
|
19
19
|
attr_accessor :status
|
@@ -29,7 +29,7 @@ module CoinmarketcapAPI
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'data' => :'Array<
|
32
|
+
:'data' => :'Array<CryptocurrencyListings>',
|
33
33
|
:'status' => :'Status'
|
34
34
|
}
|
35
35
|
end
|
@@ -144,7 +144,7 @@ module CoinmarketcapAPI
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
else # model
|
147
|
-
temp_model =
|
147
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
148
148
|
temp_model.build_from_hash(value)
|
149
149
|
end
|
150
150
|
end
|
@@ -12,13 +12,16 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
16
|
-
class
|
15
|
+
module CoinmarketcapClient
|
16
|
+
class InlineResponse2008
|
17
|
+
attr_accessor :data
|
18
|
+
|
17
19
|
attr_accessor :status
|
18
20
|
|
19
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
22
|
def self.attribute_map
|
21
23
|
{
|
24
|
+
:'data' => :'data',
|
22
25
|
:'status' => :'status'
|
23
26
|
}
|
24
27
|
end
|
@@ -26,6 +29,7 @@ module CoinmarketcapAPI
|
|
26
29
|
# Attribute type mapping.
|
27
30
|
def self.swagger_types
|
28
31
|
{
|
32
|
+
:'data' => :'GlobalMetricsQuotesLatest',
|
29
33
|
:'status' => :'Status'
|
30
34
|
}
|
31
35
|
end
|
@@ -38,6 +42,10 @@ module CoinmarketcapAPI
|
|
38
42
|
# convert string to symbol for hash key
|
39
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
44
|
|
45
|
+
if attributes.has_key?(:'data')
|
46
|
+
self.data = attributes[:'data']
|
47
|
+
end
|
48
|
+
|
41
49
|
if attributes.has_key?(:'status')
|
42
50
|
self.status = attributes[:'status']
|
43
51
|
end
|
@@ -61,6 +69,7 @@ module CoinmarketcapAPI
|
|
61
69
|
def ==(o)
|
62
70
|
return true if self.equal?(o)
|
63
71
|
self.class == o.class &&
|
72
|
+
data == o.data &&
|
64
73
|
status == o.status
|
65
74
|
end
|
66
75
|
|
@@ -73,7 +82,7 @@ module CoinmarketcapAPI
|
|
73
82
|
# Calculates hash code according to all attributes.
|
74
83
|
# @return [Fixnum] Hash code
|
75
84
|
def hash
|
76
|
-
[status].hash
|
85
|
+
[data, status].hash
|
77
86
|
end
|
78
87
|
|
79
88
|
# Builds the object from hash
|
@@ -133,7 +142,7 @@ module CoinmarketcapAPI
|
|
133
142
|
end
|
134
143
|
end
|
135
144
|
else # model
|
136
|
-
temp_model =
|
145
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
137
146
|
temp_model.build_from_hash(value)
|
138
147
|
end
|
139
148
|
end
|
@@ -12,13 +12,16 @@ Swagger Codegen version: 2.4.4
|
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
|
-
module
|
16
|
-
class
|
15
|
+
module CoinmarketcapClient
|
16
|
+
class InlineResponse2009
|
17
|
+
attr_accessor :data
|
18
|
+
|
17
19
|
attr_accessor :status
|
18
20
|
|
19
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
22
|
def self.attribute_map
|
21
23
|
{
|
24
|
+
:'data' => :'data',
|
22
25
|
:'status' => :'status'
|
23
26
|
}
|
24
27
|
end
|
@@ -26,6 +29,7 @@ module CoinmarketcapAPI
|
|
26
29
|
# Attribute type mapping.
|
27
30
|
def self.swagger_types
|
28
31
|
{
|
32
|
+
:'data' => :'InlineResponse2004Data',
|
29
33
|
:'status' => :'Status'
|
30
34
|
}
|
31
35
|
end
|
@@ -38,6 +42,10 @@ module CoinmarketcapAPI
|
|
38
42
|
# convert string to symbol for hash key
|
39
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
44
|
|
45
|
+
if attributes.has_key?(:'data')
|
46
|
+
self.data = attributes[:'data']
|
47
|
+
end
|
48
|
+
|
41
49
|
if attributes.has_key?(:'status')
|
42
50
|
self.status = attributes[:'status']
|
43
51
|
end
|
@@ -61,6 +69,7 @@ module CoinmarketcapAPI
|
|
61
69
|
def ==(o)
|
62
70
|
return true if self.equal?(o)
|
63
71
|
self.class == o.class &&
|
72
|
+
data == o.data &&
|
64
73
|
status == o.status
|
65
74
|
end
|
66
75
|
|
@@ -73,7 +82,7 @@ module CoinmarketcapAPI
|
|
73
82
|
# Calculates hash code according to all attributes.
|
74
83
|
# @return [Fixnum] Hash code
|
75
84
|
def hash
|
76
|
-
[status].hash
|
85
|
+
[data, status].hash
|
77
86
|
end
|
78
87
|
|
79
88
|
# Builds the object from hash
|
@@ -133,7 +142,7 @@ module CoinmarketcapAPI
|
|
133
142
|
end
|
134
143
|
end
|
135
144
|
else # model
|
136
|
-
temp_model =
|
145
|
+
temp_model = CoinmarketcapClient.const_get(type).new
|
137
146
|
temp_model.build_from_hash(value)
|
138
147
|
end
|
139
148
|
end
|
@@ -13,13 +13,13 @@ Swagger Codegen version: 2.4.4
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for CoinmarketcapClient::DefaultApi
|
17
17
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'DefaultApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@instance =
|
22
|
+
@instance = CoinmarketcapClient::DefaultApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'DefaultApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of DefaultApi' do
|
30
30
|
it 'should create an instance of DefaultApi' do
|
31
|
-
expect(@instance).to be_instance_of(
|
31
|
+
expect(@instance).to be_instance_of(CoinmarketcapClient::DefaultApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -36,15 +36,50 @@ describe 'DefaultApi' do
|
|
36
36
|
# Get metadata
|
37
37
|
# Returns all static metadata for one or more cryptocurrencies including name, symbol, logo, and its various registered URLs.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :id One or more comma-separated CoinMarketCap cryptocurrency IDs. Example
|
39
|
+
# @option opts [String] :id One or more comma-separated CoinMarketCap cryptocurrency IDs. Example \"1,2\"
|
40
40
|
# @option opts [String] :symbol Alternatively pass one or more comma-separated cryptocurrency symbols. Example: \"BTC,ETH\". At least one \"id\" or \"symbol\" is required.
|
41
|
-
# @return [
|
41
|
+
# @return [InlineResponse2006]
|
42
42
|
describe 'cryptocurrency_info_get test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
# unit tests for cryptocurrency_listings_historical_get
|
49
|
+
# List all cryptocurrencies (historical)
|
50
|
+
# Get a paginated list of all cryptocurrencies with market data for a given historical time. Use the \"convert\" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :timestamp Timestamp (Unix or ISO 8601) to return historical cryptocurrency listings for.
|
53
|
+
# @option opts [Integer] :start Optionally offset the start (1-based index) of the paginated list of items to return.
|
54
|
+
# @option opts [Integer] :limit Optionally specify the number of results to return. Use this parameter and the \"start\" parameter to determine your own pagination size.
|
55
|
+
# @option opts [String] :convert Optionally calculate market quotes in up to 120 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own \"quote\" object.
|
56
|
+
# @option opts [String] :sort Valid values `name` `symbol` `date_added` `market_cap` `price` `circulating_supply` `total_supply` `max_supply` `num_market_pairs` `volume_24h` `percent_change_1h` `percent_change_24h` `percent_change_7d` What field to sort the list of cryptocurrencies by.
|
57
|
+
# @option opts [String] :sort_dir Valid values `asc` `desc`. The direction in which to order cryptocurrencies against the specified sort.
|
58
|
+
# @option opts [String] :cryptocurrency_type Valid values `all` `coins` `tokens` The type of cryptocurrency to include.
|
59
|
+
# @return [InlineResponse2007]
|
60
|
+
describe 'cryptocurrency_listings_historical_get test' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# unit tests for cryptocurrency_listings_latest_get
|
67
|
+
# List all cryptocurrencies (latest)
|
68
|
+
# Get a paginated list of all cryptocurrencies with latest market data. You can configure this call to sort by market cap or another market ranking field. Use the \"convert\" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
|
69
|
+
# @param [Hash] opts the optional parameters
|
70
|
+
# @option opts [Integer] :start Optionally offset the start (1-based index) of the paginated list of items to return.
|
71
|
+
# @option opts [Integer] :limit Optionally specify the number of results to return. Use this parameter and the \"start\" parameter to determine your own pagination size.
|
72
|
+
# @option opts [String] :convert Optionally calculate market quotes in up to 120 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own \"quote\" object.
|
73
|
+
# @option opts [String] :sort Valid values `name` `symbol` `date_added` `market_cap` `price` `circulating_supply` `total_supply` `max_supply` `num_market_pairs` `volume_24h` `percent_change_1h` `percent_change_24h` `percent_change_7d` What field to sort the list of cryptocurrencies by.
|
74
|
+
# @option opts [String] :sort_dir Valid values `asc` `desc`. The direction in which to order cryptocurrencies against the specified sort.
|
75
|
+
# @option opts [String] :cryptocurrency_type Valid values `all` `coins` `tokens` The type of cryptocurrency to include.
|
76
|
+
# @return [InlineResponse2007]
|
77
|
+
describe 'cryptocurrency_listings_latest_get test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
48
83
|
# unit tests for cryptocurrency_map_get
|
49
84
|
# Get CoinMarketCap ID map
|
50
85
|
# Returns a paginated list of all cryptocurrencies by CoinMarketCap ID. We recommend using this convenience endpoint to lookup and utilize our unique cryptocurrency id across all endpoints as typical identifiers like ticker symbols can match multiple cryptocurrencies and change over time. As a convenience you may pass a comma-separated list of cryptocurrency symbols as symbol to filter this list to only those you require.
|
@@ -53,11 +88,41 @@ describe 'DefaultApi' do
|
|
53
88
|
# @option opts [Integer] :start Optionally offset the start (1-based index) of the paginated list of items to return.
|
54
89
|
# @option opts [Integer] :limit Optionally specify the number of results to return. Use this parameter and the \"start\" parameter to determine your own pagination size.
|
55
90
|
# @option opts [String] :symbol Optionally pass a comma-separated list of cryptocurrency symbols to return CoinMarketCap IDs for. If this option is passed, other options will be ignored.
|
56
|
-
# @return [
|
91
|
+
# @return [InlineResponse2005]
|
57
92
|
describe 'cryptocurrency_map_get test' do
|
58
93
|
it 'should work' do
|
59
94
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
95
|
end
|
61
96
|
end
|
62
97
|
|
98
|
+
# unit tests for global_metrics_quotes_historical_get
|
99
|
+
# List all cryptocurrencies (latest)
|
100
|
+
# Get a paginated list of all cryptocurrencies with latest market data. You can configure this call to sort by market cap or another market ranking field. Use the \"convert\" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [String] :time_start Timestamp (Unix or ISO 8601) to start returning quotes for. Optional, if not passed, we'll return quotes calculated in reverse from \"time_end\".
|
103
|
+
# @option opts [String] :time_end Timestamp (Unix or ISO 8601) to stop returning quotes for (inclusive). Optional, if not passed, we'll default to the current time. If no \"time_start\" is passed, we return quotes in reverse order starting from this time.
|
104
|
+
# @option opts [Integer] :count The number of interval periods to return results for. Optional, required if both \"time_start\" and \"time_end\" aren't supplied. The default is 10 items. The current query limit is 10000.
|
105
|
+
# @option opts [String] :interval Valid values \"yearly\" \"monthly\" \"weekly\" \"daily\" \"hourly\" \"5m\" \"10m\" \"15m\" \"30m\" \"45m\" \"1h\" \"2h\" \"3h\" \"6h\" \"12h\" \"24h\" \"1d\" \"2d\" \"3d\" \"7d\" \"14d\" \"15d\" \"30d\" \"60d\" \"90d\" \"365d\" Interval of time to return data points for. See details in endpoint description.
|
106
|
+
# @option opts [String] :convert_id One or more comma-separated cryptocurrency CoinMarketCap IDs. Example 1,2
|
107
|
+
# @option opts [String] :convert By default market quotes are returned in USD. Optionally calculate market quotes in up to 3 other fiat currencies or cryptocurrencies.
|
108
|
+
# @return [InlineResponse2009]
|
109
|
+
describe 'global_metrics_quotes_historical_get test' do
|
110
|
+
it 'should work' do
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# unit tests for global_metrics_quotes_latest_get
|
116
|
+
# Get aggregate market metrics (latest)
|
117
|
+
# Get the latest quote of aggregate market metrics. Use the \"convert\" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @option opts [String] :convert_id One or more comma-separated cryptocurrency CoinMarketCap IDs. Example 1,2
|
120
|
+
# @option opts [String] :convert Optionally calculate market quotes in up to 120 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own \"quote\" object.
|
121
|
+
# @return [InlineResponse2008]
|
122
|
+
describe 'global_metrics_quotes_latest_get test' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
63
128
|
end
|