@dydxprotocol/v4-client-js 3.5.0 → 3.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-client-js",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "General client library for the new dYdX system (v4 decentralized)",
5
5
  "main": "build/cjs/src/index.js",
6
6
  "module": "build/esm/src/index.js",
@@ -550,7 +550,11 @@ export class CompositeClient {
550
550
  );
551
551
  const orderTimeInForce = calculateTimeInForce(type, timeInForce, execution, postOnly);
552
552
  let goodTilBlockTime = 0;
553
- if (orderFlags === OrderFlags.LONG_TERM || orderFlags === OrderFlags.CONDITIONAL) {
553
+ if (
554
+ orderFlags === OrderFlags.LONG_TERM ||
555
+ orderFlags === OrderFlags.CONDITIONAL ||
556
+ orderFlags === OrderFlags.TWAP
557
+ ) {
554
558
  if (goodTilTimeInSeconds == null) {
555
559
  throw new Error('goodTilTimeInSeconds must be set for LONG_TERM or CONDITIONAL order');
556
560
  } else {