@bluefin-exchange/pro-sdk 0.1.24 → 0.1.25

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/example.js CHANGED
@@ -103,6 +103,8 @@ function main() {
103
103
  logger.info(`Depth: ${JSON.stringify(depth)}`);
104
104
  const ticker = (yield client.exchangeDataApi.getMarketTicker(symbol)).data;
105
105
  logger.info(`Exchange Market ticker: ${JSON.stringify(ticker)}`);
106
+ const tickers = (yield client.exchangeDataApi.getAllMarketTicker()).data;
107
+ logger.info(`All Market ticker: ${JSON.stringify(tickers)}`);
106
108
  const recentTrades = (yield client.exchangeDataApi.getRecentTrades(symbol))
107
109
  .data;
108
110
  logger.info(`Recent Trades: ${JSON.stringify(recentTrades)}`);
package/dist/src/api.d.ts CHANGED
@@ -2088,9 +2088,10 @@ export interface Operators {
2088
2088
  */
2089
2089
  'admin': string;
2090
2090
  /**
2091
- * General operator address
2091
+ * General operator address; AKA Guardian
2092
2092
  * @type {string}
2093
2093
  * @memberof Operators
2094
+ * @deprecated
2094
2095
  */
2095
2096
  'operator': string;
2096
2097
  /**
@@ -2103,12 +2104,14 @@ export interface Operators {
2103
2104
  * Funding operator address
2104
2105
  * @type {string}
2105
2106
  * @memberof Operators
2107
+ * @deprecated
2106
2108
  */
2107
2109
  'funding': string;
2108
2110
  /**
2109
2111
  * Fee operator address
2110
2112
  * @type {string}
2111
2113
  * @memberof Operators
2114
+ * @deprecated
2112
2115
  */
2113
2116
  'fee': string;
2114
2117
  }
@@ -3777,6 +3780,13 @@ export declare class AuthApi extends BaseAPI {
3777
3780
  * @export
3778
3781
  */
3779
3782
  export declare const ExchangeApiAxiosParamCreator: (configuration?: Configuration) => {
3783
+ /**
3784
+ *
3785
+ * @summary Get all market ticker information
3786
+ * @param {*} [options] Override http request option.
3787
+ * @throws {RequiredError}
3788
+ */
3789
+ getAllMarketTicker: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3780
3790
  /**
3781
3791
  *
3782
3792
  * @summary Kline/candlestick data.
@@ -3846,6 +3856,13 @@ export declare const ExchangeApiAxiosParamCreator: (configuration?: Configuratio
3846
3856
  * @export
3847
3857
  */
3848
3858
  export declare const ExchangeApiFp: (configuration?: Configuration) => {
3859
+ /**
3860
+ *
3861
+ * @summary Get all market ticker information
3862
+ * @param {*} [options] Override http request option.
3863
+ * @throws {RequiredError}
3864
+ */
3865
+ getAllMarketTicker(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TickerResponse>>>;
3849
3866
  /**
3850
3867
  *
3851
3868
  * @summary Kline/candlestick data.
@@ -3915,6 +3932,13 @@ export declare const ExchangeApiFp: (configuration?: Configuration) => {
3915
3932
  * @export
3916
3933
  */
3917
3934
  export declare const ExchangeApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3935
+ /**
3936
+ *
3937
+ * @summary Get all market ticker information
3938
+ * @param {*} [options] Override http request option.
3939
+ * @throws {RequiredError}
3940
+ */
3941
+ getAllMarketTicker(options?: RawAxiosRequestConfig): AxiosPromise<Array<TickerResponse>>;
3918
3942
  /**
3919
3943
  *
3920
3944
  * @summary Kline/candlestick data.
@@ -3986,6 +4010,14 @@ export declare const ExchangeApiFactory: (configuration?: Configuration, basePat
3986
4010
  * @extends {BaseAPI}
3987
4011
  */
3988
4012
  export declare class ExchangeApi extends BaseAPI {
4013
+ /**
4014
+ *
4015
+ * @summary Get all market ticker information
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ * @memberof ExchangeApi
4019
+ */
4020
+ getAllMarketTicker(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TickerResponse[], any>>;
3989
4021
  /**
3990
4022
  *
3991
4023
  * @summary Kline/candlestick data.
package/dist/src/api.js CHANGED
@@ -1169,6 +1169,31 @@ exports.AuthApi = AuthApi;
1169
1169
  */
1170
1170
  const ExchangeApiAxiosParamCreator = function (configuration) {
1171
1171
  return {
1172
+ /**
1173
+ *
1174
+ * @summary Get all market ticker information
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ */
1178
+ getAllMarketTicker: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1179
+ const localVarPath = `/v1/exchange/tickers`;
1180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1181
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1182
+ let baseOptions;
1183
+ if (configuration) {
1184
+ baseOptions = configuration.baseOptions;
1185
+ }
1186
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1187
+ const localVarHeaderParameter = {};
1188
+ const localVarQueryParameter = {};
1189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1190
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1191
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1192
+ return {
1193
+ url: (0, common_1.toPathString)(localVarUrlObj),
1194
+ options: localVarRequestOptions,
1195
+ };
1196
+ }),
1172
1197
  /**
1173
1198
  *
1174
1199
  * @summary Kline/candlestick data.
@@ -1427,6 +1452,21 @@ exports.ExchangeApiAxiosParamCreator = ExchangeApiAxiosParamCreator;
1427
1452
  const ExchangeApiFp = function (configuration) {
1428
1453
  const localVarAxiosParamCreator = (0, exports.ExchangeApiAxiosParamCreator)(configuration);
1429
1454
  return {
1455
+ /**
1456
+ *
1457
+ * @summary Get all market ticker information
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ */
1461
+ getAllMarketTicker(options) {
1462
+ return __awaiter(this, void 0, void 0, function* () {
1463
+ var _a, _b, _c;
1464
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllMarketTicker(options);
1465
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1466
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExchangeApi.getAllMarketTicker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1467
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1468
+ });
1469
+ },
1430
1470
  /**
1431
1471
  *
1432
1472
  * @summary Kline/candlestick data.
@@ -1548,6 +1588,15 @@ exports.ExchangeApiFp = ExchangeApiFp;
1548
1588
  const ExchangeApiFactory = function (configuration, basePath, axios) {
1549
1589
  const localVarFp = (0, exports.ExchangeApiFp)(configuration);
1550
1590
  return {
1591
+ /**
1592
+ *
1593
+ * @summary Get all market ticker information
1594
+ * @param {*} [options] Override http request option.
1595
+ * @throws {RequiredError}
1596
+ */
1597
+ getAllMarketTicker(options) {
1598
+ return localVarFp.getAllMarketTicker(options).then((request) => request(axios, basePath));
1599
+ },
1551
1600
  /**
1552
1601
  *
1553
1602
  * @summary Kline/candlestick data.
@@ -1633,6 +1682,16 @@ exports.ExchangeApiFactory = ExchangeApiFactory;
1633
1682
  * @extends {BaseAPI}
1634
1683
  */
1635
1684
  class ExchangeApi extends base_1.BaseAPI {
1685
+ /**
1686
+ *
1687
+ * @summary Get all market ticker information
1688
+ * @param {*} [options] Override http request option.
1689
+ * @throws {RequiredError}
1690
+ * @memberof ExchangeApi
1691
+ */
1692
+ getAllMarketTicker(options) {
1693
+ return (0, exports.ExchangeApiFp)(this.configuration).getAllMarketTicker(options).then((request) => request(this.axios, this.basePath));
1694
+ }
1636
1695
  /**
1637
1696
  *
1638
1697
  * @summary Kline/candlestick data.
package/example.ts CHANGED
@@ -140,6 +140,9 @@ async function main() {
140
140
  const ticker = (await client.exchangeDataApi.getMarketTicker(symbol)).data;
141
141
  logger.info(`Exchange Market ticker: ${JSON.stringify(ticker)}`);
142
142
 
143
+ const tickers = (await client.exchangeDataApi.getAllMarketTicker()).data;
144
+ logger.info(`All Market ticker: ${JSON.stringify(tickers)}`);
145
+
143
146
  const recentTrades = (await client.exchangeDataApi.getRecentTrades(symbol))
144
147
  .data;
145
148
  logger.info(`Recent Trades: ${JSON.stringify(recentTrades)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluefin-exchange/pro-sdk",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "OpenAPI client for @bluefin-exchange/pro-sdk",
5
5
  "author": "Bluefin",
6
6
  "repository": {
package/src/api.ts CHANGED
@@ -2178,9 +2178,10 @@ export interface Operators {
2178
2178
  */
2179
2179
  'admin': string;
2180
2180
  /**
2181
- * General operator address
2181
+ * General operator address; AKA Guardian
2182
2182
  * @type {string}
2183
2183
  * @memberof Operators
2184
+ * @deprecated
2184
2185
  */
2185
2186
  'operator': string;
2186
2187
  /**
@@ -2193,12 +2194,14 @@ export interface Operators {
2193
2194
  * Funding operator address
2194
2195
  * @type {string}
2195
2196
  * @memberof Operators
2197
+ * @deprecated
2196
2198
  */
2197
2199
  'funding': string;
2198
2200
  /**
2199
2201
  * Fee operator address
2200
2202
  * @type {string}
2201
2203
  * @memberof Operators
2204
+ * @deprecated
2202
2205
  */
2203
2206
  'fee': string;
2204
2207
  }
@@ -4353,6 +4356,36 @@ export class AuthApi extends BaseAPI {
4353
4356
  */
4354
4357
  export const ExchangeApiAxiosParamCreator = function (configuration?: Configuration) {
4355
4358
  return {
4359
+ /**
4360
+ *
4361
+ * @summary Get all market ticker information
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ */
4365
+ getAllMarketTicker: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4366
+ const localVarPath = `/v1/exchange/tickers`;
4367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4369
+ let baseOptions;
4370
+ if (configuration) {
4371
+ baseOptions = configuration.baseOptions;
4372
+ }
4373
+
4374
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4375
+ const localVarHeaderParameter = {} as any;
4376
+ const localVarQueryParameter = {} as any;
4377
+
4378
+
4379
+
4380
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4382
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4383
+
4384
+ return {
4385
+ url: toPathString(localVarUrlObj),
4386
+ options: localVarRequestOptions,
4387
+ };
4388
+ },
4356
4389
  /**
4357
4390
  *
4358
4391
  * @summary Kline/candlestick data.
@@ -4662,6 +4695,18 @@ export const ExchangeApiAxiosParamCreator = function (configuration?: Configurat
4662
4695
  export const ExchangeApiFp = function(configuration?: Configuration) {
4663
4696
  const localVarAxiosParamCreator = ExchangeApiAxiosParamCreator(configuration)
4664
4697
  return {
4698
+ /**
4699
+ *
4700
+ * @summary Get all market ticker information
4701
+ * @param {*} [options] Override http request option.
4702
+ * @throws {RequiredError}
4703
+ */
4704
+ async getAllMarketTicker(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TickerResponse>>> {
4705
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllMarketTicker(options);
4706
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4707
+ const localVarOperationServerBasePath = operationServerMap['ExchangeApi.getAllMarketTicker']?.[localVarOperationServerIndex]?.url;
4708
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4709
+ },
4665
4710
  /**
4666
4711
  *
4667
4712
  * @summary Kline/candlestick data.
@@ -4765,6 +4810,15 @@ export const ExchangeApiFp = function(configuration?: Configuration) {
4765
4810
  export const ExchangeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4766
4811
  const localVarFp = ExchangeApiFp(configuration)
4767
4812
  return {
4813
+ /**
4814
+ *
4815
+ * @summary Get all market ticker information
4816
+ * @param {*} [options] Override http request option.
4817
+ * @throws {RequiredError}
4818
+ */
4819
+ getAllMarketTicker(options?: RawAxiosRequestConfig): AxiosPromise<Array<TickerResponse>> {
4820
+ return localVarFp.getAllMarketTicker(options).then((request) => request(axios, basePath));
4821
+ },
4768
4822
  /**
4769
4823
  *
4770
4824
  * @summary Kline/candlestick data.
@@ -4850,6 +4904,17 @@ export const ExchangeApiFactory = function (configuration?: Configuration, baseP
4850
4904
  * @extends {BaseAPI}
4851
4905
  */
4852
4906
  export class ExchangeApi extends BaseAPI {
4907
+ /**
4908
+ *
4909
+ * @summary Get all market ticker information
4910
+ * @param {*} [options] Override http request option.
4911
+ * @throws {RequiredError}
4912
+ * @memberof ExchangeApi
4913
+ */
4914
+ public getAllMarketTicker(options?: RawAxiosRequestConfig) {
4915
+ return ExchangeApiFp(this.configuration).getAllMarketTicker(options).then((request) => request(this.axios, this.basePath));
4916
+ }
4917
+
4853
4918
  /**
4854
4919
  *
4855
4920
  * @summary Kline/candlestick data.