@compass-labs/api-sdk 2.2.108-rc.0 → 2.2.109

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.
Files changed (93) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/lib/config.js.map +1 -1
  4. package/dist/commonjs/models/components/creditswaprequest.d.ts +8 -3
  5. package/dist/commonjs/models/components/creditswaprequest.d.ts.map +1 -1
  6. package/dist/commonjs/models/components/creditswaprequest.js +2 -1
  7. package/dist/commonjs/models/components/creditswaprequest.js.map +1 -1
  8. package/dist/commonjs/models/components/creditswapresponse.d.ts +6 -6
  9. package/dist/commonjs/models/components/creditswapresponse.js +1 -1
  10. package/dist/commonjs/models/components/perpetualtradingopportunity.d.ts +4 -0
  11. package/dist/commonjs/models/components/perpetualtradingopportunity.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/perpetualtradingopportunity.js +2 -0
  13. package/dist/commonjs/models/components/perpetualtradingopportunity.js.map +1 -1
  14. package/dist/esm/lib/config.d.ts +2 -2
  15. package/dist/esm/lib/config.js +2 -2
  16. package/dist/esm/lib/config.js.map +1 -1
  17. package/dist/esm/models/components/creditswaprequest.d.ts +8 -3
  18. package/dist/esm/models/components/creditswaprequest.d.ts.map +1 -1
  19. package/dist/esm/models/components/creditswaprequest.js +2 -1
  20. package/dist/esm/models/components/creditswaprequest.js.map +1 -1
  21. package/dist/esm/models/components/creditswapresponse.d.ts +6 -6
  22. package/dist/esm/models/components/creditswapresponse.js +1 -1
  23. package/dist/esm/models/components/perpetualtradingopportunity.d.ts +4 -0
  24. package/dist/esm/models/components/perpetualtradingopportunity.d.ts.map +1 -1
  25. package/dist/esm/models/components/perpetualtradingopportunity.js +2 -0
  26. package/dist/esm/models/components/perpetualtradingopportunity.js.map +1 -1
  27. package/docs/models/components/creditswaprequest.md +12 -11
  28. package/docs/models/components/creditswaprequestpricing.md +1 -1
  29. package/docs/models/components/creditswapresponse.md +7 -7
  30. package/docs/models/components/creditswapresponseswapprovider.md +1 -1
  31. package/docs/models/components/perpetualtradingopportunity.md +14 -12
  32. package/examples/node_modules/tsx/dist/cjs/api/index.cjs +2 -1
  33. package/examples/node_modules/tsx/dist/cjs/api/index.d.cts +3 -3
  34. package/examples/node_modules/tsx/dist/cjs/api/index.d.mts +3 -3
  35. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +2 -1
  36. package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
  37. package/examples/node_modules/tsx/dist/cli.mjs +28 -28
  38. package/examples/node_modules/tsx/dist/client-XItNFmsq.cjs +1 -0
  39. package/examples/node_modules/tsx/dist/esm/api/index.cjs +2 -1
  40. package/examples/node_modules/tsx/dist/esm/api/index.d.cts +5 -3
  41. package/examples/node_modules/tsx/dist/esm/api/index.d.mts +5 -3
  42. package/examples/node_modules/tsx/dist/esm/api/index.mjs +2 -1
  43. package/examples/node_modules/tsx/dist/esm/index.mjs +2 -1
  44. package/examples/node_modules/tsx/dist/index-Bqjv9TxC.mjs +1 -0
  45. package/examples/node_modules/tsx/dist/index-DE3OBZuV.mjs +14 -0
  46. package/examples/node_modules/tsx/dist/{lexer-DgIbo0BU.cjs → lexer-CGfpMDSb.cjs} +2 -2
  47. package/examples/node_modules/tsx/dist/{lexer-DQCqS3nf.mjs → lexer-CanA6ArK.mjs} +2 -2
  48. package/examples/node_modules/tsx/dist/loader.mjs +2 -1
  49. package/examples/node_modules/tsx/dist/package-Dj0mHsMt.mjs +1 -0
  50. package/examples/node_modules/tsx/dist/preflight.cjs +1 -1
  51. package/examples/node_modules/tsx/dist/register-B1c7OH6V.cjs +23 -0
  52. package/examples/node_modules/tsx/dist/register-nyXW-TH3.mjs +2 -0
  53. package/examples/node_modules/tsx/dist/repl.mjs +4 -3
  54. package/examples/node_modules/tsx/dist/require-CBjy4Foe.mjs +10 -0
  55. package/examples/node_modules/tsx/dist/require-CVaYn9z3.cjs +1 -0
  56. package/examples/node_modules/tsx/dist/temporary-directory-Du7LpLp9.mjs +1 -0
  57. package/examples/node_modules/tsx/package.json +4 -1
  58. package/examples/package-lock.json +3 -3
  59. package/openapi_prepped_for_speakeasy.json +17 -5
  60. package/package.json +1 -1
  61. package/src/lib/config.ts +2 -2
  62. package/src/models/components/creditswaprequest.ts +9 -3
  63. package/src/models/components/creditswapresponse.ts +6 -6
  64. package/src/models/components/perpetualtradingopportunity.ts +6 -0
  65. package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
  66. package/examples/node_modules/tsx/dist/cli.cjs +0 -54
  67. package/examples/node_modules/tsx/dist/client-D3mGB526.cjs +0 -1
  68. package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +0 -1
  69. package/examples/node_modules/tsx/dist/esm/index.cjs +0 -1
  70. package/examples/node_modules/tsx/dist/get-pipe-path-D4YM6rQt.cjs +0 -1
  71. package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +0 -1
  72. package/examples/node_modules/tsx/dist/index-BWFBUo6r.cjs +0 -1
  73. package/examples/node_modules/tsx/dist/index-D1vYaNWZ.cjs +0 -14
  74. package/examples/node_modules/tsx/dist/index-DCefr8NP.mjs +0 -14
  75. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  76. package/examples/node_modules/tsx/dist/loader.cjs +0 -1
  77. package/examples/node_modules/tsx/dist/node-features-CEjg7cMX.cjs +0 -1
  78. package/examples/node_modules/tsx/dist/node-features-JeyyvQz6.mjs +0 -1
  79. package/examples/node_modules/tsx/dist/package-B1lIY_Tn.cjs +0 -1
  80. package/examples/node_modules/tsx/dist/package-BL7Whz21.mjs +0 -1
  81. package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
  82. package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
  83. package/examples/node_modules/tsx/dist/register-DHgpdRjs.mjs +0 -10
  84. package/examples/node_modules/tsx/dist/register-DjPW2kSr.cjs +0 -2
  85. package/examples/node_modules/tsx/dist/register-OY9cqBEN.cjs +0 -10
  86. package/examples/node_modules/tsx/dist/register-SoqaU4rg.mjs +0 -2
  87. package/examples/node_modules/tsx/dist/repl.cjs +0 -3
  88. package/examples/node_modules/tsx/dist/require-Blr_8TcJ.cjs +0 -1
  89. package/examples/node_modules/tsx/dist/require-Cuv-0BLU.mjs +0 -1
  90. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  91. package/examples/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +0 -1
  92. package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +0 -1
  93. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "0.0.1";
34
34
  readonly sdkVersion: "2.0.0";
35
- readonly genVersion: "2.937.18";
36
- readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.937.18 0.0.1 @compass-labs/api-sdk";
35
+ readonly genVersion: "2.938.0";
36
+ readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.938.0 0.0.1 @compass-labs/api-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -32,7 +32,7 @@ exports.SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "0.0.1",
34
34
  sdkVersion: "2.0.0",
35
- genVersion: "2.937.18",
36
- userAgent: "speakeasy-sdk/typescript 2.0.0 2.937.18 0.0.1 @compass-labs/api-sdk",
35
+ genVersion: "2.938.0",
36
+ userAgent: "speakeasy-sdk/typescript 2.0.0 2.938.0 0.0.1 @compass-labs/api-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAyCH,oDAeC;AAnDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG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AAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,oEAAoE;CAC9D,CAAC"}
@@ -24,7 +24,7 @@ export declare const CreditSwapRequestChain: {
24
24
  */
25
25
  export type CreditSwapRequestChain = ClosedEnum<typeof CreditSwapRequestChain>;
26
26
  /**
27
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
27
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
28
28
  */
29
29
  export declare const CreditSwapRequestPricing: {
30
30
  readonly Auto: "auto";
@@ -32,7 +32,7 @@ export declare const CreditSwapRequestPricing: {
32
32
  readonly Market: "market";
33
33
  };
34
34
  /**
35
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
35
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
36
36
  */
37
37
  export type CreditSwapRequestPricing = ClosedEnum<typeof CreditSwapRequestPricing>;
38
38
  /**
@@ -76,7 +76,11 @@ export type CreditSwapRequest = {
76
76
  */
77
77
  gasSponsorship?: boolean | undefined;
78
78
  /**
79
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
79
+ * If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null). NOTE that this guarantees only that no firm quote was spent — it does not guarantee an absent payload: under 'auto' when the firm provider does not cover or cannot currently price the pair, and always under pricing=market, the call falls through to the aggregator and returns a signable market build (an unsigned transaction, or EIP-712 typed data when gas_sponsorship=true), without requiring the account to hold token_in yet. How the estimate is priced follows `pricing`: on a firm-covered pair whose size the firm provider's live price levels can serve, 'auto' and 'firm' price it from those levels (indicative, transaction stays null — re-call with preview=false for the signable build); otherwise it comes from the market build above (pricing='firm' instead refuses with a typed error). Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.
80
+ */
81
+ preview?: boolean | undefined;
82
+ /**
83
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
80
84
  */
81
85
  pricing?: CreditSwapRequestPricing | undefined;
82
86
  };
@@ -104,6 +108,7 @@ export type CreditSwapRequest$Outbound = {
104
108
  owner: string;
105
109
  chain: string;
106
110
  gas_sponsorship?: boolean | undefined;
111
+ preview?: boolean | undefined;
107
112
  pricing?: string | undefined;
108
113
  };
109
114
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"creditswaprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditswaprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,S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,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAmBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
1
+ {"version":3,"file":"creditswaprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditswaprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,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AAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,wBAAwB,CACS,CAAC;AAE3C,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAoBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -54,7 +54,7 @@ exports.CreditSwapRequestChain = {
54
54
  Tempo: "tempo",
55
55
  };
56
56
  /**
57
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
57
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
58
58
  */
59
59
  exports.CreditSwapRequestPricing = {
60
60
  Auto: "auto",
@@ -85,6 +85,7 @@ exports.CreditSwapRequest$outboundSchema = z.object({
85
85
  owner: z.string(),
86
86
  chain: exports.CreditSwapRequestChain$outboundSchema,
87
87
  gasSponsorship: z.boolean().optional(),
88
+ preview: z.boolean().optional(),
88
89
  pricing: exports.CreditSwapRequestPricing$outboundSchema.optional(),
89
90
  }).transform((v) => {
90
91
  return (0, primitives_js_1.remap)(v, {
@@ -1 +1 @@
1
- {"version":3,"file":"creditswaprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditswaprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,0EAMC;AAYD,0EAMC;AAkDD,0DAMC;AArLD,0CAA4B;AAC5B,2DAA0D;AAa1D;;GAEG;AACU,QAAA,sBAAsB,GAAG;IACpC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAMX;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAyDX,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAKD,gBAAgB;AACH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,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
@@ -5,14 +5,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresponseoutput.js";
6
6
  import { UnsignedTransaction } from "./unsignedtransaction.js";
7
7
  /**
8
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
8
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
9
9
  */
10
10
  export declare const CreditSwapResponseSwapProvider: {
11
11
  readonly Market: "market";
12
12
  readonly Firm: "firm";
13
13
  };
14
14
  /**
15
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
15
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
16
16
  */
17
17
  export type CreditSwapResponseSwapProvider = ClosedEnum<typeof CreditSwapResponseSwapProvider>;
18
18
  /**
@@ -23,7 +23,7 @@ export type CreditSwapResponseSwapProvider = ClosedEnum<typeof CreditSwapRespons
23
23
  */
24
24
  export type CreditSwapResponse = {
25
25
  /**
26
- * Unsigned transaction for direct execution. Present when gas_sponsorship=false.
26
+ * Unsigned transaction for direct execution. Present when gas_sponsorship=false — except firm-priced previews (preview=true responses reporting swap_provider='firm'), which carry the estimate only: the firm quote is fetched at execution time, so there is no payload to sign yet. A preview whose response reports swap_provider='market' does carry this signable payload.
27
27
  */
28
28
  transaction?: UnsignedTransaction | null | undefined;
29
29
  /**
@@ -31,15 +31,15 @@ export type CreditSwapResponse = {
31
31
  */
32
32
  eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
33
33
  /**
34
- * Estimated amount of output token received from the swap. Exact on firm builds (a firm quote fills at this amount or reverts). On market builds it is a quote-time estimate, and `slippage` sets how far below it the transaction's enforced minimum output sits.
34
+ * Estimated amount of output token received from the swap. Exact on executable firm builds (a firm quote fills at this amount or reverts). On market builds it is a quote-time estimate, and `slippage` sets how far below it the transaction's enforced minimum output sits. On preview=true responses reporting 'firm' it is INDICATIVE — computed from the firm provider's live price levels without spending a quote.
35
35
  */
36
36
  estimatedAmountOut: string;
37
37
  /**
38
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
38
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
39
39
  */
40
40
  swapProvider?: CreditSwapResponseSwapProvider | undefined;
41
41
  /**
42
- * Deadline of the firm swap quote. Sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Null on market builds.
42
+ * Deadline of the firm swap quote. Sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Null on market builds and on every preview (a preview never holds a firm quote).
43
43
  */
44
44
  quoteExpiresAt?: Date | null | undefined;
45
45
  };
@@ -44,7 +44,7 @@ const schemas_js_1 = require("../../lib/schemas.js");
44
44
  const batchedsafeoperationsresponseoutput_js_1 = require("./batchedsafeoperationsresponseoutput.js");
45
45
  const unsignedtransaction_js_1 = require("./unsignedtransaction.js");
46
46
  /**
47
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
47
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
48
48
  */
49
49
  exports.CreditSwapResponseSwapProvider = {
50
50
  Market: "market",
@@ -25,6 +25,10 @@ export type PerpetualTradingOpportunity = {
25
25
  * Oracle reference price
26
26
  */
27
27
  oraclePrice: string;
28
+ /**
29
+ * Price 24 hours ago, for computing 24h price change (0 for newly listed markets)
30
+ */
31
+ prevDayPrice: string;
28
32
  /**
29
33
  * Open interest in USD
30
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualtradingopportunity.d.ts","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAuBP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
1
+ {"version":3,"file":"perpetualtradingopportunity.d.ts","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAyBP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
@@ -48,6 +48,7 @@ exports.PerpetualTradingOpportunity$inboundSchema = z.object({
48
48
  category: z.string(),
49
49
  mark_price: z.string(),
50
50
  oracle_price: z.string(),
51
+ prev_day_price: z.string(),
51
52
  open_interest: z.string(),
52
53
  volume_24h: z.string(),
53
54
  funding_rate: z.string(),
@@ -58,6 +59,7 @@ exports.PerpetualTradingOpportunity$inboundSchema = z.object({
58
59
  "asset_id": "assetId",
59
60
  "mark_price": "markPrice",
60
61
  "oracle_price": "oraclePrice",
62
+ "prev_day_price": "prevDayPrice",
61
63
  "open_interest": "openInterest",
62
64
  "volume_24h": "volume24h",
63
65
  "funding_rate": "fundingRate",
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualtradingopportunity.js","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFH,kFAQC;AAzFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAkDjD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC9B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;QAC7B,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"perpetualtradingopportunity.js","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyF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,7 +32,7 @@ export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "0.0.1";
34
34
  readonly sdkVersion: "2.0.0";
35
- readonly genVersion: "2.937.18";
36
- readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.937.18 0.0.1 @compass-labs/api-sdk";
35
+ readonly genVersion: "2.938.0";
36
+ readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.938.0 0.0.1 @compass-labs/api-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -28,7 +28,7 @@ export const SDK_METADATA = {
28
28
  language: "typescript",
29
29
  openapiDocVersion: "0.0.1",
30
30
  sdkVersion: "2.0.0",
31
- genVersion: "2.937.18",
32
- userAgent: "speakeasy-sdk/typescript 2.0.0 2.937.18 0.0.1 @compass-labs/api-sdk",
31
+ genVersion: "2.938.0",
32
+ userAgent: "speakeasy-sdk/typescript 2.0.0 2.938.0 0.0.1 @compass-labs/api-sdk",
33
33
  };
34
34
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,4BAA4B;CACpB,CAAC;AA0BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CA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,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,oEAAoE;CAC9D,CAAC"}
@@ -24,7 +24,7 @@ export declare const CreditSwapRequestChain: {
24
24
  */
25
25
  export type CreditSwapRequestChain = ClosedEnum<typeof CreditSwapRequestChain>;
26
26
  /**
27
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
27
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
28
28
  */
29
29
  export declare const CreditSwapRequestPricing: {
30
30
  readonly Auto: "auto";
@@ -32,7 +32,7 @@ export declare const CreditSwapRequestPricing: {
32
32
  readonly Market: "market";
33
33
  };
34
34
  /**
35
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
35
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
36
36
  */
37
37
  export type CreditSwapRequestPricing = ClosedEnum<typeof CreditSwapRequestPricing>;
38
38
  /**
@@ -76,7 +76,11 @@ export type CreditSwapRequest = {
76
76
  */
77
77
  gasSponsorship?: boolean | undefined;
78
78
  /**
79
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
79
+ * If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null). NOTE that this guarantees only that no firm quote was spent — it does not guarantee an absent payload: under 'auto' when the firm provider does not cover or cannot currently price the pair, and always under pricing=market, the call falls through to the aggregator and returns a signable market build (an unsigned transaction, or EIP-712 typed data when gas_sponsorship=true), without requiring the account to hold token_in yet. How the estimate is priced follows `pricing`: on a firm-covered pair whose size the firm provider's live price levels can serve, 'auto' and 'firm' price it from those levels (indicative, transaction stays null — re-call with preview=false for the signable build); otherwise it comes from the market build above (pricing='firm' instead refuses with a typed error). Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.
80
+ */
81
+ preview?: boolean | undefined;
82
+ /**
83
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
80
84
  */
81
85
  pricing?: CreditSwapRequestPricing | undefined;
82
86
  };
@@ -104,6 +108,7 @@ export type CreditSwapRequest$Outbound = {
104
108
  owner: string;
105
109
  chain: string;
106
110
  gas_sponsorship?: boolean | undefined;
111
+ preview?: boolean | undefined;
107
112
  pricing?: string | undefined;
108
113
  };
109
114
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"creditswaprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditswaprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAA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,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAmBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
1
+ {"version":3,"file":"creditswaprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditswaprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KA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AK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAoBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -15,7 +15,7 @@ export const CreditSwapRequestChain = {
15
15
  Tempo: "tempo",
16
16
  };
17
17
  /**
18
- * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
18
+ * Swap routing policy. 'auto': a firm zero-slippage quote when a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route; an uncovered pair fails with a typed error instead of silently substituting market pricing — previews included: a preview the firm provider's live price levels cannot price returns the same typed error rather than market numbers. 'market': never route through the firm venue; the swap is priced by the aggregator and bounded by `slippage` (which firm fills ignore). 'firm' is incompatible with gas_sponsorship (sponsored swaps force market routing).
19
19
  */
20
20
  export const CreditSwapRequestPricing = {
21
21
  Auto: "auto",
@@ -46,6 +46,7 @@ export const CreditSwapRequest$outboundSchema = z.object({
46
46
  owner: z.string(),
47
47
  chain: CreditSwapRequestChain$outboundSchema,
48
48
  gasSponsorship: z.boolean().optional(),
49
+ preview: z.boolean().optional(),
49
50
  pricing: CreditSwapRequestPricing$outboundSchema.optional(),
50
51
  }).transform((v) => {
51
52
  return remap$(v, {
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5,14 +5,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresponseoutput.js";
6
6
  import { UnsignedTransaction } from "./unsignedtransaction.js";
7
7
  /**
8
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
8
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
9
9
  */
10
10
  export declare const CreditSwapResponseSwapProvider: {
11
11
  readonly Market: "market";
12
12
  readonly Firm: "firm";
13
13
  };
14
14
  /**
15
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
15
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
16
16
  */
17
17
  export type CreditSwapResponseSwapProvider = ClosedEnum<typeof CreditSwapResponseSwapProvider>;
18
18
  /**
@@ -23,7 +23,7 @@ export type CreditSwapResponseSwapProvider = ClosedEnum<typeof CreditSwapRespons
23
23
  */
24
24
  export type CreditSwapResponse = {
25
25
  /**
26
- * Unsigned transaction for direct execution. Present when gas_sponsorship=false.
26
+ * Unsigned transaction for direct execution. Present when gas_sponsorship=false — except firm-priced previews (preview=true responses reporting swap_provider='firm'), which carry the estimate only: the firm quote is fetched at execution time, so there is no payload to sign yet. A preview whose response reports swap_provider='market' does carry this signable payload.
27
27
  */
28
28
  transaction?: UnsignedTransaction | null | undefined;
29
29
  /**
@@ -31,15 +31,15 @@ export type CreditSwapResponse = {
31
31
  */
32
32
  eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
33
33
  /**
34
- * Estimated amount of output token received from the swap. Exact on firm builds (a firm quote fills at this amount or reverts). On market builds it is a quote-time estimate, and `slippage` sets how far below it the transaction's enforced minimum output sits.
34
+ * Estimated amount of output token received from the swap. Exact on executable firm builds (a firm quote fills at this amount or reverts). On market builds it is a quote-time estimate, and `slippage` sets how far below it the transaction's enforced minimum output sits. On preview=true responses reporting 'firm' it is INDICATIVE — computed from the firm provider's live price levels without spending a quote.
35
35
  */
36
36
  estimatedAmountOut: string;
37
37
  /**
38
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
38
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
39
39
  */
40
40
  swapProvider?: CreditSwapResponseSwapProvider | undefined;
41
41
  /**
42
- * Deadline of the firm swap quote. Sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Null on market builds.
42
+ * Deadline of the firm swap quote. Sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Null on market builds and on every preview (a preview never holds a firm quote).
43
43
  */
44
44
  quoteExpiresAt?: Date | null | undefined;
45
45
  };
@@ -7,7 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { BatchedSafeOperationsResponseOutput$inboundSchema, } from "./batchedsafeoperationsresponseoutput.js";
8
8
  import { UnsignedTransaction$inboundSchema, } from "./unsignedtransaction.js";
9
9
  /**
10
- * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
10
+ * Identifies which route priced the swap. 'market': a DEX aggregator, slippage-bounded. 'firm': a zero-slippage quote that fills exactly or reverts. On preview=true responses 'firm' means the estimate is INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quote at signing time. Always present. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED, and under 'auto' a firm build can fall back to market transparently.
11
11
  */
12
12
  export const CreditSwapResponseSwapProvider = {
13
13
  Market: "market",
@@ -25,6 +25,10 @@ export type PerpetualTradingOpportunity = {
25
25
  * Oracle reference price
26
26
  */
27
27
  oraclePrice: string;
28
+ /**
29
+ * Price 24 hours ago, for computing 24h price change (0 for newly listed markets)
30
+ */
31
+ prevDayPrice: string;
28
32
  /**
29
33
  * Open interest in USD
30
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualtradingopportunity.d.ts","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAuBP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
1
+ {"version":3,"file":"perpetualtradingopportunity.d.ts","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAyBP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
@@ -11,6 +11,7 @@ export const PerpetualTradingOpportunity$inboundSchema = z.object({
11
11
  category: z.string(),
12
12
  mark_price: z.string(),
13
13
  oracle_price: z.string(),
14
+ prev_day_price: z.string(),
14
15
  open_interest: z.string(),
15
16
  volume_24h: z.string(),
16
17
  funding_rate: z.string(),
@@ -21,6 +22,7 @@ export const PerpetualTradingOpportunity$inboundSchema = z.object({
21
22
  "asset_id": "assetId",
22
23
  "mark_price": "markPrice",
23
24
  "oracle_price": "oraclePrice",
25
+ "prev_day_price": "prevDayPrice",
24
26
  "open_interest": "openInterest",
25
27
  "volume_24h": "volume24h",
26
28
  "funding_rate": "fundingRate",
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualtradingopportunity.js","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAkDjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC9B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;QAC7B,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"perpetualtradingopportunity.js","sourceRoot":"","sources":["../../../../src/models/components/perpetualtradingopportunity.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAsDjD,gBAAgB;AAChB,MAAM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