@compass-labs/api-sdk 2.2.45 → 2.2.46-rc.1

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 (229) hide show
  1. package/README.md +16 -18
  2. package/codeSamples_typescript.yaml +0 -6
  3. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts +12 -8
  4. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js +12 -8
  6. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js.map +1 -1
  7. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts +8 -3
  8. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts.map +1 -1
  9. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.js +8 -3
  10. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.js.map +1 -1
  11. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts +16 -2
  12. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js +22 -3
  14. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js.map +1 -1
  15. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +17 -16
  16. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js +17 -16
  18. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js.map +1 -1
  19. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts +9 -5
  20. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts.map +1 -1
  21. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js +9 -5
  22. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js.map +1 -1
  23. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts +10 -12
  24. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts.map +1 -1
  25. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js +10 -12
  26. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js.map +1 -1
  27. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +10 -11
  28. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +10 -11
  30. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js.map +1 -1
  31. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts +10 -5
  32. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts.map +1 -1
  33. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.js +10 -5
  34. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.js.map +1 -1
  35. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +4 -4
  36. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +1 -1
  37. package/dist/commonjs/models/components/index.d.ts +2 -1
  38. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/index.js +2 -1
  40. package/dist/commonjs/models/components/index.js.map +1 -1
  41. package/dist/commonjs/models/components/marketdetail.d.ts +10 -5
  42. package/dist/commonjs/models/components/marketdetail.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/marketdetail.js +3 -1
  44. package/dist/commonjs/models/components/marketdetail.js.map +1 -1
  45. package/dist/commonjs/models/components/ohlccandle.d.ts +1 -1
  46. package/dist/commonjs/models/components/orderstatus.d.ts +8 -8
  47. package/dist/commonjs/models/components/orderstatus.js +1 -1
  48. package/dist/commonjs/models/components/ordertosign.d.ts +9 -10
  49. package/dist/commonjs/models/components/ordertosign.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/ordertosign.js.map +1 -1
  51. package/dist/commonjs/models/components/quote.d.ts +2 -2
  52. package/dist/commonjs/models/components/quotefee.d.ts +2 -2
  53. package/dist/commonjs/models/components/tokenizedassetsbuildorderrequest.d.ts +3 -3
  54. package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.d.ts +7 -8
  55. package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.js.map +1 -1
  57. package/dist/commonjs/models/components/tokenizedassetscancelorderrequest.d.ts +1 -1
  58. package/dist/commonjs/models/components/tokenizedassetsohlcinterval.d.ts +15 -0
  59. package/dist/commonjs/models/components/tokenizedassetsohlcinterval.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/{tokenizedassetsohlcresponse.js → tokenizedassetsohlcinterval.js} +12 -13
  61. package/dist/commonjs/models/components/tokenizedassetsohlcinterval.js.map +1 -0
  62. package/dist/commonjs/models/components/tokenizedassetsohlcrange.d.ts +14 -0
  63. package/dist/commonjs/models/components/tokenizedassetsohlcrange.d.ts.map +1 -0
  64. package/dist/commonjs/models/{operations/v2tokenizedassetsmarketssymbolohlc.js → components/tokenizedassetsohlcrange.js} +2 -29
  65. package/dist/commonjs/models/components/tokenizedassetsohlcrange.js.map +1 -0
  66. package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.d.ts +8 -10
  67. package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.js.map +1 -1
  69. package/dist/commonjs/models/operations/index.d.ts +0 -1
  70. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/index.js +0 -1
  72. package/dist/commonjs/models/operations/index.js.map +1 -1
  73. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbol.d.ts +11 -0
  74. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbol.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbol.js +5 -0
  76. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbol.js.map +1 -1
  77. package/dist/commonjs/sdk/tokenizedassets.d.ts +98 -78
  78. package/dist/commonjs/sdk/tokenizedassets.d.ts.map +1 -1
  79. package/dist/commonjs/sdk/tokenizedassets.js +98 -81
  80. package/dist/commonjs/sdk/tokenizedassets.js.map +1 -1
  81. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts +12 -8
  82. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts.map +1 -1
  83. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js +12 -8
  84. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js.map +1 -1
  85. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts +8 -3
  86. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts.map +1 -1
  87. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.js +8 -3
  88. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.js.map +1 -1
  89. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts +16 -2
  90. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts.map +1 -1
  91. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js +23 -4
  92. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js.map +1 -1
  93. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +17 -16
  94. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts.map +1 -1
  95. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js +17 -16
  96. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js.map +1 -1
  97. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts +9 -5
  98. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts.map +1 -1
  99. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js +9 -5
  100. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js.map +1 -1
  101. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts +10 -12
  102. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts.map +1 -1
  103. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js +10 -12
  104. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js.map +1 -1
  105. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +10 -11
  106. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts.map +1 -1
  107. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +10 -11
  108. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js.map +1 -1
  109. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts +10 -5
  110. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts.map +1 -1
  111. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.js +10 -5
  112. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.js.map +1 -1
  113. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +4 -4
  114. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +1 -1
  115. package/dist/esm/models/components/index.d.ts +2 -1
  116. package/dist/esm/models/components/index.d.ts.map +1 -1
  117. package/dist/esm/models/components/index.js +2 -1
  118. package/dist/esm/models/components/index.js.map +1 -1
  119. package/dist/esm/models/components/marketdetail.d.ts +10 -5
  120. package/dist/esm/models/components/marketdetail.d.ts.map +1 -1
  121. package/dist/esm/models/components/marketdetail.js +3 -1
  122. package/dist/esm/models/components/marketdetail.js.map +1 -1
  123. package/dist/esm/models/components/ohlccandle.d.ts +1 -1
  124. package/dist/esm/models/components/orderstatus.d.ts +8 -8
  125. package/dist/esm/models/components/orderstatus.js +1 -1
  126. package/dist/esm/models/components/ordertosign.d.ts +9 -10
  127. package/dist/esm/models/components/ordertosign.d.ts.map +1 -1
  128. package/dist/esm/models/components/ordertosign.js.map +1 -1
  129. package/dist/esm/models/components/quote.d.ts +2 -2
  130. package/dist/esm/models/components/quotefee.d.ts +2 -2
  131. package/dist/esm/models/components/tokenizedassetsbuildorderrequest.d.ts +3 -3
  132. package/dist/esm/models/components/tokenizedassetsbuildorderresponse.d.ts +7 -8
  133. package/dist/esm/models/components/tokenizedassetsbuildorderresponse.d.ts.map +1 -1
  134. package/dist/esm/models/components/tokenizedassetsbuildorderresponse.js.map +1 -1
  135. package/dist/esm/models/components/tokenizedassetscancelorderrequest.d.ts +1 -1
  136. package/dist/esm/models/components/tokenizedassetsohlcinterval.d.ts +15 -0
  137. package/dist/esm/models/components/tokenizedassetsohlcinterval.d.ts.map +1 -0
  138. package/dist/esm/models/components/tokenizedassetsohlcinterval.js +16 -0
  139. package/dist/esm/models/components/tokenizedassetsohlcinterval.js.map +1 -0
  140. package/dist/esm/models/components/tokenizedassetsohlcrange.d.ts +14 -0
  141. package/dist/esm/models/components/tokenizedassetsohlcrange.d.ts.map +1 -0
  142. package/dist/esm/models/components/tokenizedassetsohlcrange.js +15 -0
  143. package/dist/esm/models/components/tokenizedassetsohlcrange.js.map +1 -0
  144. package/dist/esm/models/components/tokenizedassetssubmitorderrequest.d.ts +8 -10
  145. package/dist/esm/models/components/tokenizedassetssubmitorderrequest.d.ts.map +1 -1
  146. package/dist/esm/models/components/tokenizedassetssubmitorderrequest.js.map +1 -1
  147. package/dist/esm/models/operations/index.d.ts +0 -1
  148. package/dist/esm/models/operations/index.d.ts.map +1 -1
  149. package/dist/esm/models/operations/index.js +0 -1
  150. package/dist/esm/models/operations/index.js.map +1 -1
  151. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbol.d.ts +11 -0
  152. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbol.d.ts.map +1 -1
  153. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbol.js +5 -0
  154. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbol.js.map +1 -1
  155. package/dist/esm/sdk/tokenizedassets.d.ts +98 -78
  156. package/dist/esm/sdk/tokenizedassets.d.ts.map +1 -1
  157. package/dist/esm/sdk/tokenizedassets.js +98 -81
  158. package/dist/esm/sdk/tokenizedassets.js.map +1 -1
  159. package/docs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.md +2 -2
  160. package/docs/models/components/compassapibackendv2modelstokenizedassetsmarketmarketchain.md +1 -1
  161. package/docs/models/components/marketdetail.md +24 -23
  162. package/docs/models/components/marketdetailchain.md +1 -1
  163. package/docs/models/components/ohlccandle.md +1 -1
  164. package/docs/models/components/orderstatus.md +9 -9
  165. package/docs/models/components/ordertosign.md +12 -13
  166. package/docs/models/components/quote.md +6 -6
  167. package/docs/models/components/quotefee.md +2 -2
  168. package/docs/models/components/status.md +1 -1
  169. package/docs/models/components/tokenizedassetsbuildorderrequest.md +8 -8
  170. package/docs/models/components/tokenizedassetsbuildorderresponse.md +6 -6
  171. package/docs/models/components/tokenizedassetscancelorderrequest.md +3 -3
  172. package/docs/models/{operations → components}/tokenizedassetsohlcinterval.md +2 -4
  173. package/docs/models/{operations → components}/tokenizedassetsohlcrange.md +2 -4
  174. package/docs/models/components/tokenizedassetssubmitorderrequest.md +11 -13
  175. package/docs/models/operations/v2tokenizedassetsmarketssymbolrequest.md +5 -3
  176. package/docs/sdks/tokenizedassets/README.md +92 -146
  177. package/package.json +1 -1
  178. package/src/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.ts +12 -8
  179. package/src/funcs/tokenizedAssetsTokenizedAssetsMarkets.ts +8 -3
  180. package/src/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.ts +24 -4
  181. package/src/funcs/tokenizedAssetsTokenizedAssetsOrder.ts +17 -16
  182. package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.ts +9 -5
  183. package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.ts +10 -12
  184. package/src/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.ts +10 -11
  185. package/src/funcs/tokenizedAssetsTokenizedAssetsPositions.ts +10 -5
  186. package/src/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.ts +4 -4
  187. package/src/models/components/index.ts +2 -1
  188. package/src/models/components/marketdetail.ts +11 -5
  189. package/src/models/components/ohlccandle.ts +1 -1
  190. package/src/models/components/orderstatus.ts +8 -8
  191. package/src/models/components/ordertosign.ts +9 -10
  192. package/src/models/components/quote.ts +2 -2
  193. package/src/models/components/quotefee.ts +2 -2
  194. package/src/models/components/tokenizedassetsbuildorderrequest.ts +3 -3
  195. package/src/models/components/tokenizedassetsbuildorderresponse.ts +7 -8
  196. package/src/models/components/tokenizedassetscancelorderrequest.ts +1 -1
  197. package/src/models/components/tokenizedassetsohlcinterval.ts +24 -0
  198. package/src/models/components/tokenizedassetsohlcrange.ts +23 -0
  199. package/src/models/components/tokenizedassetssubmitorderrequest.ts +8 -10
  200. package/src/models/operations/index.ts +0 -1
  201. package/src/models/operations/v2tokenizedassetsmarketssymbol.ts +15 -0
  202. package/src/sdk/tokenizedassets.ts +98 -89
  203. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.d.ts +0 -22
  204. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.d.ts.map +0 -1
  205. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.js +0 -133
  206. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.js.map +0 -1
  207. package/dist/commonjs/models/components/tokenizedassetsohlcresponse.d.ts +0 -25
  208. package/dist/commonjs/models/components/tokenizedassetsohlcresponse.d.ts.map +0 -1
  209. package/dist/commonjs/models/components/tokenizedassetsohlcresponse.js.map +0 -1
  210. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbolohlc.d.ts +0 -58
  211. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbolohlc.d.ts.map +0 -1
  212. package/dist/commonjs/models/operations/v2tokenizedassetsmarketssymbolohlc.js.map +0 -1
  213. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.d.ts +0 -22
  214. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.d.ts.map +0 -1
  215. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.js +0 -97
  216. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.js.map +0 -1
  217. package/dist/esm/models/components/tokenizedassetsohlcresponse.d.ts +0 -25
  218. package/dist/esm/models/components/tokenizedassetsohlcresponse.d.ts.map +0 -1
  219. package/dist/esm/models/components/tokenizedassetsohlcresponse.js +0 -16
  220. package/dist/esm/models/components/tokenizedassetsohlcresponse.js.map +0 -1
  221. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbolohlc.d.ts +0 -58
  222. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbolohlc.d.ts.map +0 -1
  223. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbolohlc.js +0 -41
  224. package/dist/esm/models/operations/v2tokenizedassetsmarketssymbolohlc.js.map +0 -1
  225. package/docs/models/components/tokenizedassetsohlcresponse.md +0 -31
  226. package/docs/models/operations/v2tokenizedassetsmarketssymbolohlcrequest.md +0 -21
  227. package/src/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbolOhlc.ts +0 -196
  228. package/src/models/components/tokenizedassetsohlcresponse.ts +0 -48
  229. package/src/models/operations/v2tokenizedassetsmarketssymbolohlc.ts +0 -95
@@ -27,22 +27,26 @@ import { APICall, APIPromise } from "../types/async.js";
27
27
  import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
- * Create tokenized assets account
30
+ * Create a Tokenized Assets Account
31
31
  *
32
32
  * @remarks
33
33
  * Create a Tokenized Assets Account for a wallet address.
34
34
  *
35
- * Each wallet address has one Tokenized Assets Account per chain. It is owned by
36
- * `owner` and isolated from the owner's Earn, Credit, and Traditional Investing
37
- * accounts.
35
+ * Before placing orders, the owner must create a Tokenized Assets Account.
36
+ * Each wallet address has one Tokenized Assets Account, isolated from the
37
+ * owner's Earn, Credit, and other product accounts.
38
38
  *
39
- * Returns an unsigned transaction to create the account. The `sender` signs and
40
- * broadcasts this transaction.
39
+ * The account address is deterministic. If it already exists, the
40
+ * response returns `transaction: null` and you can skip straight to
41
+ * building orders.
42
+ *
43
+ * Returns an unsigned transaction to create the account. The `sender`
44
+ * signs and broadcasts this transaction.
41
45
  *
42
46
  * **If owner pays gas:** Set `sender` to the owner's address.
43
47
  *
44
- * **If someone else pays gas:** Set `sender` to the wallet that will sign and
45
- * broadcast the transaction on behalf of the owner.
48
+ * **If someone else pays gas:** Set `sender` to the wallet that will
49
+ * sign and broadcast the transaction on behalf of the owner.
46
50
  */
47
51
  export function tokenizedAssetsTokenizedAssetsCreateAccount(
48
52
  client: CompassApiSDKCore,
@@ -31,10 +31,15 @@ import { Result } from "../types/fp.js";
31
31
  * List tokenized equity markets
32
32
  *
33
33
  * @remarks
34
- * List tokenized equities surfaced on Ethereum.
34
+ * List the tokenized US equities available on Ethereum.
35
35
  *
36
- * Composed from Ondo's metadata + enhanced-prices feeds. Non-Ethereum-only
37
- * assets (BSC/Solana deployments without an Ethereum twin) are skipped.
36
+ * Each entry includes the symbol, the underlying ticker, the on-chain
37
+ * contract address, the latest USD price, and 24h price change. Filter
38
+ * by `category` (sector tag) or `search` (substring match against symbol,
39
+ * ticker, or name).
40
+ *
41
+ * Only Ethereum-deployed tokens are returned; assets that exist only on
42
+ * other chains are omitted.
38
43
  */
39
44
  export function tokenizedAssetsTokenizedAssetsMarkets(
40
45
  client: CompassApiSDKCore,
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { CompassApiSDKCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import { matchStatusCode } from "../lib/http.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
@@ -28,10 +28,24 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * Get a single tokenized market
31
+ * Get a single market
32
32
  *
33
33
  * @remarks
34
- * Single-market detail for the on-chain Ondo symbol (e.g. `TSLAon`).
34
+ * Get extended detail for a single tokenized equity (e.g. `TSLAon`).
35
+ *
36
+ * Includes 52-week range, volume, market cap, holder count, and tradable
37
+ * sessions in addition to the fields returned by `/markets`.
38
+ *
39
+ * **OHLC candles** are opt-in: pass both `interval` and `range` query
40
+ * params to include a `candles` array in the response. They must be
41
+ * provided together and must form one of the supported pairs:
42
+ *
43
+ * - `1min` / `5min` / `15min` with `range=1day`
44
+ * - `1hour` / `4hour` with `range=1month`
45
+ * - `12hour` with `range=3month`
46
+ * - `1day` with `range=3month` / `6month` / `1year` / `all`
47
+ *
48
+ * Omitting both returns the market detail without `candles`.
35
49
  */
36
50
  export function tokenizedAssetsTokenizedAssetsMarketsSymbol(
37
51
  client: CompassApiSDKCore,
@@ -103,6 +117,11 @@ async function $do(
103
117
  };
104
118
  const path = pathToFunc("/v2/tokenized_assets/markets/{symbol}")(pathParams);
105
119
 
120
+ const query = encodeFormQuery({
121
+ "interval": payload.interval,
122
+ "range": payload.range,
123
+ });
124
+
106
125
  const headers = new Headers(compactMap({
107
126
  Accept: "application/json",
108
127
  }));
@@ -132,6 +151,7 @@ async function $do(
132
151
  baseURL: options?.serverURL,
133
152
  path: path,
134
153
  headers: headers,
154
+ query: query,
135
155
  body: body,
136
156
  userAgent: client._options.userAgent,
137
157
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -171,7 +191,7 @@ async function $do(
171
191
  | SDKValidationError
172
192
  >(
173
193
  M.json(200, components.MarketDetail$inboundSchema),
174
- M.jsonErr(404, errors.TokenizedAssetsErrorResponse$inboundSchema),
194
+ M.jsonErr([400, 404], errors.TokenizedAssetsErrorResponse$inboundSchema),
175
195
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
176
196
  M.jsonErr(502, errors.TokenizedAssetsErrorResponse$inboundSchema),
177
197
  M.fail("4XX"),
@@ -27,27 +27,28 @@ import { APICall, APIPromise } from "../types/async.js";
27
27
  import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
- * Build a tokenized-asset buy/sell order
30
+ * Build a buy/sell order
31
31
  *
32
32
  * @remarks
33
- * Build a quote, optional approve SafeTx, and SafeMessage EIP-712 to sign.
33
+ * Build a buy or sell order whose maker is the Tokenized Assets Account.
34
34
  *
35
- * Returns everything the SDK needs to take an `owner` from "I want to buy"
36
- * to a relayed Fusion order whose maker is the Tokenized Assets Account.
37
- * The flow is **signing-based, not transaction-based**:
35
+ * Returns up to three pieces in a single round-trip:
38
36
  *
39
- * 1. If `approval_safe_tx_eip712` is populated (Safe→LOP allowance is
40
- * insufficient), sign it with `wallet.signTypedData(...)` and relay via
41
- * `POST /v2/gas_sponsorship/prepare` so the sponsor broadcasts the resulting
42
- * `Safe.execTransaction(USDC.approve(LOP_v4, ...))`. Wait for that tx
43
- * to confirm before signing the order.
44
- * 2. Sign `order.safe_message_eip712` with the same owner wallet this is
45
- * a Safe ERC-1271 wrapper around the Fusion order hash. POST the
46
- * resulting 65-byte ECDSA together with the rest of the `order` fields
47
- * to `/order/submit`.
37
+ * - **`quote`** preview of the input/output amounts and fees.
38
+ * - **`approval_safe_tx_eip712`** only present when the account's
39
+ * allowance to the settlement contract is below `amount`. The owner
40
+ * signs this EIP-712 payload, then it is broadcast via
41
+ * `POST /v2/gas_sponsorship/prepare` (or the owner can broadcast
42
+ * directly) to set the on-chain allowance. Wait for that transaction
43
+ * to confirm before signing the order.
44
+ * - **`order`** the order metadata (`order_hash`, `extension`,
45
+ * `quote_id`, `order_message`) plus `safe_message_eip712`, an EIP-712
46
+ * payload the owner signs off-chain to authorize the order. The
47
+ * signature is submitted to `/order/submit` and is **never** broadcast
48
+ * on-chain.
48
49
  *
49
- * The owner never broadcasts an on-chain transaction in this flow; all
50
- * on-chain action goes through the product account via the sponsor relay.
50
+ * The owner never broadcasts the order itself only the (one-time)
51
+ * approval transaction ever hits the chain.
51
52
  */
52
53
  export function tokenizedAssetsTokenizedAssetsOrder(
53
54
  client: CompassApiSDKCore,
@@ -28,14 +28,18 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * Get tokenized-asset order status
31
+ * Get order status
32
32
  *
33
33
  * @remarks
34
- * Status of a relayed Fusion order — `pending` / `filled` / `expired` / `cancelled`.
34
+ * Get the lifecycle state of a submitted order.
35
35
  *
36
- * Fusion's finer-grained states (`refunded`, `false-predicate`, etc.) are
37
- * collapsed into the 4-value enum the SDK promises. Unknown upstream states
38
- * surface as 502 to alert on schema drift.
36
+ * The `status` field is one of `pending`, `filled`, `expired`, or
37
+ * `cancelled`. Partial fills stay in `pending` while `filled_amount` is
38
+ * populated as fills come in; once an order fully fills, `fill_tx_hash`
39
+ * is also returned.
40
+ *
41
+ * Upstream protocol states beyond these four (e.g. `partially-filled`,
42
+ * `refunded`) are mapped onto this set.
39
43
  */
40
44
  export function tokenizedAssetsTokenizedAssetsOrderOrderHash(
41
45
  client: CompassApiSDKCore,
@@ -28,22 +28,20 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * Cancel an unfilled tokenized-asset order
31
+ * Cancel an unfilled order
32
32
  *
33
33
  * @remarks
34
- * Build a SafeTx EIP-712 wrapping the on-chain cancel for a Fusion order.
34
+ * Build the EIP-712 payload to cancel an unfilled order on-chain.
35
35
  *
36
- * Returns ``cancel_safe_tx_eip712``: an EIP-712 ``Safe.execTransaction``
37
- * payload whose inner call is ``LOP.cancelOrder(makerTraits, orderHash)``.
38
- * Sign with the Tokenized Assets Account's owner via
39
- * ``wallet.signTypedData(...)`` and relay via ``POST /v2/gas_sponsorship/prepare``
40
- * so the sponsor broadcasts ``execTransaction`` on the product account
41
- * (the order's maker). The owner can also broadcast ``execTransaction``
42
- * directly if not using gas sponsorship.
36
+ * Returns ``cancel_safe_tx_eip712``, an EIP-712 payload that authorizes
37
+ * the on-chain cancellation. Sign with the Tokenized Assets Account's
38
+ * owner via ``wallet.signTypedData(...)`` and relay via
39
+ * ``POST /v2/gas_sponsorship/prepare`` so the sponsor broadcasts the
40
+ * cancellation on the product account. The owner can also broadcast
41
+ * the resulting transaction directly without using gas sponsorship.
43
42
  *
44
- * Authorization is on the *predicted* Safe address: the Tokenized Assets
45
- * Account computed from ``owner`` must match the order's on-chain maker.
46
- * Mismatches return 403 ``OWNER_NOT_MAKER`` before any on-chain reads.
43
+ * Cancellation works on `pending` and `expired` orders only. Only the
44
+ * Tokenized Assets Account that placed the order can cancel it.
47
45
  */
48
46
  export function tokenizedAssetsTokenizedAssetsOrderOrderHashCancel(
49
47
  client: CompassApiSDKCore,
@@ -27,21 +27,20 @@ import { APICall, APIPromise } from "../types/async.js";
27
27
  import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
- * Submit a signed tokenized-asset order to 1inch Fusion
30
+ * Submit a signed order
31
31
  *
32
32
  * @remarks
33
- * Relay an owner-signed Fusion order to the 1inch relayer.
33
+ * Submit a signed order to the resolver network.
34
34
  *
35
- * The body carries the signature produced by
36
- * `wallet.signTypedData(order.safe_message_eip712)` from the `/order`
37
- * response, plus the order struct (`signed_order`), opaque `extension`,
38
- * and `quote_id`. The signature is validated via ERC-1271
39
- * (`Safe.isValidSignature`) at fill time — the maker on the order struct
40
- * is the Tokenized Assets Account, not the EOA owner.
35
+ * The body echoes the `order` fields from `/order` (`signed_order`,
36
+ * `extension`, `quote_id`, optionally `order_hash`) plus the owner's
37
+ * signature over `order.safe_message_eip712`. The maker on the order
38
+ * struct is the Tokenized Assets Account, not the owner's wallet —
39
+ * pass `signed_order` back unchanged.
41
40
  *
42
- * Returns the order hash and a server-side timestamp. Subsequent calls to
43
- * `GET /order/{order_hash}` track lifecycle (`pending` → `filled` /
44
- * `expired` / `cancelled`).
41
+ * Returns the order hash and a server-side ISO 8601 timestamp.
42
+ * Subsequent calls to `GET /order/{order_hash}` track the lifecycle
43
+ * (`pending` → `filled` / `expired` / `cancelled`).
45
44
  */
46
45
  export function tokenizedAssetsTokenizedAssetsOrderSubmit(
47
46
  client: CompassApiSDKCore,
@@ -28,14 +28,19 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * Get on-chain tokenized-asset positions for a wallet
31
+ * Get tokenized-asset positions for a wallet
32
32
  *
33
33
  * @remarks
34
- * On-chain ERC-20 balance reads for a wallet across all listed Ondo GM tokens.
34
+ * Get the tokenized-asset holdings for a wallet.
35
35
  *
36
- * Reads each Ethereum-deployed Ondo GM token's `balanceOf(wallet)` via a
37
- * single Multicall3 batch and enriches non-zero balances with the latest USD
38
- * price. Returns human-readable amounts (decimals applied).
36
+ * Returns the balance of every listed tokenized equity at the queried
37
+ * address, plus the latest USD price and a USD-valued balance when
38
+ * pricing is available. Zero balances are omitted, and a `total_usd`
39
+ * aggregate is returned across all priced positions.
40
+ *
41
+ * Pass the **Tokenized Assets Account address** (returned by
42
+ * `/create_account`), not the owner's wallet — proceeds from filled
43
+ * orders settle into the Tokenized Assets Account.
39
44
  */
40
45
  export function tokenizedAssetsTokenizedAssetsPositions(
41
46
  client: CompassApiSDKCore,
@@ -10,13 +10,13 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * Chain on which the surfaced contract is deployed.
13
+ * Chain on which the contract is deployed.
14
14
  */
15
15
  export const CompassApiBackendV2ModelsTokenizedAssetsMarketMarketChain = {
16
16
  Ethereum: "ethereum",
17
17
  } as const;
18
18
  /**
19
- * Chain on which the surfaced contract is deployed.
19
+ * Chain on which the contract is deployed.
20
20
  */
21
21
  export type CompassApiBackendV2ModelsTokenizedAssetsMarketMarketChain =
22
22
  ClosedEnum<typeof CompassApiBackendV2ModelsTokenizedAssetsMarketMarketChain>;
@@ -38,7 +38,7 @@ export type CompassApiBackendV2ModelsTokenizedAssetsMarketMarket = {
38
38
  */
39
39
  name: string;
40
40
  /**
41
- * Chain on which the surfaced contract is deployed.
41
+ * Chain on which the contract is deployed.
42
42
  */
43
43
  chain?: CompassApiBackendV2ModelsTokenizedAssetsMarketMarketChain | undefined;
44
44
  /**
@@ -46,7 +46,7 @@ export type CompassApiBackendV2ModelsTokenizedAssetsMarketMarket = {
46
46
  */
47
47
  contractAddress: string;
48
48
  /**
49
- * ERC-20 decimals on the surfaced chain.
49
+ * ERC-20 decimals for this token.
50
50
  */
51
51
  decimals: number;
52
52
  /**
@@ -257,7 +257,8 @@ export * from "./tokenizedassetsbuildorderresponse.js";
257
257
  export * from "./tokenizedassetscancelorderrequest.js";
258
258
  export * from "./tokenizedassetscancelorderresponse.js";
259
259
  export * from "./tokenizedassetsmarketslistresponse.js";
260
- export * from "./tokenizedassetsohlcresponse.js";
260
+ export * from "./tokenizedassetsohlcinterval.js";
261
+ export * from "./tokenizedassetsohlcrange.js";
261
262
  export * from "./tokenizedassetspositionsresponse.js";
262
263
  export * from "./tokenizedassetssubmitorderrequest.js";
263
264
  export * from "./tokenizedassetssubmitorderresponse.js";
@@ -8,16 +8,17 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { OhlcCandle, OhlcCandle$inboundSchema } from "./ohlccandle.js";
11
12
  import { PricePoint, PricePoint$inboundSchema } from "./pricepoint.js";
12
13
 
13
14
  /**
14
- * Chain on which the surfaced contract is deployed.
15
+ * Chain on which the contract is deployed.
15
16
  */
16
17
  export const MarketDetailChain = {
17
18
  Ethereum: "ethereum",
18
19
  } as const;
19
20
  /**
20
- * Chain on which the surfaced contract is deployed.
21
+ * Chain on which the contract is deployed.
21
22
  */
22
23
  export type MarketDetailChain = ClosedEnum<typeof MarketDetailChain>;
23
24
 
@@ -38,7 +39,7 @@ export type MarketDetail = {
38
39
  */
39
40
  name: string;
40
41
  /**
41
- * Chain on which the surfaced contract is deployed.
42
+ * Chain on which the contract is deployed.
42
43
  */
43
44
  chain?: MarketDetailChain | undefined;
44
45
  /**
@@ -46,7 +47,7 @@ export type MarketDetail = {
46
47
  */
47
48
  contractAddress: string;
48
49
  /**
49
- * ERC-20 decimals on the surfaced chain.
50
+ * ERC-20 decimals for this token.
50
51
  */
51
52
  decimals: number;
52
53
  /**
@@ -70,7 +71,7 @@ export type MarketDetail = {
70
71
  */
71
72
  regionExposure?: Array<string> | undefined;
72
73
  /**
73
- * 24h price sparkline (sampled timestamps, descending or ascending).
74
+ * 24h price sparkline as `(timestamp, price)` samples in chronological order.
74
75
  */
75
76
  priceHistory24h?: Array<PricePoint> | undefined;
76
77
  /**
@@ -109,6 +110,10 @@ export type MarketDetail = {
109
110
  * Shares-multiplier ratio (= 1 if no recent split / corporate action).
110
111
  */
111
112
  sharesMultiplier?: string | null | undefined;
113
+ /**
114
+ * OHLC candles. Present only when both `interval` and `range` query params are provided and form a valid pair; omitted otherwise.
115
+ */
116
+ candles?: Array<OhlcCandle> | null | undefined;
112
117
  };
113
118
 
114
119
  /** @internal */
@@ -143,6 +148,7 @@ export const MarketDetail$inboundSchema: z.ZodType<
143
148
  total_holders: z.nullable(z.number().int()).optional(),
144
149
  tradable_sessions: z.array(z.string()).optional(),
145
150
  shares_multiplier: z.nullable(z.string()).optional(),
151
+ candles: z.nullable(z.array(OhlcCandle$inboundSchema)).optional(),
146
152
  }).transform((v) => {
147
153
  return remap$(v, {
148
154
  "underlying_ticker": "underlyingTicker",
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  /**
11
- * A single OHLC candle. Note: Ondo does not return per-candle volume.
11
+ * A single OHLC candle. Per-candle volume is not provided.
12
12
  */
13
13
  export type OhlcCandle = {
14
14
  /**
@@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * Coarse-grained order state. Compass collapses Fusion's finer-grained states (`refunded`, `false-predicate`, etc.) into this 4-value enum.
13
+ * Order lifecycle state. One of `pending`, `filled`, `expired`, or `cancelled`. Upstream protocol states beyond these four (e.g. `partially-filled`, `refunded`) are mapped onto this set.
14
14
  */
15
15
  export const Status = {
16
16
  Pending: "pending",
@@ -19,7 +19,7 @@ export const Status = {
19
19
  Cancelled: "cancelled",
20
20
  } as const;
21
21
  /**
22
- * Coarse-grained order state. Compass collapses Fusion's finer-grained states (`refunded`, `false-predicate`, etc.) into this 4-value enum.
22
+ * Order lifecycle state. One of `pending`, `filled`, `expired`, or `cancelled`. Upstream protocol states beyond these four (e.g. `partially-filled`, `refunded`) are mapped onto this set.
23
23
  */
24
24
  export type Status = ClosedEnum<typeof Status>;
25
25
 
@@ -32,27 +32,27 @@ export type OrderStatus = {
32
32
  */
33
33
  orderHash: string;
34
34
  /**
35
- * Coarse-grained order state. Compass collapses Fusion's finer-grained states (`refunded`, `false-predicate`, etc.) into this 4-value enum.
35
+ * Order lifecycle state. One of `pending`, `filled`, `expired`, or `cancelled`. Upstream protocol states beyond these four (e.g. `partially-filled`, `refunded`) are mapped onto this set.
36
36
  */
37
37
  status: Status;
38
38
  /**
39
- * Tx hash of the most recent resolver fill (populated when filled or partially filled).
39
+ * Transaction hash of the most recent fill. Populated for fully filled orders and for partial fills while `status` is still `pending`.
40
40
  */
41
41
  fillTxHash?: string | null | undefined;
42
42
  /**
43
- * Implied USD execution rate per unit of the taker token, derived from filled amounts and the maker-side USD price. For USDC→equity buys this is the USD paid per equity unit. Omitted if maker/taker decimals are unknown.
43
+ * Implied USD execution rate per unit of the received token, derived from filled amounts and the input token's USD price. For USDC equity buys, this is the USD paid per equity unit. Omitted when token decimals or pricing are not available.
44
44
  */
45
45
  fillPriceUsd?: string | null | undefined;
46
46
  /**
47
- * Sum of base-unit amounts filled so far. Populated for partial fills while `status` is still `pending`, and for fully filled orders.
47
+ * Total amount filled so far, expressed as a raw integer in the input token's decimals. Populated for partial fills while `status` is still `pending`, and for fully filled orders.
48
48
  */
49
49
  filledAmount?: string | null | undefined;
50
50
  /**
51
- * ISO 8601 UTC timestamp of order submission.
51
+ * ISO 8601 UTC timestamp at which the order was submitted.
52
52
  */
53
53
  submittedAt?: string | null | undefined;
54
54
  /**
55
- * ISO 8601 UTC timestamp of this status read.
55
+ * ISO 8601 UTC timestamp at which this status was read.
56
56
  */
57
57
  updatedAt: string;
58
58
  };
@@ -13,31 +13,30 @@ import {
13
13
  } from "./safemessageeip712response.js";
14
14
 
15
15
  /**
16
- * Fusion order metadata bundled with the SafeMessage EIP-712 to sign.
16
+ * Order metadata plus the EIP-712 payload the owner signs to authorize it.
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The owner signs ``safe_message_eip712`` (a `SafeMessage(bytes message)`
21
- * payload wrapping ``order_hash`` for ERC-1271). At submit time the SDK
22
- * relays the resulting 65-byte ECDSA together with ``order_message``,
23
- * ``extension``, and ``quote_id`` so 1inch's relayer can broadcast the
24
- * order; resolvers fill it via ``Safe.isValidSignature``.
20
+ * The owner signs ``safe_message_eip712`` off-chain. At submit time the
21
+ * signature is sent back to ``/order/submit`` together with
22
+ * ``order_message``, ``extension``, and ``quote_id``; resolvers validate
23
+ * the signature against the Tokenized Assets Account at fill time.
25
24
  */
26
25
  export type OrderToSign = {
27
26
  /**
28
- * The 1inch LOP order hash. Wrapped inside `safe_message_eip712.message.message` for ERC-1271 signing; also relayed to `/order/submit` so the API can fall back to it if the upstream submit response omits the hash.
27
+ * The on-chain order hash. Wrapped inside `safe_message_eip712.message.message` for the owner to sign; also passed back to `/order/submit` so the API can return a usable handle even if the upstream submit response omits the hash.
29
28
  */
30
29
  orderHash: string;
31
30
  /**
32
- * Opaque hex blob from 1inch — pass back to `/order/submit` unchanged.
31
+ * Opaque hex blob from the upstream quote — pass back to `/order/submit` unchanged.
33
32
  */
34
33
  extension: string;
35
34
  /**
36
- * 1inch quote identifier — must be echoed back at `/order/submit`.
35
+ * Upstream quote identifier — must be echoed back at `/order/submit`.
37
36
  */
38
37
  quoteId: string;
39
38
  /**
40
- * Fusion order struct (maker, makerAsset, makingAmount, etc.) — pass back to `/order/submit` unchanged. Maker is the Tokenized Assets Account, not the EOA owner.
39
+ * Order struct (maker, makerAsset, makingAmount, etc.) — pass back to `/order/submit` unchanged. The maker is the Tokenized Assets Account, not the owner's wallet.
41
40
  */
42
41
  orderMessage: { [k: string]: any };
43
42
  /**
@@ -23,11 +23,11 @@ export type Quote = {
23
23
  */
24
24
  output: TokenAmount;
25
25
  /**
26
- * Aggregate fee charged by the Fusion auction (resolver + protocol).
26
+ * Aggregate fee charged for the order.
27
27
  */
28
28
  fee: QuoteFee;
29
29
  /**
30
- * Auction duration upper-bound in seconds.
30
+ * Estimated upper bound on time-to-fill, in seconds.
31
31
  */
32
32
  estFillSeconds: number;
33
33
  };
@@ -9,11 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * Aggregate fee charged by the Fusion auction (resolver + protocol).
12
+ * Aggregate fee charged for the order.
13
13
  */
14
14
  export type QuoteFee = {
15
15
  /**
16
- * Total fee in USD, decimal string.
16
+ * Total fee in USD as a decimal string.
17
17
  */
18
18
  amountUsd?: string | null | undefined;
19
19
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  /**
9
- * Build a buy/sell order against the 1inch Fusion intent flow.
9
+ * Build a buy or sell order for a tokenized equity.
10
10
  */
11
11
  export type TokenizedAssetsBuildOrderRequest = {
12
12
  /**
@@ -22,11 +22,11 @@ export type TokenizedAssetsBuildOrderRequest = {
22
22
  */
23
23
  amount: string;
24
24
  /**
25
- * EOA that owns the Tokenized Assets Account. Determines the product account address and signs the EIP-712 envelopes returned by this endpoint (the approve SafeTx and the SafeMessage wrapping the order hash).
25
+ * Wallet that owns the Tokenized Assets Account. The product account address is derived deterministically from this owner. The owner signs the EIP-712 payloads returned by this endpoint (the optional approval and the order itself).
26
26
  */
27
27
  owner: string;
28
28
  /**
29
- * Max acceptable slippage in basis points (1 bp = 0.01%).
29
+ * Max acceptable slippage in basis points (1 bp = 0.01%). Range 1-1000 (0.01%-10%); defaults to 50 (0.5%).
30
30
  */
31
31
  slippageBps?: number | undefined;
32
32
  };
@@ -15,7 +15,7 @@ import { OrderToSign, OrderToSign$inboundSchema } from "./ordertosign.js";
15
15
  import { Quote, Quote$inboundSchema } from "./quote.js";
16
16
 
17
17
  /**
18
- * Composed response: quote + optional approval SafeTx + EIP-712 order to sign.
18
+ * Quote, optional approval payload, and the EIP-712 order to sign.
19
19
  */
20
20
  export type TokenizedAssetsBuildOrderResponse = {
21
21
  /**
@@ -23,19 +23,18 @@ export type TokenizedAssetsBuildOrderResponse = {
23
23
  */
24
24
  quote: Quote;
25
25
  /**
26
- * EIP-712 `Safe.execTransaction` wrapping `USDC.approve(LOP_v4, max_uint256)`. Populated when the Tokenized Assets Account's allowance to LOP v4 is below `amount`; sign with `wallet.signTypedData(...)` and relay via `POST /v2/gas_sponsorship/prepare`. `null` when allowance is already sufficient.
26
+ * EIP-712 payload that authorizes a one-time max-approve of `from_token` to the settlement contract. Populated when the Tokenized Assets Account's existing allowance is below `amount`. The owner signs it, then it is broadcast via `POST /v2/gas_sponsorship/prepare` (or directly by the owner) to set the allowance on-chain. `null` when the allowance is already sufficient.
27
27
  */
28
28
  approvalSafeTxEip712?: BatchedSafeOperationsResponseOutput | null | undefined;
29
29
  /**
30
- * Fusion order metadata bundled with the SafeMessage EIP-712 to sign.
30
+ * Order metadata plus the EIP-712 payload the owner signs to authorize it.
31
31
  *
32
32
  * @remarks
33
33
  *
34
- * The owner signs ``safe_message_eip712`` (a `SafeMessage(bytes message)`
35
- * payload wrapping ``order_hash`` for ERC-1271). At submit time the SDK
36
- * relays the resulting 65-byte ECDSA together with ``order_message``,
37
- * ``extension``, and ``quote_id`` so 1inch's relayer can broadcast the
38
- * order; resolvers fill it via ``Safe.isValidSignature``.
34
+ * The owner signs ``safe_message_eip712`` off-chain. At submit time the
35
+ * signature is sent back to ``/order/submit`` together with
36
+ * ``order_message``, ``extension``, and ``quote_id``; resolvers validate
37
+ * the signature against the Tokenized Assets Account at fill time.
39
38
  */
40
39
  order: OrderToSign;
41
40
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type TokenizedAssetsCancelOrderRequest = {
8
8
  /**
9
- * EOA that owns the Tokenized Assets Account. The product account predicted from this owner must match the order's on-chain maker; the API rejects otherwise (only the order's maker can cancel it).
9
+ * Wallet that owns the Tokenized Assets Account. The account address derived from this owner must match the order's on-chain maker; the API rejects otherwise (only the order's maker can cancel it).
10
10
  */
11
11
  owner: string;
12
12
  };
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const TokenizedAssetsOhlcInterval = {
9
+ Onemin: "1min",
10
+ Fivemin: "5min",
11
+ Fifteenmin: "15min",
12
+ Onehour: "1hour",
13
+ Fourhour: "4hour",
14
+ Twelvehour: "12hour",
15
+ Oneday: "1day",
16
+ } as const;
17
+ export type TokenizedAssetsOhlcInterval = ClosedEnum<
18
+ typeof TokenizedAssetsOhlcInterval
19
+ >;
20
+
21
+ /** @internal */
22
+ export const TokenizedAssetsOhlcInterval$outboundSchema: z.ZodNativeEnum<
23
+ typeof TokenizedAssetsOhlcInterval
24
+ > = z.nativeEnum(TokenizedAssetsOhlcInterval);