@evedex/exchange-api 1.0.42 → 1.0.44

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.
@@ -1,9 +1,9 @@
1
1
  import { ApiKey, HttpClient, JWT, RefreshedJWT } from "./utils";
2
2
  export interface SignInSiweQuery {
3
- address: string;
3
+ wallet: string;
4
4
  message: string;
5
5
  signature: string;
6
- nonce?: string;
6
+ nonce: string;
7
7
  }
8
8
  export interface Nonce {
9
9
  nonce: string;
@@ -74,7 +74,7 @@ class AuthRestGateway {
74
74
  }
75
75
  // Actions
76
76
  signInSiwe(query) {
77
- return this.post("/auth/sign-in/siwe", query);
77
+ return this.post("/auth/user/sign-up", query);
78
78
  }
79
79
  getNonce() {
80
80
  return this.get("/auth/nonce");
@@ -71,7 +71,7 @@ export declare class ExchangeRestGateway {
71
71
  getWalletBalances(): Promise<WalletBalanceList>;
72
72
  getFunding(): Promise<FundingList>;
73
73
  getAvailableBalance(): Promise<AvailableBalance>;
74
- getPower({ instrument }: PowerQuery): Promise<Power>;
74
+ getPower(query: PowerQuery): Promise<Power>;
75
75
  getPositions(): Promise<PositionList>;
76
76
  getOrders(query: OrderListQuery): Promise<OrderList>;
77
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({ instrument }) {
108
- return this.authGet(`/api/market/power?instrument=${instrument}`);
107
+ getPower(query) {
108
+ return this.authGet(`/api/market/power`, (0, utils_1.serializeQueryParams)(query));
109
109
  }
110
110
  getPositions() {
111
111
  return this.authGet("/api/position");
@@ -1,9 +1,9 @@
1
1
  import { ApiKey, HttpClient, JWT, RefreshedJWT } from "./utils";
2
2
  export interface SignInSiweQuery {
3
- address: string;
3
+ wallet: string;
4
4
  message: string;
5
5
  signature: string;
6
- nonce?: string;
6
+ nonce: string;
7
7
  }
8
8
  export interface Nonce {
9
9
  nonce: string;
@@ -72,7 +72,7 @@ export class AuthRestGateway {
72
72
  }
73
73
  // Actions
74
74
  signInSiwe(query) {
75
- return this.post("/auth/sign-in/siwe", query);
75
+ return this.post("/auth/user/sign-up", query);
76
76
  }
77
77
  getNonce() {
78
78
  return this.get("/auth/nonce");
@@ -71,7 +71,7 @@ export declare class ExchangeRestGateway {
71
71
  getWalletBalances(): Promise<WalletBalanceList>;
72
72
  getFunding(): Promise<FundingList>;
73
73
  getAvailableBalance(): Promise<AvailableBalance>;
74
- getPower({ instrument }: PowerQuery): Promise<Power>;
74
+ getPower(query: PowerQuery): Promise<Power>;
75
75
  getPositions(): Promise<PositionList>;
76
76
  getOrders(query: OrderListQuery): Promise<OrderList>;
77
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({ instrument }) {
106
- return this.authGet(`/api/market/power?instrument=${instrument}`);
105
+ getPower(query) {
106
+ return this.authGet(`/api/market/power`, serializeQueryParams(query));
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.42",
3
+ "version": "1.0.44",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",