@binance/simple-earn 2.0.0 → 3.0.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.
- package/dist/index.d.mts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { ConfigurationRestAPI as ConfigurationRestAPI5, SIMPLE_EARN_REST_API_PRO
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@binance/simple-earn";
|
|
13
|
-
var version = "
|
|
13
|
+
var version = "3.0.0";
|
|
14
14
|
|
|
15
15
|
// src/rest-api/index.ts
|
|
16
16
|
var rest_api_exports = {};
|
|
@@ -1210,10 +1210,13 @@ var HistoryApiAxiosParamCreator = function(configuration) {
|
|
|
1210
1210
|
* @param {string} [asset]
|
|
1211
1211
|
* @param {number} [startTime]
|
|
1212
1212
|
* @param {number} [endTime]
|
|
1213
|
+
* @param {number} [current] Currently querying the page. Start from 1. Default:1
|
|
1214
|
+
* @param {number} [size] Default:10, Max:100
|
|
1215
|
+
* @param {number} [recvWindow]
|
|
1213
1216
|
*
|
|
1214
1217
|
* @throws {RequiredError}
|
|
1215
1218
|
*/
|
|
1216
|
-
getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime) => {
|
|
1219
|
+
getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
1217
1220
|
assertParamExists3("getFlexibleRewardsHistory", "type", type);
|
|
1218
1221
|
const localVarQueryParameter = {};
|
|
1219
1222
|
if (productId !== void 0 && productId !== null) {
|
|
@@ -1231,6 +1234,15 @@ var HistoryApiAxiosParamCreator = function(configuration) {
|
|
|
1231
1234
|
if (type !== void 0 && type !== null) {
|
|
1232
1235
|
localVarQueryParameter["type"] = type;
|
|
1233
1236
|
}
|
|
1237
|
+
if (current !== void 0 && current !== null) {
|
|
1238
|
+
localVarQueryParameter["current"] = current;
|
|
1239
|
+
}
|
|
1240
|
+
if (size !== void 0 && size !== null) {
|
|
1241
|
+
localVarQueryParameter["size"] = size;
|
|
1242
|
+
}
|
|
1243
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
1244
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1245
|
+
}
|
|
1234
1246
|
let _timeUnit;
|
|
1235
1247
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1236
1248
|
return {
|
|
@@ -1615,7 +1627,10 @@ var HistoryApi = class {
|
|
|
1615
1627
|
requestParameters?.productId,
|
|
1616
1628
|
requestParameters?.asset,
|
|
1617
1629
|
requestParameters?.startTime,
|
|
1618
|
-
requestParameters?.endTime
|
|
1630
|
+
requestParameters?.endTime,
|
|
1631
|
+
requestParameters?.current,
|
|
1632
|
+
requestParameters?.size,
|
|
1633
|
+
requestParameters?.recvWindow
|
|
1619
1634
|
);
|
|
1620
1635
|
return sendRequest3(
|
|
1621
1636
|
this.configuration,
|