@evedex/exchange-api 1.0.41 → 1.0.42

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.
@@ -50,6 +50,9 @@ export interface ExchangeRestGatewayOptions {
50
50
  exchangeURI: string;
51
51
  httpClient: HttpClient;
52
52
  }
53
+ export interface PowerQuery {
54
+ instrument: string;
55
+ }
53
56
  export declare class ExchangeRestGateway {
54
57
  readonly options: ExchangeRestGatewayOptions;
55
58
  constructor(options: ExchangeRestGatewayOptions);
@@ -68,7 +71,7 @@ export declare class ExchangeRestGateway {
68
71
  getWalletBalances(): Promise<WalletBalanceList>;
69
72
  getFunding(): Promise<FundingList>;
70
73
  getAvailableBalance(): Promise<AvailableBalance>;
71
- getPower(): Promise<Power>;
74
+ getPower({ instrument }: PowerQuery): Promise<Power>;
72
75
  getPositions(): Promise<PositionList>;
73
76
  getOrders(query: OrderListQuery): Promise<OrderList>;
74
77
  getOpenedOrders(): Promise<OpenedOrdersList>;
@@ -104,8 +104,8 @@ class ExchangeRestGateway {
104
104
  getAvailableBalance() {
105
105
  return this.authGet("/api/market/available-balance");
106
106
  }
107
- getPower() {
108
- return this.authGet("/api/market/power");
107
+ getPower({ instrument }) {
108
+ return this.authGet(`/api/market/power?instrument=${instrument}`);
109
109
  }
110
110
  getPositions() {
111
111
  return this.authGet("/api/position");
@@ -50,6 +50,9 @@ export interface ExchangeRestGatewayOptions {
50
50
  exchangeURI: string;
51
51
  httpClient: HttpClient;
52
52
  }
53
+ export interface PowerQuery {
54
+ instrument: string;
55
+ }
53
56
  export declare class ExchangeRestGateway {
54
57
  readonly options: ExchangeRestGatewayOptions;
55
58
  constructor(options: ExchangeRestGatewayOptions);
@@ -68,7 +71,7 @@ export declare class ExchangeRestGateway {
68
71
  getWalletBalances(): Promise<WalletBalanceList>;
69
72
  getFunding(): Promise<FundingList>;
70
73
  getAvailableBalance(): Promise<AvailableBalance>;
71
- getPower(): Promise<Power>;
74
+ getPower({ instrument }: PowerQuery): Promise<Power>;
72
75
  getPositions(): Promise<PositionList>;
73
76
  getOrders(query: OrderListQuery): Promise<OrderList>;
74
77
  getOpenedOrders(): Promise<OpenedOrdersList>;
@@ -102,8 +102,8 @@ export class ExchangeRestGateway {
102
102
  getAvailableBalance() {
103
103
  return this.authGet("/api/market/available-balance");
104
104
  }
105
- getPower() {
106
- return this.authGet("/api/market/power");
105
+ getPower({ instrument }) {
106
+ return this.authGet(`/api/market/power?instrument=${instrument}`);
107
107
  }
108
108
  getPositions() {
109
109
  return this.authGet("/api/position");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evedex/exchange-api",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",