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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -9
  3. data/docs/{Info.md → CryptocurrencyInfo.md} +2 -2
  4. data/docs/{InfoUrls.md → CryptocurrencyInfoUrls.md} +1 -1
  5. data/docs/{MarketData.md → CryptocurrencyListings.md} +1 -1
  6. data/docs/{Map.md → CryptocurrencyMap.md} +1 -1
  7. data/docs/DefaultApi.md +146 -22
  8. data/docs/GlobalMetricsHistoricalQuote.md +10 -0
  9. data/docs/GlobalMetricsQuote.md +10 -0
  10. data/docs/GlobalMetricsQuotesHistorical.md +10 -0
  11. data/docs/GlobalMetricsQuotesLatest.md +14 -0
  12. data/docs/InlineResponse200.md +1 -1
  13. data/docs/InlineResponse2001.md +1 -1
  14. data/docs/InlineResponse2002.md +1 -1
  15. data/docs/InlineResponse2003.md +1 -1
  16. data/docs/InlineResponse2004.md +1 -1
  17. data/docs/InlineResponse2004Data.md +8 -0
  18. data/docs/InlineResponse2005.md +1 -1
  19. data/docs/InlineResponse2006.md +9 -0
  20. data/docs/InlineResponse2007.md +9 -0
  21. data/docs/InlineResponse2008.md +9 -0
  22. data/docs/InlineResponse2009.md +9 -0
  23. data/docs/Quote.md +1 -1
  24. data/lib/coinmarketcap_client.rb +13 -4
  25. data/lib/coinmarketcap_client/api/default_api.rb +150 -26
  26. data/lib/coinmarketcap_client/models/{info.rb → cryptocurrency_info.rb} +2 -2
  27. data/lib/coinmarketcap_client/models/{info_urls.rb → cryptocurrency_info_urls.rb} +1 -1
  28. data/lib/coinmarketcap_client/models/{market_data.rb → cryptocurrency_listings.rb} +1 -1
  29. data/lib/coinmarketcap_client/models/{map.rb → cryptocurrency_map.rb} +1 -1
  30. data/lib/coinmarketcap_client/models/global_metrics_historical_quote.rb +202 -0
  31. data/lib/coinmarketcap_client/models/global_metrics_quote.rb +202 -0
  32. data/lib/{coinmarketcap_api/models/inline_response_200_3.rb → coinmarketcap_client/models/global_metrics_quotes_historical.rb} +30 -11
  33. data/lib/{coinmarketcap_api/models/map.rb → coinmarketcap_client/models/global_metrics_quotes_latest.rb} +49 -55
  34. data/lib/coinmarketcap_client/models/inline_response_200.rb +1 -1
  35. data/lib/coinmarketcap_client/models/inline_response_200_1.rb +1 -1
  36. data/lib/coinmarketcap_client/models/inline_response_200_2.rb +1 -1
  37. data/lib/coinmarketcap_client/models/inline_response_200_3.rb +2 -4
  38. data/lib/coinmarketcap_client/models/inline_response_200_4.rb +2 -4
  39. data/lib/{coinmarketcap_api/models/inline_response_200_1.rb → coinmarketcap_client/models/inline_response_200_4_data.rb} +11 -11
  40. data/lib/coinmarketcap_client/models/inline_response_200_5.rb +1 -1
  41. data/lib/{coinmarketcap_api/models/inline_response_200_2.rb → coinmarketcap_client/models/inline_response_200_6.rb} +5 -5
  42. data/lib/{coinmarketcap_api/models/inline_response_200.rb → coinmarketcap_client/models/inline_response_200_7.rb} +4 -4
  43. data/lib/{coinmarketcap_api/models/inline_response_default_1.rb → coinmarketcap_client/models/inline_response_200_8.rb} +13 -4
  44. data/lib/{coinmarketcap_api/models/inline_response_default.rb → coinmarketcap_client/models/inline_response_200_9.rb} +13 -4
  45. data/lib/coinmarketcap_client/models/quote.rb +1 -1
  46. data/lib/coinmarketcap_client/version.rb +1 -1
  47. data/spec/api/default_api_spec.rb +71 -6
  48. data/spec/api_client_spec.rb +29 -29
  49. data/spec/configuration_spec.rb +3 -3
  50. data/spec/models/{info_spec.rb → cryptocurrency_info_spec.rb} +6 -6
  51. data/spec/models/{info_urls_spec.rb → cryptocurrency_info_urls_spec.rb} +6 -6
  52. data/spec/models/{market_data_spec.rb → cryptocurrency_listings_spec.rb} +6 -6
  53. data/spec/models/{map_spec.rb → cryptocurrency_map_spec.rb} +6 -6
  54. data/spec/models/global_metrics_historical_quote_spec.rb +53 -0
  55. data/spec/models/global_metrics_quote_spec.rb +53 -0
  56. data/spec/models/global_metrics_quotes_historical_spec.rb +53 -0
  57. data/spec/models/global_metrics_quotes_latest_spec.rb +77 -0
  58. data/spec/models/inline_response_200_1_spec.rb +9 -3
  59. data/spec/models/inline_response_200_2_spec.rb +3 -3
  60. data/spec/models/inline_response_200_3_spec.rb +9 -3
  61. data/spec/models/inline_response_200_4_data_spec.rb +41 -0
  62. data/spec/models/inline_response_200_4_spec.rb +3 -3
  63. data/spec/models/inline_response_200_5_spec.rb +3 -3
  64. data/spec/models/inline_response_200_6_spec.rb +47 -0
  65. data/spec/models/inline_response_200_7_spec.rb +47 -0
  66. data/spec/models/inline_response_200_8_spec.rb +47 -0
  67. data/spec/models/inline_response_200_9_spec.rb +47 -0
  68. data/spec/models/inline_response_200_spec.rb +3 -3
  69. data/spec/models/inline_response_default_1_spec.rb +3 -3
  70. data/spec/models/inline_response_default_spec.rb +3 -3
  71. data/spec/models/platform_spec.rb +3 -3
  72. data/spec/models/quote_spec.rb +3 -3
  73. data/spec/models/status_spec.rb +3 -3
  74. data/spec/spec_helper.rb +1 -1
  75. metadata +54 -34
  76. data/lib/coinmarketcap_api.rb +0 -50
  77. data/lib/coinmarketcap_api/api/default_api.rb +0 -145
  78. data/lib/coinmarketcap_api/api_client.rb +0 -389
  79. data/lib/coinmarketcap_api/api_error.rb +0 -38
  80. data/lib/coinmarketcap_api/configuration.rb +0 -209
  81. data/lib/coinmarketcap_api/models/info.rb +0 -276
  82. data/lib/coinmarketcap_api/models/info_urls.rb +0 -263
  83. data/lib/coinmarketcap_api/models/status.rb +0 -219
  84. 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' => :'Array<Map>',
32
+ :'data' => :'Array<CryptocurrencyMap>',
33
33
  :'status' => :'Status'
34
34
  }
35
35
  end
@@ -29,7 +29,7 @@ module CoinmarketcapClient
29
29
  # Attribute type mapping.
30
30
  def self.swagger_types
31
31
  {
32
- :'data' => :'Hash<String, Info>',
32
+ :'data' => :'Hash<String, CryptocurrencyInfo>',
33
33
  :'status' => :'Status'
34
34
  }
35
35
  end
@@ -29,7 +29,7 @@ module CoinmarketcapClient
29
29
  # Attribute type mapping.
30
30
  def self.swagger_types
31
31
  {
32
- :'data' => :'Array<MarketData>',
32
+ :'data' => :'Array<CryptocurrencyListings>',
33
33
  :'status' => :'Status'
34
34
  }
35
35
  end
@@ -29,7 +29,7 @@ module CoinmarketcapClient
29
29
  # Attribute type mapping.
30
30
  def self.swagger_types
31
31
  {
32
- :'data' => :'Array<Map>',
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
- if (value = attributes[:'data']).is_a?(Array)
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' => :'Hash<String, Info>',
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
- if (value = attributes[:'data']).is_a?(Hash)
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 CoinmarketcapAPI
16
- class InlineResponse2001
17
- attr_accessor :data
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
- :'data' => :'data'
22
+ :'quote' => :'quote'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'data' => :'Hash<String, Info>'
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?(:'data')
42
- if (value = attributes[:'data']).is_a?(Hash)
43
- self.data = value
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
- data == o.data
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
- [data].hash
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 = CoinmarketcapAPI.const_get(type).new
138
+ temp_model = CoinmarketcapClient.const_get(type).new
139
139
  temp_model.build_from_hash(value)
140
140
  end
141
141
  end
@@ -29,7 +29,7 @@ module CoinmarketcapClient
29
29
  # Attribute type mapping.
30
30
  def self.swagger_types
31
31
  {
32
- :'data' => :'Array<MarketData>',
32
+ :'data' => :'Array<CryptocurrencyMap>',
33
33
  :'status' => :'Status'
34
34
  }
35
35
  end
@@ -12,8 +12,8 @@ Swagger Codegen version: 2.4.4
12
12
 
13
13
  require 'date'
14
14
 
15
- module CoinmarketcapAPI
16
- class InlineResponse2002
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' => :'Array<Map>',
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?(Array)
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 = CoinmarketcapAPI.const_get(type).new
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 CoinmarketcapAPI
16
- class InlineResponse200
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<Map>',
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 = CoinmarketcapAPI.const_get(type).new
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 CoinmarketcapAPI
16
- class InlineResponseDefault1
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 = CoinmarketcapAPI.const_get(type).new
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 CoinmarketcapAPI
16
- class InlineResponseDefault
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 = CoinmarketcapAPI.const_get(type).new
145
+ temp_model = CoinmarketcapClient.const_get(type).new
137
146
  temp_model.build_from_hash(value)
138
147
  end
139
148
  end
@@ -49,7 +49,7 @@ module CoinmarketcapClient
49
49
  :'percent_change_1h' => :'Float',
50
50
  :'percent_change_24h' => :'Float',
51
51
  :'percent_change_7d' => :'Float',
52
- :'market_cap' => :'Integer',
52
+ :'market_cap' => :'Float',
53
53
  :'last_updated' => :'DateTime'
54
54
  }
55
55
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.4
11
11
  =end
12
12
 
13
13
  module CoinmarketcapClient
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  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 CoinmarketcapAPI::DefaultApi
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 = CoinmarketcapAPI::DefaultApi.new
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(CoinmarketcapAPI::DefaultApi)
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: \&quot;1,2\&quot;
39
+ # @option opts [String] :id One or more comma-separated CoinMarketCap cryptocurrency IDs. Example \&quot;1,2\&quot;
40
40
  # @option opts [String] :symbol Alternatively pass one or more comma-separated cryptocurrency symbols. Example: \&quot;BTC,ETH\&quot;. At least one \&quot;id\&quot; or \&quot;symbol\&quot; is required.
41
- # @return [InlineResponse2003]
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 \&quot;convert\&quot; 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 \&quot;start\&quot; 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 \&quot;quote\&quot; object.
56
+ # @option opts [String] :sort Valid values &#x60;name&#x60; &#x60;symbol&#x60; &#x60;date_added&#x60; &#x60;market_cap&#x60; &#x60;price&#x60; &#x60;circulating_supply&#x60; &#x60;total_supply&#x60; &#x60;max_supply&#x60; &#x60;num_market_pairs&#x60; &#x60;volume_24h&#x60; &#x60;percent_change_1h&#x60; &#x60;percent_change_24h&#x60; &#x60;percent_change_7d&#x60; What field to sort the list of cryptocurrencies by.
57
+ # @option opts [String] :sort_dir Valid values &#x60;asc&#x60; &#x60;desc&#x60;. The direction in which to order cryptocurrencies against the specified sort.
58
+ # @option opts [String] :cryptocurrency_type Valid values &#x60;all&#x60; &#x60;coins&#x60; &#x60;tokens&#x60; 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 \&quot;convert\&quot; 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 \&quot;start\&quot; 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 \&quot;quote\&quot; object.
73
+ # @option opts [String] :sort Valid values &#x60;name&#x60; &#x60;symbol&#x60; &#x60;date_added&#x60; &#x60;market_cap&#x60; &#x60;price&#x60; &#x60;circulating_supply&#x60; &#x60;total_supply&#x60; &#x60;max_supply&#x60; &#x60;num_market_pairs&#x60; &#x60;volume_24h&#x60; &#x60;percent_change_1h&#x60; &#x60;percent_change_24h&#x60; &#x60;percent_change_7d&#x60; What field to sort the list of cryptocurrencies by.
74
+ # @option opts [String] :sort_dir Valid values &#x60;asc&#x60; &#x60;desc&#x60;. The direction in which to order cryptocurrencies against the specified sort.
75
+ # @option opts [String] :cryptocurrency_type Valid values &#x60;all&#x60; &#x60;coins&#x60; &#x60;tokens&#x60; 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 \&quot;start\&quot; 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 [InlineResponse2002]
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 \&quot;convert\&quot; 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&#39;ll return quotes calculated in reverse from \&quot;time_end\&quot;.
103
+ # @option opts [String] :time_end Timestamp (Unix or ISO 8601) to stop returning quotes for (inclusive). Optional, if not passed, we&#39;ll default to the current time. If no \&quot;time_start\&quot; 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 \&quot;time_start\&quot; and \&quot;time_end\&quot; aren&#39;t supplied. The default is 10 items. The current query limit is 10000.
105
+ # @option opts [String] :interval Valid values \&quot;yearly\&quot; \&quot;monthly\&quot; \&quot;weekly\&quot; \&quot;daily\&quot; \&quot;hourly\&quot; \&quot;5m\&quot; \&quot;10m\&quot; \&quot;15m\&quot; \&quot;30m\&quot; \&quot;45m\&quot; \&quot;1h\&quot; \&quot;2h\&quot; \&quot;3h\&quot; \&quot;6h\&quot; \&quot;12h\&quot; \&quot;24h\&quot; \&quot;1d\&quot; \&quot;2d\&quot; \&quot;3d\&quot; \&quot;7d\&quot; \&quot;14d\&quot; \&quot;15d\&quot; \&quot;30d\&quot; \&quot;60d\&quot; \&quot;90d\&quot; \&quot;365d\&quot; 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 \&quot;convert\&quot; 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 \&quot;quote\&quot; 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