@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/build/cjs/src/clients/composite-client.js +4 -2
- package/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/esm/src/clients/composite-client.d.ts.map +1 -1
- package/build/esm/src/clients/composite-client.js +4 -2
- package/build/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/clients/composite-client.ts +5 -1
package/package.json
CHANGED
|
@@ -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 (
|
|
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 {
|