@gbozee/ultimate 0.0.2-115 → 0.0.2-116

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.cjs CHANGED
@@ -55124,7 +55124,10 @@ class AccountService {
55124
55124
  this.proxyAgent = payload.proxyAgent;
55125
55125
  }
55126
55126
  async getAccount(owner) {
55127
- const credentials = this.getCredentials(owner, "binance");
55127
+ const credentials = await this.getCredentials({
55128
+ account: owner,
55129
+ exchange: "binance"
55130
+ });
55128
55131
  const email = credentials.email;
55129
55132
  const is_sub_account = owner !== "main_account";
55130
55133
  return {
package/dist/index.d.ts CHANGED
@@ -302,11 +302,13 @@ export interface CandlestickAnalysisResult {
302
302
  }
303
303
  declare abstract class BaseExchange {
304
304
  client: any;
305
- getCredentials: (owner: string) => {
305
+ getCredentials: (payload: {
306
+ account: string;
307
+ }) => Promise<{
306
308
  api_key: string;
307
309
  api_secret: string;
308
310
  email: string;
309
- };
311
+ }>;
310
312
  proxyAgent?: any;
311
313
  constructor(client: any);
312
314
  protected abstract getPositionInfo(symbol: string): Promise<any>;
@@ -508,11 +510,13 @@ declare abstract class BaseExchange {
508
510
  symbol: string;
509
511
  }): Promise<CandlestickAnalysisResult>;
510
512
  setAccountDetails(payload: {
511
- getCredentials: (owner: string) => {
513
+ getCredentials: (payload: {
514
+ account: string;
515
+ }) => Promise<{
512
516
  api_key: string;
513
517
  api_secret: string;
514
518
  email: string;
515
- };
519
+ }>;
516
520
  proxyAgent?: any;
517
521
  }): void;
518
522
  }
package/dist/index.js CHANGED
@@ -55074,7 +55074,10 @@ class AccountService {
55074
55074
  this.proxyAgent = payload.proxyAgent;
55075
55075
  }
55076
55076
  async getAccount(owner) {
55077
- const credentials = this.getCredentials(owner, "binance");
55077
+ const credentials = await this.getCredentials({
55078
+ account: owner,
55079
+ exchange: "binance"
55080
+ });
55078
55081
  const email = credentials.email;
55079
55082
  const is_sub_account = owner !== "main_account";
55080
55083
  return {
@@ -61804,7 +61804,10 @@ class AccountService {
61804
61804
  this.proxyAgent = payload.proxyAgent;
61805
61805
  }
61806
61806
  async getAccount(owner) {
61807
- const credentials = this.getCredentials(owner, "binance");
61807
+ const credentials = await this.getCredentials({
61808
+ account: owner,
61809
+ exchange: "binance"
61810
+ });
61808
61811
  const email = credentials.email;
61809
61812
  const is_sub_account = owner !== "main_account";
61810
61813
  return {
@@ -61781,7 +61781,10 @@ class AccountService {
61781
61781
  this.proxyAgent = payload.proxyAgent;
61782
61782
  }
61783
61783
  async getAccount(owner) {
61784
- const credentials = this.getCredentials(owner, "binance");
61784
+ const credentials = await this.getCredentials({
61785
+ account: owner,
61786
+ exchange: "binance"
61787
+ });
61785
61788
  const email = credentials.email;
61786
61789
  const is_sub_account = owner !== "main_account";
61787
61790
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-115",
4
+ "version": "0.0.2-116",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",