max_exchange_api 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +24 -0
- data/lib/max_exchange_api/private_api.rb +14 -0
- data/lib/max_exchange_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edbae1a964c5392adc89a6bd87851ef12ede61c116ff0e2739ceb7a281e5b680
|
4
|
+
data.tar.gz: a643f7961288b860d35b28efdcf8f4ebcec28c1de9b44b5b19110d060400d3f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|