@evedex/exchange-crypto 1.0.20 → 1.0.23

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/README.md CHANGED
@@ -1 +1,2 @@
1
1
  # exchange-crypto
2
+
package/dist/cjs/index.js CHANGED
@@ -119,7 +119,7 @@ function signLimitOrder(signer, order) {
119
119
  chainId,
120
120
  };
121
121
  const signature = yield signer.signTypedData((0, crypto_1.getDomainData)(chainId), crypto_1.EIP712Schemas.createLimitOrder, Object.assign(Object.assign({}, normalize), { quantity: (0, crypto_1.toEthNumber)(normalize.quantity), limitPrice: (0, crypto_1.toEthNumber)(normalize.limitPrice) }));
122
- return Object.assign(Object.assign(Object.assign({}, normalize), (order.postOnly && { postOnly: "yes" })), { signature: signer.serializeSignature(signature) });
122
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, normalize), (order.postOnly && { postOnly: "yes" })), (order.timeInForce ? { timeInForce: order.timeInForce } : {})), { signature: signer.serializeSignature(signature) });
123
123
  });
124
124
  }
125
125
  function signMarketOrder(signer, order) {
@@ -31,6 +31,7 @@ export interface LimitOrder extends CreateBaseOrder {
31
31
  quantity: Big.BigSource;
32
32
  limitPrice: Big.BigSource;
33
33
  postOnly: boolean;
34
+ timeInForce?: TimeInForce;
34
35
  }
35
36
  export interface MarketOrder extends CreateBaseOrder {
36
37
  timeInForce: TimeInForce;
package/dist/mjs/index.js CHANGED
@@ -61,6 +61,7 @@ export async function signLimitOrder(signer, order) {
61
61
  return {
62
62
  ...normalize,
63
63
  ...(order.postOnly && { postOnly: "yes" }),
64
+ ...(order.timeInForce ? { timeInForce: order.timeInForce } : {}),
64
65
  signature: signer.serializeSignature(signature),
65
66
  };
66
67
  }
@@ -31,6 +31,7 @@ export interface LimitOrder extends CreateBaseOrder {
31
31
  quantity: Big.BigSource;
32
32
  limitPrice: Big.BigSource;
33
33
  postOnly: boolean;
34
+ timeInForce?: TimeInForce;
34
35
  }
35
36
  export interface MarketOrder extends CreateBaseOrder {
36
37
  timeInForce: TimeInForce;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evedex/exchange-crypto",
3
- "version": "1.0.20",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",