max_exchange_api 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8bceace151d12c20233b2cf113dc1ffaa07966ade671c8bdb368bfe93c32854
4
- data.tar.gz: 4edcb0c3c6ffce922b56eeb75b7224b2640366a6068af71039a66fb33025c3d4
3
+ metadata.gz: edbae1a964c5392adc89a6bd87851ef12ede61c116ff0e2739ceb7a281e5b680
4
+ data.tar.gz: a643f7961288b860d35b28efdcf8f4ebcec28c1de9b44b5b19110d060400d3f1
5
5
  SHA512:
6
- metadata.gz: c1ee9f002c63318a0bf5653c7d372193ca7566fcef4b7da7b270b657a003bfcc35a91ff0e6b97acdaa952d77fe264d62f75daa972fd0cd2ba32d3ed5fd7242cc
7
- data.tar.gz: 7cb308ff8fe60215816272108cbb0d3a4c0f29f1804648f42832d8699194c764c162326291314675bbb8d46a81d8863ed97368f4c54ddd3b11d3913c11a0b9e3
6
+ metadata.gz: fd7fef5a08064c12470a155cd451c95d0139c34e1f452d4df18ed4478aea52c72d298ca872a5afd9a1144be40c2013631fc635c9473565c5e38e642be94ffa86
7
+ data.tar.gz: ab9eaa801cea900a431a201824e443ccd87b64476eed20ee0cac58684d4234b4b57ac658dd7b7458914c96a770a5cd67d5ab3745f2dfae8dd36c282204dabb79
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ ### [v1.1.1](https://github.com/khiav223577/max_exchange_api/compare/v1.1.0...v1.1.1) 2021/08/01
4
+ - [#7](https://github.com/khiav223577/max_exchange_api/pull/7) Fix wrong path in rewards API (@khiav223577)
5
+ - [#8](https://github.com/khiav223577/max_exchange_api/pull/8) Adjust: maker fee and min base amount test cases (@khiav223577)
6
+
3
7
  ### [v1.1.0](https://github.com/khiav223577/max_exchange_api/compare/v1.0.0...v1.1.0) 2021/06/27
4
8
  - [#6](https://github.com/khiav223577/max_exchange_api/pull/6) Allow every api instance to have custom config (@khiav223577)
5
9
 
data/README.md CHANGED
@@ -573,6 +573,30 @@ secret_key = 'YOUR_SECRET_KEY'
573
573
  ```
574
574
  </details>
575
575
 
576
+ #### GET /api/v2/yields
577
+
578
+ > get yields history
579
+
580
+ <details>
581
+ <summary>Show code</summary>
582
+
583
+ ```rb
584
+ # use default parameters
585
+ @api.yields
586
+
587
+ # provide all possible parameters
588
+ @api.yields(
589
+ currency: 'usdt',
590
+ from: 68444,
591
+ to: 69444,
592
+ pagination: true,
593
+ page: 3,
594
+ limit: 15,
595
+ offset: 5,
596
+ )
597
+ ```
598
+ </details>
599
+
576
600
  ### Order
577
601
  #### [GET /api/v2/orders](https://max.maicoin.com/documents/api_list#!/private/getApiV2Orders)
578
602
 
@@ -162,6 +162,20 @@ module MaxExchangeApi
162
162
  )
163
163
  end
164
164
 
165
+ def yields(currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0)
166
+ send_request(
167
+ :get,
168
+ '/yields',
169
+ currency: currency,
170
+ from: from,
171
+ to: to,
172
+ pagination: pagination,
173
+ page: page,
174
+ limit: limit,
175
+ offset: offset,
176
+ )
177
+ end
178
+
165
179
  def max_rewards_yesterday
166
180
  send_request(:get, '/max_rewards/yesterday', {})
167
181
  end
@@ -1,3 +1,3 @@
1
1
  module MaxExchangeApi
2
- VERSION = '1.1.1'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: max_exchange_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - khiav reoy