@bluefin-exchange/pro-sdk 0.2.3 → 0.2.4
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/cjs/src/api.js +82 -12
- package/dist/cjs/src/api.js.map +1 -1
- package/dist/esm/src/api.js +82 -12
- package/dist/esm/src/api.js.map +1 -1
- package/dist/types/src/api.d.ts +72 -14
- package/dist/types/src/api.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/src/api.js
CHANGED
|
@@ -620,7 +620,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
|
|
|
620
620
|
* @summary /account/trades
|
|
621
621
|
* @param {string} [symbol] Market address to filter trades by. If not specified, returns trades for all markets.
|
|
622
622
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
623
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
623
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
624
624
|
* @param {number} [limit] Default 500; max 1000.
|
|
625
625
|
* @param {TradeType} [tradeType] Type of trade. By default returns all. UNSPECIFIED returns all.
|
|
626
626
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
@@ -673,7 +673,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
|
|
|
673
673
|
* @param {Array<TransactionType>} [types] Optional query parameter to filter transactions by type.
|
|
674
674
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
675
675
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
676
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
676
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
677
677
|
* @param {number} [limit] Default 500; max 1000.
|
|
678
678
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
679
679
|
* @param {*} [options] Override http request option.
|
|
@@ -720,7 +720,7 @@ const AccountDataApiAxiosParamCreator = function (configuration) {
|
|
|
720
720
|
};
|
|
721
721
|
}),
|
|
722
722
|
/**
|
|
723
|
-
* Sets or updates the group ID for a specific account.
|
|
723
|
+
* Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
|
|
724
724
|
* @summary Set the group ID for an account.
|
|
725
725
|
* @param {AccountGroupIdPatch} accountGroupIdPatch Account group ID update.
|
|
726
726
|
* @param {*} [options] Override http request option.
|
|
@@ -882,7 +882,7 @@ const AccountDataApiFp = function (configuration) {
|
|
|
882
882
|
* @summary /account/trades
|
|
883
883
|
* @param {string} [symbol] Market address to filter trades by. If not specified, returns trades for all markets.
|
|
884
884
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
885
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
885
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
886
886
|
* @param {number} [limit] Default 500; max 1000.
|
|
887
887
|
* @param {TradeType} [tradeType] Type of trade. By default returns all. UNSPECIFIED returns all.
|
|
888
888
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
@@ -904,7 +904,7 @@ const AccountDataApiFp = function (configuration) {
|
|
|
904
904
|
* @param {Array<TransactionType>} [types] Optional query parameter to filter transactions by type.
|
|
905
905
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
906
906
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
907
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
907
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
908
908
|
* @param {number} [limit] Default 500; max 1000.
|
|
909
909
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
910
910
|
* @param {*} [options] Override http request option.
|
|
@@ -920,7 +920,7 @@ const AccountDataApiFp = function (configuration) {
|
|
|
920
920
|
});
|
|
921
921
|
},
|
|
922
922
|
/**
|
|
923
|
-
* Sets or updates the group ID for a specific account.
|
|
923
|
+
* Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
|
|
924
924
|
* @summary Set the group ID for an account.
|
|
925
925
|
* @param {AccountGroupIdPatch} accountGroupIdPatch Account group ID update.
|
|
926
926
|
* @param {*} [options] Override http request option.
|
|
@@ -1013,7 +1013,7 @@ const AccountDataApiFactory = function (configuration, basePath, axios) {
|
|
|
1013
1013
|
* @summary /account/trades
|
|
1014
1014
|
* @param {string} [symbol] Market address to filter trades by. If not specified, returns trades for all markets.
|
|
1015
1015
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
1016
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
1016
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
1017
1017
|
* @param {number} [limit] Default 500; max 1000.
|
|
1018
1018
|
* @param {TradeType} [tradeType] Type of trade. By default returns all. UNSPECIFIED returns all.
|
|
1019
1019
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
@@ -1029,7 +1029,7 @@ const AccountDataApiFactory = function (configuration, basePath, axios) {
|
|
|
1029
1029
|
* @param {Array<TransactionType>} [types] Optional query parameter to filter transactions by type.
|
|
1030
1030
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
1031
1031
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
1032
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
1032
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
1033
1033
|
* @param {number} [limit] Default 500; max 1000.
|
|
1034
1034
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
1035
1035
|
* @param {*} [options] Override http request option.
|
|
@@ -1039,7 +1039,7 @@ const AccountDataApiFactory = function (configuration, basePath, axios) {
|
|
|
1039
1039
|
return localVarFp.getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(axios, basePath));
|
|
1040
1040
|
},
|
|
1041
1041
|
/**
|
|
1042
|
-
* Sets or updates the group ID for a specific account.
|
|
1042
|
+
* Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
|
|
1043
1043
|
* @summary Set the group ID for an account.
|
|
1044
1044
|
* @param {AccountGroupIdPatch} accountGroupIdPatch Account group ID update.
|
|
1045
1045
|
* @param {*} [options] Override http request option.
|
|
@@ -1117,7 +1117,7 @@ class AccountDataApi extends base_1.BaseAPI {
|
|
|
1117
1117
|
* @summary /account/trades
|
|
1118
1118
|
* @param {string} [symbol] Market address to filter trades by. If not specified, returns trades for all markets.
|
|
1119
1119
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
1120
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
1120
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
1121
1121
|
* @param {number} [limit] Default 500; max 1000.
|
|
1122
1122
|
* @param {TradeType} [tradeType] Type of trade. By default returns all. UNSPECIFIED returns all.
|
|
1123
1123
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
@@ -1134,7 +1134,7 @@ class AccountDataApi extends base_1.BaseAPI {
|
|
|
1134
1134
|
* @param {Array<TransactionType>} [types] Optional query parameter to filter transactions by type.
|
|
1135
1135
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
1136
1136
|
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
1137
|
-
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than
|
|
1137
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 90 days apart.
|
|
1138
1138
|
* @param {number} [limit] Default 500; max 1000.
|
|
1139
1139
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
1140
1140
|
* @param {*} [options] Override http request option.
|
|
@@ -1145,7 +1145,7 @@ class AccountDataApi extends base_1.BaseAPI {
|
|
|
1145
1145
|
return (0, exports.AccountDataApiFp)(this.configuration).getAccountTransactionHistory(types, assetSymbol, startTimeAtMillis, endTimeAtMillis, limit, page, options).then((request) => request(this.axios, this.basePath));
|
|
1146
1146
|
}
|
|
1147
1147
|
/**
|
|
1148
|
-
* Sets or updates the group ID for a specific account.
|
|
1148
|
+
* Sets or updates the group ID for a specific account. Accounts belonging to the same group cannot trade against each other. If the groupId is not set, the account will be removed from its group. Only the first 6 characters of the groupID are guaranteed to be respected, longer group IDs may be rejected.
|
|
1149
1149
|
* @summary Set the group ID for an account.
|
|
1150
1150
|
* @param {AccountGroupIdPatch} accountGroupIdPatch Account group ID update.
|
|
1151
1151
|
* @param {*} [options] Override http request option.
|
|
@@ -2770,6 +2770,39 @@ const RewardsApiAxiosParamCreator = function (configuration) {
|
|
|
2770
2770
|
options: localVarRequestOptions,
|
|
2771
2771
|
};
|
|
2772
2772
|
}),
|
|
2773
|
+
/**
|
|
2774
|
+
* Update the ember refferal share for an affiliate.
|
|
2775
|
+
* @summary /rewards/affiliate/emberRefferalShare
|
|
2776
|
+
* @param {UpdateAffiliateEmberRefferalShareRequest} updateAffiliateEmberRefferalShareRequest
|
|
2777
|
+
* @param {*} [options] Override http request option.
|
|
2778
|
+
* @throws {RequiredError}
|
|
2779
|
+
*/
|
|
2780
|
+
updateAffiliateEmberRefferalShare: (updateAffiliateEmberRefferalShareRequest_1, ...args_1) => __awaiter(this, [updateAffiliateEmberRefferalShareRequest_1, ...args_1], void 0, function* (updateAffiliateEmberRefferalShareRequest, options = {}) {
|
|
2781
|
+
// verify required parameter 'updateAffiliateEmberRefferalShareRequest' is not null or undefined
|
|
2782
|
+
(0, common_1.assertParamExists)('updateAffiliateEmberRefferalShare', 'updateAffiliateEmberRefferalShareRequest', updateAffiliateEmberRefferalShareRequest);
|
|
2783
|
+
const localVarPath = `/v1/rewards/affiliate/emberRefferalShare`;
|
|
2784
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2785
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2786
|
+
let baseOptions;
|
|
2787
|
+
if (configuration) {
|
|
2788
|
+
baseOptions = configuration.baseOptions;
|
|
2789
|
+
}
|
|
2790
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2791
|
+
const localVarHeaderParameter = {};
|
|
2792
|
+
const localVarQueryParameter = {};
|
|
2793
|
+
// authentication bearerAuth required
|
|
2794
|
+
// http bearer authentication required
|
|
2795
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2796
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2797
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2799
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2800
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAffiliateEmberRefferalShareRequest, localVarRequestOptions, configuration);
|
|
2801
|
+
return {
|
|
2802
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2803
|
+
options: localVarRequestOptions,
|
|
2804
|
+
};
|
|
2805
|
+
}),
|
|
2773
2806
|
/**
|
|
2774
2807
|
* Update the fee config for an affiliate.
|
|
2775
2808
|
* @summary /rewards/affiliate/feeConfig
|
|
@@ -3052,6 +3085,22 @@ const RewardsApiFp = function (configuration) {
|
|
|
3052
3085
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3053
3086
|
});
|
|
3054
3087
|
},
|
|
3088
|
+
/**
|
|
3089
|
+
* Update the ember refferal share for an affiliate.
|
|
3090
|
+
* @summary /rewards/affiliate/emberRefferalShare
|
|
3091
|
+
* @param {UpdateAffiliateEmberRefferalShareRequest} updateAffiliateEmberRefferalShareRequest
|
|
3092
|
+
* @param {*} [options] Override http request option.
|
|
3093
|
+
* @throws {RequiredError}
|
|
3094
|
+
*/
|
|
3095
|
+
updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options) {
|
|
3096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3097
|
+
var _a, _b, _c;
|
|
3098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options);
|
|
3099
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3100
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RewardsApi.updateAffiliateEmberRefferalShare']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3101
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3102
|
+
});
|
|
3103
|
+
},
|
|
3055
3104
|
/**
|
|
3056
3105
|
* Update the fee config for an affiliate.
|
|
3057
3106
|
* @summary /rewards/affiliate/feeConfig
|
|
@@ -3233,6 +3282,16 @@ const RewardsApiFactory = function (configuration, basePath, axios) {
|
|
|
3233
3282
|
onboardReferee(onboardRefereeRequest, options) {
|
|
3234
3283
|
return localVarFp.onboardReferee(onboardRefereeRequest, options).then((request) => request(axios, basePath));
|
|
3235
3284
|
},
|
|
3285
|
+
/**
|
|
3286
|
+
* Update the ember refferal share for an affiliate.
|
|
3287
|
+
* @summary /rewards/affiliate/emberRefferalShare
|
|
3288
|
+
* @param {UpdateAffiliateEmberRefferalShareRequest} updateAffiliateEmberRefferalShareRequest
|
|
3289
|
+
* @param {*} [options] Override http request option.
|
|
3290
|
+
* @throws {RequiredError}
|
|
3291
|
+
*/
|
|
3292
|
+
updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options) {
|
|
3293
|
+
return localVarFp.updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options).then((request) => request(axios, basePath));
|
|
3294
|
+
},
|
|
3236
3295
|
/**
|
|
3237
3296
|
* Update the fee config for an affiliate.
|
|
3238
3297
|
* @summary /rewards/affiliate/feeConfig
|
|
@@ -3422,6 +3481,17 @@ class RewardsApi extends base_1.BaseAPI {
|
|
|
3422
3481
|
onboardReferee(onboardRefereeRequest, options) {
|
|
3423
3482
|
return (0, exports.RewardsApiFp)(this.configuration).onboardReferee(onboardRefereeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3424
3483
|
}
|
|
3484
|
+
/**
|
|
3485
|
+
* Update the ember refferal share for an affiliate.
|
|
3486
|
+
* @summary /rewards/affiliate/emberRefferalShare
|
|
3487
|
+
* @param {UpdateAffiliateEmberRefferalShareRequest} updateAffiliateEmberRefferalShareRequest
|
|
3488
|
+
* @param {*} [options] Override http request option.
|
|
3489
|
+
* @throws {RequiredError}
|
|
3490
|
+
* @memberof RewardsApi
|
|
3491
|
+
*/
|
|
3492
|
+
updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options) {
|
|
3493
|
+
return (0, exports.RewardsApiFp)(this.configuration).updateAffiliateEmberRefferalShare(updateAffiliateEmberRefferalShareRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3494
|
+
}
|
|
3425
3495
|
/**
|
|
3426
3496
|
* Update the fee config for an affiliate.
|
|
3427
3497
|
* @summary /rewards/affiliate/feeConfig
|