skewtape 0.1.4 → 0.1.6

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.
@@ -401,7 +401,10 @@ function computeQuote(q) {
401
401
  res.venues.push({ depth_micro: safe(m.depth, "depth"), ...legOut(leg, q.side) });
402
402
  if (m.fee === null && feeKnown) {
403
403
  res.warnings.push(`fee_unknown: ${m.m.venue} (${m.m.fee_status}): its fee is unknown, so it is left out of the plan; venues shows it alone, before fees`);
404
- leftOut = true;
404
+ // The partial line names the venues left out only when one of them
405
+ // could have filled some of the size.
406
+ if (alloc > 0n)
407
+ leftOut = true;
405
408
  continue;
406
409
  }
407
410
  if (m.fee === null)
@@ -3,4 +3,4 @@
3
3
  * patch is this package's own (ADR-0015). release-sdks.yml sets package.json
4
4
  * from the api/vX.Y.Z tag; keep this constant equal to it.
5
5
  */
6
- export declare const VERSION = "0.1.4";
6
+ export declare const VERSION = "0.1.6";
@@ -6,4 +6,4 @@ exports.VERSION = void 0;
6
6
  * patch is this package's own (ADR-0015). release-sdks.yml sets package.json
7
7
  * from the api/vX.Y.Z tag; keep this constant equal to it.
8
8
  */
9
- exports.VERSION = "0.1.4";
9
+ exports.VERSION = "0.1.6";
@@ -392,7 +392,10 @@ export function computeQuote(q) {
392
392
  res.venues.push({ depth_micro: safe(m.depth, "depth"), ...legOut(leg, q.side) });
393
393
  if (m.fee === null && feeKnown) {
394
394
  res.warnings.push(`fee_unknown: ${m.m.venue} (${m.m.fee_status}): its fee is unknown, so it is left out of the plan; venues shows it alone, before fees`);
395
- leftOut = true;
395
+ // The partial line names the venues left out only when one of them
396
+ // could have filled some of the size.
397
+ if (alloc > 0n)
398
+ leftOut = true;
396
399
  continue;
397
400
  }
398
401
  if (m.fee === null)
@@ -3,4 +3,4 @@
3
3
  * patch is this package's own (ADR-0015). release-sdks.yml sets package.json
4
4
  * from the api/vX.Y.Z tag; keep this constant equal to it.
5
5
  */
6
- export declare const VERSION = "0.1.4";
6
+ export declare const VERSION = "0.1.6";
@@ -3,4 +3,4 @@
3
3
  * patch is this package's own (ADR-0015). release-sdks.yml sets package.json
4
4
  * from the api/vX.Y.Z tag; keep this constant equal to it.
5
5
  */
6
- export const VERSION = "0.1.4";
6
+ export const VERSION = "0.1.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skewtape",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Skewtape API client: prediction-market data across venues in one schema, with matched events.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/quote-math.ts CHANGED
@@ -514,7 +514,9 @@ export function computeQuote(q: QuoteInput): QuoteResult {
514
514
  res.venues.push({ depth_micro: safe(m.depth, "depth"), ...legOut(leg, q.side) });
515
515
  if (m.fee === null && feeKnown) {
516
516
  res.warnings.push(`fee_unknown: ${m.m.venue} (${m.m.fee_status}): its fee is unknown, so it is left out of the plan; venues shows it alone, before fees`);
517
- leftOut = true;
517
+ // The partial line names the venues left out only when one of them
518
+ // could have filled some of the size.
519
+ if (alloc > 0n) leftOut = true;
518
520
  continue;
519
521
  }
520
522
  if (m.fee === null) res.warnings.push(`fee_unknown: ${m.m.venue} (${m.m.fee_status}): its fee is not counted`);
package/src/version.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  * patch is this package's own (ADR-0015). release-sdks.yml sets package.json
4
4
  * from the api/vX.Y.Z tag; keep this constant equal to it.
5
5
  */
6
- export const VERSION = "0.1.4";
6
+ export const VERSION = "0.1.6";