@tradejs/types 3.1.29-beta.291 → 3.1.29-beta.292

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/dist/index.d.mts CHANGED
@@ -1170,13 +1170,13 @@ type Order = {
1170
1170
  orderId?: string;
1171
1171
  signal?: Signal;
1172
1172
  /** Only an authoritative rejection; never call for a timeout or ambiguous response. */
1173
- onRejected?: () => Promise<void>;
1173
+ onRejected?: (retrying?: boolean) => Promise<void>;
1174
1174
  /** Await after preparation/quantity normalization, immediately before submission. */
1175
1175
  beforeSubmit?: (context: {
1176
1176
  qty: number;
1177
1177
  /** Simulation connectors may supply their actual modeled execution price. */
1178
1178
  executionPrice?: number;
1179
- }) => Promise<void>;
1179
+ }) => Promise<void | string>;
1180
1180
  };
1181
1181
  type Position = {
1182
1182
  symbol: string;
package/dist/index.d.ts CHANGED
@@ -1170,13 +1170,13 @@ type Order = {
1170
1170
  orderId?: string;
1171
1171
  signal?: Signal;
1172
1172
  /** Only an authoritative rejection; never call for a timeout or ambiguous response. */
1173
- onRejected?: () => Promise<void>;
1173
+ onRejected?: (retrying?: boolean) => Promise<void>;
1174
1174
  /** Await after preparation/quantity normalization, immediately before submission. */
1175
1175
  beforeSubmit?: (context: {
1176
1176
  qty: number;
1177
1177
  /** Simulation connectors may supply their actual modeled execution price. */
1178
1178
  executionPrice?: number;
1179
- }) => Promise<void>;
1179
+ }) => Promise<void | string>;
1180
1180
  };
1181
1181
  type Position = {
1182
1182
  symbol: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradejs/types",
3
- "version": "3.1.29-beta.291",
3
+ "version": "3.1.29-beta.292",
4
4
  "description": "MIT-licensed shared TypeScript contracts for the TradeJS framework.",
5
5
  "keywords": [
6
6
  "tradejs",