@compass-labs/api-sdk 2.2.68-rc.0 → 2.2.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts +4 -7
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.js +4 -7
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +2 -2
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js +2 -2
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.d.ts +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.js +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsQuote.d.ts +4 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsQuote.js +4 -4
- package/dist/commonjs/models/components/ordertosign.d.ts +2 -2
- package/dist/commonjs/models/components/safemessagemessage.d.ts +1 -1
- package/dist/commonjs/models/components/tokenizedassetsbalancesresponse.d.ts +4 -7
- package/dist/commonjs/models/components/tokenizedassetsbalancesresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetsbalancesresponse.js.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.d.ts +2 -2
- package/dist/commonjs/models/components/tokenizedassetschargefeerequest.d.ts +1 -1
- package/dist/commonjs/models/components/tokenizedassetsquoterequest.d.ts +3 -3
- package/dist/commonjs/models/components/tokenizedassetsquoteresponse.d.ts +1 -1
- package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.d.ts +1 -1
- package/dist/commonjs/models/components/tokenizedassetssubmitorderresponse.d.ts +1 -1
- package/dist/commonjs/models/errors/tokenizedassetserrorresponse.d.ts +2 -2
- package/dist/commonjs/sdk/tokenizedassets.d.ts +12 -15
- package/dist/commonjs/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/commonjs/sdk/tokenizedassets.js +12 -15
- package/dist/commonjs/sdk/tokenizedassets.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts +4 -7
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.js +4 -7
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +2 -2
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js +2 -2
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.d.ts +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.js +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsQuote.d.ts +4 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsQuote.js +4 -4
- package/dist/esm/models/components/ordertosign.d.ts +2 -2
- package/dist/esm/models/components/safemessagemessage.d.ts +1 -1
- package/dist/esm/models/components/tokenizedassetsbalancesresponse.d.ts +4 -7
- package/dist/esm/models/components/tokenizedassetsbalancesresponse.d.ts.map +1 -1
- package/dist/esm/models/components/tokenizedassetsbalancesresponse.js.map +1 -1
- package/dist/esm/models/components/tokenizedassetsbuildorderresponse.d.ts +2 -2
- package/dist/esm/models/components/tokenizedassetschargefeerequest.d.ts +1 -1
- package/dist/esm/models/components/tokenizedassetsquoterequest.d.ts +3 -3
- package/dist/esm/models/components/tokenizedassetsquoteresponse.d.ts +1 -1
- package/dist/esm/models/components/tokenizedassetssubmitorderrequest.d.ts +1 -1
- package/dist/esm/models/components/tokenizedassetssubmitorderresponse.d.ts +1 -1
- package/dist/esm/models/errors/tokenizedassetserrorresponse.d.ts +2 -2
- package/dist/esm/sdk/tokenizedassets.d.ts +12 -15
- package/dist/esm/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/esm/sdk/tokenizedassets.js +12 -15
- package/dist/esm/sdk/tokenizedassets.js.map +1 -1
- package/docs/models/components/ordertosign.md +2 -2
- package/docs/models/components/safemessagemessage.md +3 -3
- package/docs/models/components/tokenizedassetsbalancesresponse.md +4 -7
- package/docs/models/components/tokenizedassetsbuildorderresponse.md +1 -1
- package/docs/models/components/tokenizedassetschargefeerequest.md +1 -1
- package/docs/models/components/tokenizedassetsquoterequest.md +3 -3
- package/docs/models/components/tokenizedassetsquoteresponse.md +5 -5
- package/docs/models/components/tokenizedassetssubmitorderrequest.md +1 -1
- package/docs/models/components/tokenizedassetssubmitorderresponse.md +1 -1
- package/docs/models/errors/tokenizedassetserrorresponse.md +4 -4
- package/docs/sdks/tokenizedassets/README.md +12 -15
- package/openapi_prepped_for_speakeasy.json +35 -35
- package/package.json +1 -1
- package/src/funcs/tokenizedAssetsTokenizedAssetsBalances.ts +4 -7
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrder.ts +2 -2
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.ts +1 -1
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.ts +1 -1
- package/src/funcs/tokenizedAssetsTokenizedAssetsQuote.ts +4 -4
- package/src/models/components/ordertosign.ts +2 -2
- package/src/models/components/safemessagemessage.ts +1 -1
- package/src/models/components/tokenizedassetsbalancesresponse.ts +4 -7
- package/src/models/components/tokenizedassetsbuildorderresponse.ts +2 -2
- package/src/models/components/tokenizedassetschargefeerequest.ts +1 -1
- package/src/models/components/tokenizedassetsquoterequest.ts +3 -3
- package/src/models/components/tokenizedassetsquoteresponse.ts +1 -1
- package/src/models/components/tokenizedassetssubmitorderrequest.ts +1 -1
- package/src/models/components/tokenizedassetssubmitorderresponse.ts +1 -1
- package/src/models/errors/tokenizedassetserrorresponse.ts +2 -2
- package/src/sdk/tokenizedassets.ts +12 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedAssetsTokenizedAssetsBalances.js","sourceRoot":"","sources":["../../../src/funcs/tokenizedAssetsTokenizedAssetsBalances.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAS5D,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD
|
|
1
|
+
{"version":3,"file":"tokenizedAssetsTokenizedAssetsBalances.js","sourceRoot":"","sources":["../../../src/funcs/tokenizedAssetsTokenizedAssetsBalances.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAA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,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -15,9 +15,9 @@ import { Result } from "../types/fp.js";
|
|
|
15
15
|
* Build a tokenized-**equity** (Ondo) buy/sell order; maker is the product account.
|
|
16
16
|
*
|
|
17
17
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
18
|
-
* rejected with 422 `
|
|
18
|
+
* rejected with 422 `Wrong trade flow`; trade them via `/transact/buy` &
|
|
19
19
|
* `/transact/sell`. Equity orders are always USDC-paired (USDC→equity to buy,
|
|
20
|
-
* equity→USDC to sell) and settle
|
|
20
|
+
* equity→USDC to sell) and settle on-chain.
|
|
21
21
|
*
|
|
22
22
|
* Returns up to three pieces in a single round-trip:
|
|
23
23
|
*
|
|
@@ -18,9 +18,9 @@ import { APIPromise } from "../types/async.js";
|
|
|
18
18
|
* Build a tokenized-**equity** (Ondo) buy/sell order; maker is the product account.
|
|
19
19
|
*
|
|
20
20
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
21
|
-
* rejected with 422 `
|
|
21
|
+
* rejected with 422 `Wrong trade flow`; trade them via `/transact/buy` &
|
|
22
22
|
* `/transact/sell`. Equity orders are always USDC-paired (USDC→equity to buy,
|
|
23
|
-
* equity→USDC to sell) and settle
|
|
23
|
+
* equity→USDC to sell) and settle on-chain.
|
|
24
24
|
*
|
|
25
25
|
* Returns up to three pieces in a single round-trip:
|
|
26
26
|
*
|
|
@@ -15,7 +15,7 @@ import { Result } from "../types/fp.js";
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* Build a USDC fee transfer on a filled equity sell order's proceeds.
|
|
17
17
|
*
|
|
18
|
-
* Equity orders fill off-chain via a third-party
|
|
18
|
+
* Equity orders fill off-chain via a third-party venue, so the fee can't be
|
|
19
19
|
* bundled into the trade. Once the sell order has filled, call this with the
|
|
20
20
|
* order hash and your `fee` (recipient + percentage/fixed); it reads the actual
|
|
21
21
|
* filled USDC proceeds and returns a `transfer(recipient, fee)` executed by the
|
|
@@ -18,7 +18,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
18
18
|
* @remarks
|
|
19
19
|
* Build a USDC fee transfer on a filled equity sell order's proceeds.
|
|
20
20
|
*
|
|
21
|
-
* Equity orders fill off-chain via a third-party
|
|
21
|
+
* Equity orders fill off-chain via a third-party venue, so the fee can't be
|
|
22
22
|
* bundled into the trade. Once the sell order has filled, call this with the
|
|
23
23
|
* order hash and your `fee` (recipient + percentage/fixed); it reads the actual
|
|
24
24
|
* filled USDC proceeds and returns a `transfer(recipient, fee)` executed by the
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Submit a signed tokenized-equity order (Ondo)
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Submit a signed order
|
|
15
|
+
* Submit a signed order for settlement.
|
|
16
16
|
*
|
|
17
17
|
* The body echoes the `order` fields from `/order` (`signed_order`,
|
|
18
18
|
* `extension`, `quote_id`, optionally `order_hash`) plus the owner's
|
|
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
* Submit a signed tokenized-equity order (Ondo)
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Submit a signed order
|
|
18
|
+
* Submit a signed order for settlement.
|
|
19
19
|
*
|
|
20
20
|
* The body echoes the `order` fields from `/order` (`signed_order`,
|
|
21
21
|
* `extension`, `quote_id`, optionally `order_hash`) plus the owner's
|
|
@@ -15,13 +15,13 @@ import { Result } from "../types/fp.js";
|
|
|
15
15
|
* Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).
|
|
16
16
|
*
|
|
17
17
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
18
|
-
* rejected here with 422 `
|
|
18
|
+
* rejected here with 422 `Wrong trade flow`; they have no auction/quote step —
|
|
19
19
|
* buy/sell them directly via `/transact/buy` & `/transact/sell`.
|
|
20
20
|
*
|
|
21
21
|
* Returns the input/output amounts, fees, and slippage tolerance for an order.
|
|
22
22
|
*
|
|
23
|
-
* Read-only
|
|
24
|
-
*
|
|
23
|
+
* Read-only: previews the quote without consuming a ``quote_id`` or
|
|
24
|
+
* committing an order. Pair with `POST /order`:
|
|
25
25
|
* surface this preview to the user, and on confirm pass the body plus
|
|
26
26
|
* ``recommended_slippage_bps`` to `/order`.
|
|
27
27
|
*
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* - **`quote`** — input/output token amounts, fees, and an
|
|
31
31
|
* ``est_fill_seconds`` upper bound.
|
|
32
32
|
* - **`recommended_slippage_bps`** — system-derived slippage tolerance
|
|
33
|
-
* that clears
|
|
33
|
+
* that clears the current auction floor; pass back as
|
|
34
34
|
* ``slippage_bps`` on `/order` so the build call validates against the
|
|
35
35
|
* same floor the user was shown.
|
|
36
36
|
* - **`auction_range_bps`** — worst-case bps gap between the auction
|
|
@@ -18,13 +18,13 @@ import { APIPromise } from "../types/async.js";
|
|
|
18
18
|
* Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).
|
|
19
19
|
*
|
|
20
20
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
21
|
-
* rejected here with 422 `
|
|
21
|
+
* rejected here with 422 `Wrong trade flow`; they have no auction/quote step —
|
|
22
22
|
* buy/sell them directly via `/transact/buy` & `/transact/sell`.
|
|
23
23
|
*
|
|
24
24
|
* Returns the input/output amounts, fees, and slippage tolerance for an order.
|
|
25
25
|
*
|
|
26
|
-
* Read-only
|
|
27
|
-
*
|
|
26
|
+
* Read-only: previews the quote without consuming a ``quote_id`` or
|
|
27
|
+
* committing an order. Pair with `POST /order`:
|
|
28
28
|
* surface this preview to the user, and on confirm pass the body plus
|
|
29
29
|
* ``recommended_slippage_bps`` to `/order`.
|
|
30
30
|
*
|
|
@@ -33,7 +33,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
33
33
|
* - **`quote`** — input/output token amounts, fees, and an
|
|
34
34
|
* ``est_fill_seconds`` upper bound.
|
|
35
35
|
* - **`recommended_slippage_bps`** — system-derived slippage tolerance
|
|
36
|
-
* that clears
|
|
36
|
+
* that clears the current auction floor; pass back as
|
|
37
37
|
* ``slippage_bps`` on `/order` so the build call validates against the
|
|
38
38
|
* same floor the user was shown.
|
|
39
39
|
* - **`auction_range_bps`** — worst-case bps gap between the auction
|
|
@@ -9,8 +9,8 @@ import { SafeMessageEip712Response } from "./safemessageeip712response.js";
|
|
|
9
9
|
*
|
|
10
10
|
* The owner signs ``safe_message_eip712`` off-chain. At submit time the
|
|
11
11
|
* signature is sent back to ``/order/submit`` together with
|
|
12
|
-
* ``order_message``, ``extension``, and ``quote_id``;
|
|
13
|
-
*
|
|
12
|
+
* ``order_message``, ``extension``, and ``quote_id``; the signature is
|
|
13
|
+
* validated against the Tokenized Assets Account at fill time.
|
|
14
14
|
*/
|
|
15
15
|
export type OrderToSign = {
|
|
16
16
|
/**
|
|
@@ -6,7 +6,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export type SafeMessageMessage = {
|
|
8
8
|
/**
|
|
9
|
-
* Raw bytes the product account is signing under ERC-1271. For a
|
|
9
|
+
* Raw bytes the product account is signing under ERC-1271. For a tokenized-asset order this is the 32-byte order hash.
|
|
10
10
|
*/
|
|
11
11
|
message: string;
|
|
12
12
|
};
|
|
@@ -7,12 +7,9 @@ import { CompassApiBackendV2ModelsBalancesTokenBalance } from "./compassapibacke
|
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* (zero balance). It is the account's cash + activity ledger. Balances are keyed
|
|
14
|
-
* by token symbol, reusing the same `TokenBalance`/`TokenTransfer` shape as the
|
|
15
|
-
* earn and credit balances endpoints.
|
|
10
|
+
* Each token held in the account is keyed by symbol with its current balance,
|
|
11
|
+
* USD value, and transfer history. Uses the same `TokenBalance`/`TokenTransfer`
|
|
12
|
+
* shape as the earn and credit balances endpoints.
|
|
16
13
|
*/
|
|
17
14
|
export type TokenizedAssetsBalancesResponse = {
|
|
18
15
|
/**
|
|
@@ -20,7 +17,7 @@ export type TokenizedAssetsBalancesResponse = {
|
|
|
20
17
|
*/
|
|
21
18
|
tokenizedAssetsAccountAddress: string;
|
|
22
19
|
/**
|
|
23
|
-
* Token balances keyed by
|
|
20
|
+
* Token balances keyed by symbol. Each entry includes the current balance, its USD value, and transfer history.
|
|
24
21
|
*/
|
|
25
22
|
balances?: {
|
|
26
23
|
[k: string]: CompassApiBackendV2ModelsBalancesTokenBalance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedassetsbalancesresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/tokenizedassetsbalancesresponse.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;AACrE,OAAO,EACL,6CAA6C,EAE9C,MAAM,oDAAoD,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"tokenizedassetsbalancesresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/tokenizedassetsbalancesresponse.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;AACrE,OAAO,EACL,6CAA6C,EAE9C,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EACL;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,6CAA6C,CAAA;KAAE,GAC9D,SAAS,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedassetsbalancesresponse.js","sourceRoot":"","sources":["../../../../src/models/components/tokenizedassetsbalancesresponse.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;AAGjD,OAAO,EAEL,2DAA2D,GAC5D,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"tokenizedassetsbalancesresponse.js","sourceRoot":"","sources":["../../../../src/models/components/tokenizedassetsbalancesresponse.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;AAGjD,OAAO,EAEL,2DAA2D,GAC5D,MAAM,oDAAoD,CAAC;AA4B5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,CAChB,2DAA2D,CAC5D,CAAC,QAAQ,EAAE;IACZ,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kCAAkC,EAAE,+BAA+B;QACnE,iBAAiB,EAAE,eAAe;KACnC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uCAAuC,CACrD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -23,8 +23,8 @@ export type TokenizedAssetsBuildOrderResponse = {
|
|
|
23
23
|
*
|
|
24
24
|
* The owner signs ``safe_message_eip712`` off-chain. At submit time the
|
|
25
25
|
* signature is sent back to ``/order/submit`` together with
|
|
26
|
-
* ``order_message``, ``extension``, and ``quote_id``;
|
|
27
|
-
*
|
|
26
|
+
* ``order_message``, ``extension``, and ``quote_id``; the signature is
|
|
27
|
+
* validated against the Tokenized Assets Account at fill time.
|
|
28
28
|
*/
|
|
29
29
|
order: OrderToSign;
|
|
30
30
|
};
|
|
@@ -5,7 +5,7 @@ import { TokenizedAssetsFee, TokenizedAssetsFee$Outbound } from "./tokenizedasse
|
|
|
5
5
|
*
|
|
6
6
|
* @remarks
|
|
7
7
|
*
|
|
8
|
-
* Equity orders fill off-chain via a third-party
|
|
8
|
+
* Equity orders fill off-chain via a third-party venue, so the fee can't
|
|
9
9
|
* ride inside the trade (unlike Midas/earn/credit). After the sell order
|
|
10
10
|
* fills, call this with the order hash to build a USDC `transfer(recipient,
|
|
11
11
|
* fee)` executed by the product account.
|
|
@@ -4,9 +4,9 @@ import * as z from "zod/v3";
|
|
|
4
4
|
*
|
|
5
5
|
* @remarks
|
|
6
6
|
*
|
|
7
|
-
* Read-only
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Read-only: this previews a quote without consuming a ``quote_id`` or
|
|
8
|
+
* committing an order. Use it to surface expected output, fees, and a
|
|
9
|
+
* thin-liquidity warning before the user confirms; pass
|
|
10
10
|
* the same body (plus ``slippage_bps``) to ``POST /tokenized_assets/order``
|
|
11
11
|
* when they do.
|
|
12
12
|
*/
|
|
@@ -11,7 +11,7 @@ export type TokenizedAssetsQuoteResponse = {
|
|
|
11
11
|
*/
|
|
12
12
|
quote: Quote;
|
|
13
13
|
/**
|
|
14
|
-
* Slippage tolerance in basis points (1 bp = 0.01%) the UI should echo back as `slippage_bps` on `POST /tokenized_assets/order`. Derived from
|
|
14
|
+
* Slippage tolerance in basis points (1 bp = 0.01%) the UI should echo back as `slippage_bps` on `POST /tokenized_assets/order`. Derived from the on-chain auction range (`auctionEndAmount` vs `toTokenAmount`) plus a small buffer; capped at 5000 bps.
|
|
15
15
|
*/
|
|
16
16
|
recommendedSlippageBps: number;
|
|
17
17
|
/**
|
|
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
/**
|
|
5
|
-
* Returned after the signed order is
|
|
5
|
+
* Returned after the signed order is submitted for settlement.
|
|
6
6
|
*/
|
|
7
7
|
export type TokenizedAssetsSubmitOrderResponse = {
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ import { CompassAPISDKError } from "./compassapisdkerror.js";
|
|
|
10
10
|
*/
|
|
11
11
|
export type TokenizedAssetsErrorResponseData = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).
|
|
14
14
|
*/
|
|
15
15
|
error: string;
|
|
16
16
|
/**
|
|
@@ -28,7 +28,7 @@ export type TokenizedAssetsErrorResponseData = {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class TokenizedAssetsErrorResponse extends CompassAPISDKError {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).
|
|
32
32
|
*/
|
|
33
33
|
error: string;
|
|
34
34
|
/** The original data that was passed to this error instance. */
|
|
@@ -64,16 +64,13 @@ export declare class TokenizedAssets extends ClientSDK {
|
|
|
64
64
|
*/
|
|
65
65
|
tokenizedAssetsPositions(request: operations.V2TokenizedAssetsPositionsRequest, options?: RequestOptions): Promise<components.TokenizedAssetsPositionsResponse>;
|
|
66
66
|
/**
|
|
67
|
-
* Get
|
|
67
|
+
* Get account balances
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* Get the
|
|
70
|
+
* Get the token balances of a Tokenized Assets Account.
|
|
71
71
|
*
|
|
72
|
-
* Returns
|
|
73
|
-
*
|
|
74
|
-
* equity holdings, priced), this includes **USDC funding** movements and
|
|
75
|
-
* **fully-sold positions** (zero balance), making it the account's cash +
|
|
76
|
-
* activity ledger. Pass `chain=base` for Base holdings.
|
|
72
|
+
* Returns each token held in the account with its current balance, USD value,
|
|
73
|
+
* and transfer history. Pass `chain=base` for Base holdings.
|
|
77
74
|
*/
|
|
78
75
|
tokenizedAssetsBalances(request: operations.V2TokenizedAssetsBalancesRequest, options?: RequestOptions): Promise<components.TokenizedAssetsBalancesResponse>;
|
|
79
76
|
/**
|
|
@@ -152,13 +149,13 @@ export declare class TokenizedAssets extends ClientSDK {
|
|
|
152
149
|
* Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).
|
|
153
150
|
*
|
|
154
151
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
155
|
-
* rejected here with 422 `
|
|
152
|
+
* rejected here with 422 `Wrong trade flow`; they have no auction/quote step —
|
|
156
153
|
* buy/sell them directly via `/transact/buy` & `/transact/sell`.
|
|
157
154
|
*
|
|
158
155
|
* Returns the input/output amounts, fees, and slippage tolerance for an order.
|
|
159
156
|
*
|
|
160
|
-
* Read-only
|
|
161
|
-
*
|
|
157
|
+
* Read-only: previews the quote without consuming a ``quote_id`` or
|
|
158
|
+
* committing an order. Pair with `POST /order`:
|
|
162
159
|
* surface this preview to the user, and on confirm pass the body plus
|
|
163
160
|
* ``recommended_slippage_bps`` to `/order`.
|
|
164
161
|
*
|
|
@@ -167,7 +164,7 @@ export declare class TokenizedAssets extends ClientSDK {
|
|
|
167
164
|
* - **`quote`** — input/output token amounts, fees, and an
|
|
168
165
|
* ``est_fill_seconds`` upper bound.
|
|
169
166
|
* - **`recommended_slippage_bps`** — system-derived slippage tolerance
|
|
170
|
-
* that clears
|
|
167
|
+
* that clears the current auction floor; pass back as
|
|
171
168
|
* ``slippage_bps`` on `/order` so the build call validates against the
|
|
172
169
|
* same floor the user was shown.
|
|
173
170
|
* - **`auction_range_bps`** — worst-case bps gap between the auction
|
|
@@ -182,9 +179,9 @@ export declare class TokenizedAssets extends ClientSDK {
|
|
|
182
179
|
* Build a tokenized-**equity** (Ondo) buy/sell order; maker is the product account.
|
|
183
180
|
*
|
|
184
181
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
185
|
-
* rejected with 422 `
|
|
182
|
+
* rejected with 422 `Wrong trade flow`; trade them via `/transact/buy` &
|
|
186
183
|
* `/transact/sell`. Equity orders are always USDC-paired (USDC→equity to buy,
|
|
187
|
-
* equity→USDC to sell) and settle
|
|
184
|
+
* equity→USDC to sell) and settle on-chain.
|
|
188
185
|
*
|
|
189
186
|
* Returns up to three pieces in a single round-trip:
|
|
190
187
|
*
|
|
@@ -209,7 +206,7 @@ export declare class TokenizedAssets extends ClientSDK {
|
|
|
209
206
|
* Submit a signed tokenized-equity order (Ondo)
|
|
210
207
|
*
|
|
211
208
|
* @remarks
|
|
212
|
-
* Submit a signed order
|
|
209
|
+
* Submit a signed order for settlement.
|
|
213
210
|
*
|
|
214
211
|
* The body echoes the `order` fields from `/order` (`signed_order`,
|
|
215
212
|
* `extension`, `quote_id`, optionally `order_hash`) plus the owner's
|
|
@@ -245,7 +242,7 @@ export declare class TokenizedAssets extends ClientSDK {
|
|
|
245
242
|
* @remarks
|
|
246
243
|
* Build a USDC fee transfer on a filled equity sell order's proceeds.
|
|
247
244
|
*
|
|
248
|
-
* Equity orders fill off-chain via a third-party
|
|
245
|
+
* Equity orders fill off-chain via a third-party venue, so the fee can't be
|
|
249
246
|
* bundled into the trade. Once the sell order has filled, call this with the
|
|
250
247
|
* order hash and your `fee` (recipient + percentage/fixed); it reads the actual
|
|
251
248
|
* filled USDC proceeds and returns a `transfer(recipient, fee)` executed by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedassets.d.ts","sourceRoot":"","sources":["../../../src/sdk/tokenizedassets.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,eAAgB,SAAQ,SAAS;IAC5C;;;;;;;;;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AC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;;;;;;;;OAYG;IACG,sCAAsC,CAC1C,OAAO,EAAE,UAAU,CAAC,+CAA+C,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAQvD;;;;;;;;;;;;;;;OAeG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;;;;;;;;OAYG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAOpD"}
|
|
@@ -86,16 +86,13 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
86
86
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsPositions(this, request, options));
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Get
|
|
89
|
+
* Get account balances
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
|
-
* Get the
|
|
92
|
+
* Get the token balances of a Tokenized Assets Account.
|
|
93
93
|
*
|
|
94
|
-
* Returns
|
|
95
|
-
*
|
|
96
|
-
* equity holdings, priced), this includes **USDC funding** movements and
|
|
97
|
-
* **fully-sold positions** (zero balance), making it the account's cash +
|
|
98
|
-
* activity ledger. Pass `chain=base` for Base holdings.
|
|
94
|
+
* Returns each token held in the account with its current balance, USD value,
|
|
95
|
+
* and transfer history. Pass `chain=base` for Base holdings.
|
|
99
96
|
*/
|
|
100
97
|
async tokenizedAssetsBalances(request, options) {
|
|
101
98
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsBalances(this, request, options));
|
|
@@ -182,13 +179,13 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
182
179
|
* Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).
|
|
183
180
|
*
|
|
184
181
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
185
|
-
* rejected here with 422 `
|
|
182
|
+
* rejected here with 422 `Wrong trade flow`; they have no auction/quote step —
|
|
186
183
|
* buy/sell them directly via `/transact/buy` & `/transact/sell`.
|
|
187
184
|
*
|
|
188
185
|
* Returns the input/output amounts, fees, and slippage tolerance for an order.
|
|
189
186
|
*
|
|
190
|
-
* Read-only
|
|
191
|
-
*
|
|
187
|
+
* Read-only: previews the quote without consuming a ``quote_id`` or
|
|
188
|
+
* committing an order. Pair with `POST /order`:
|
|
192
189
|
* surface this preview to the user, and on confirm pass the body plus
|
|
193
190
|
* ``recommended_slippage_bps`` to `/order`.
|
|
194
191
|
*
|
|
@@ -197,7 +194,7 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
197
194
|
* - **`quote`** — input/output token amounts, fees, and an
|
|
198
195
|
* ``est_fill_seconds`` upper bound.
|
|
199
196
|
* - **`recommended_slippage_bps`** — system-derived slippage tolerance
|
|
200
|
-
* that clears
|
|
197
|
+
* that clears the current auction floor; pass back as
|
|
201
198
|
* ``slippage_bps`` on `/order` so the build call validates against the
|
|
202
199
|
* same floor the user was shown.
|
|
203
200
|
* - **`auction_range_bps`** — worst-case bps gap between the auction
|
|
@@ -214,9 +211,9 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
214
211
|
* Build a tokenized-**equity** (Ondo) buy/sell order; maker is the product account.
|
|
215
212
|
*
|
|
216
213
|
* **Equities only.** RWA yield tokens (Midas — `mTBILL`, `mBASIS`, `mBTC`) are
|
|
217
|
-
* rejected with 422 `
|
|
214
|
+
* rejected with 422 `Wrong trade flow`; trade them via `/transact/buy` &
|
|
218
215
|
* `/transact/sell`. Equity orders are always USDC-paired (USDC→equity to buy,
|
|
219
|
-
* equity→USDC to sell) and settle
|
|
216
|
+
* equity→USDC to sell) and settle on-chain.
|
|
220
217
|
*
|
|
221
218
|
* Returns up to three pieces in a single round-trip:
|
|
222
219
|
*
|
|
@@ -243,7 +240,7 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
243
240
|
* Submit a signed tokenized-equity order (Ondo)
|
|
244
241
|
*
|
|
245
242
|
* @remarks
|
|
246
|
-
* Submit a signed order
|
|
243
|
+
* Submit a signed order for settlement.
|
|
247
244
|
*
|
|
248
245
|
* The body echoes the `order` fields from `/order` (`signed_order`,
|
|
249
246
|
* `extension`, `quote_id`, optionally `order_hash`) plus the owner's
|
|
@@ -283,7 +280,7 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
283
280
|
* @remarks
|
|
284
281
|
* Build a USDC fee transfer on a filled equity sell order's proceeds.
|
|
285
282
|
*
|
|
286
|
-
* Equity orders fill off-chain via a third-party
|
|
283
|
+
* Equity orders fill off-chain via a third-party venue, so the fee can't be
|
|
287
284
|
* bundled into the trade. Once the sell order has filled, call this with the
|
|
288
285
|
* order hash and your `fee` (recipient + percentage/fixed); it reads the actual
|
|
289
286
|
* filled USDC proceeds and returns a `transfer(recipient, fee)` executed by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedassets.js","sourceRoot":"","sources":["../../../src/sdk/tokenizedassets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AAC5G,OAAO,EAAE,2CAA2C,EAAE,MAAM,yDAAyD,CAAC;AACtH,OAAO,EAAE,qCAAqC,EAAE,MAAM,mDAAmD,CAAC;AAC1G,OAAO,EAAE,2CAA2C,EAAE,MAAM,yDAAyD,CAAC;AACtH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,4CAA4C,EAAE,MAAM,0DAA0D,CAAC;AACxH,OAAO,EAAE,kDAAkD,EAAE,MAAM,gEAAgE,CAAC;AACpI,OAAO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AC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAqD,EACrD,OAAwB;QAExB,OAAO,WAAW,CAAC,yCAAyC,CAC1D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,mCAAmC,CACvC,OAAgE,EAChE,OAAwB;QAExB,OAAO,WAAW,CAAC,kDAAkD,CACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,sCAAsC,CAC1C,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,qDAAqD,CACtE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,yCAAyC,CAC1D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,0CAA0C,CAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -4,8 +4,8 @@ Order metadata plus the EIP-712 payload the owner signs to authorize it.
|
|
|
4
4
|
|
|
5
5
|
The owner signs ``safe_message_eip712`` off-chain. At submit time the
|
|
6
6
|
signature is sent back to ``/order/submit`` together with
|
|
7
|
-
``order_message``, ``extension``, and ``quote_id``;
|
|
8
|
-
|
|
7
|
+
``order_message``, ``extension``, and ``quote_id``; the signature is
|
|
8
|
+
validated against the Tokenized Assets Account at fill time.
|
|
9
9
|
|
|
10
10
|
## Example Usage
|
|
11
11
|
|
|
@@ -14,6 +14,6 @@ let value: SafeMessageMessage = {
|
|
|
14
14
|
|
|
15
15
|
## Fields
|
|
16
16
|
|
|
17
|
-
| Field
|
|
18
|
-
|
|
|
19
|
-
| `message`
|
|
17
|
+
| Field | Type | Required | Description |
|
|
18
|
+
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
19
|
+
| `message` | *string* | :heavy_check_mark: | Raw bytes the product account is signing under ERC-1271. For a tokenized-asset order this is the 32-byte order hash. |
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Token balances and transfer history for a Tokenized Assets Account.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
(zero balance). It is the account's cash + activity ledger. Balances are keyed
|
|
9
|
-
by token symbol, reusing the same `TokenBalance`/`TokenTransfer` shape as the
|
|
10
|
-
earn and credit balances endpoints.
|
|
5
|
+
Each token held in the account is keyed by symbol with its current balance,
|
|
6
|
+
USD value, and transfer history. Uses the same `TokenBalance`/`TokenTransfer`
|
|
7
|
+
shape as the earn and credit balances endpoints.
|
|
11
8
|
|
|
12
9
|
## Example Usage
|
|
13
10
|
|
|
@@ -24,5 +21,5 @@ let value: TokenizedAssetsBalancesResponse = {
|
|
|
24
21
|
| Field | Type | Required | Description |
|
|
25
22
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
26
23
|
| `tokenizedAssetsAccountAddress` | *string* | :heavy_check_mark: | The derived Tokenized Assets Account address. |
|
|
27
|
-
| `balances` | Record<string, [components.CompassApiBackendV2ModelsBalancesTokenBalance](../../models/components/compassapibackendv2modelsbalancestokenbalance.md)> | :heavy_minus_sign: | Token balances keyed by
|
|
24
|
+
| `balances` | Record<string, [components.CompassApiBackendV2ModelsBalancesTokenBalance](../../models/components/compassapibackendv2modelsbalancestokenbalance.md)> | :heavy_minus_sign: | Token balances keyed by symbol. Each entry includes the current balance, its USD value, and transfer history. |
|
|
28
25
|
| `totalUsdValue` | *string* | :heavy_minus_sign: | Total USD value of all priced balances. |
|
|
@@ -59,4 +59,4 @@ let value: TokenizedAssetsBuildOrderResponse = {
|
|
|
59
59
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
60
60
|
| `quote` | [components.Quote](../../models/components/quote.md) | :heavy_check_mark: | Quote preview returned alongside an order. |
|
|
61
61
|
| `approvalSafeTxEip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | 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. |
|
|
62
|
-
| `order` | [components.OrderToSign](../../models/components/ordertosign.md) | :heavy_check_mark: | Order metadata plus the EIP-712 payload the owner signs to authorize it.<br/><br/>The owner signs ``safe_message_eip712`` off-chain. At submit time the<br/>signature is sent back to ``/order/submit`` together with<br/>``order_message``, ``extension``, and ``quote_id``;
|
|
62
|
+
| `order` | [components.OrderToSign](../../models/components/ordertosign.md) | :heavy_check_mark: | Order metadata plus the EIP-712 payload the owner signs to authorize it.<br/><br/>The owner signs ``safe_message_eip712`` off-chain. At submit time the<br/>signature is sent back to ``/order/submit`` together with<br/>``order_message``, ``extension``, and ``quote_id``; the signature is<br/>validated against the Tokenized Assets Account at fill time. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Charge a partner fee on the USDC proceeds of a filled sell order.
|
|
4
4
|
|
|
5
|
-
Equity orders fill off-chain via a third-party
|
|
5
|
+
Equity orders fill off-chain via a third-party venue, so the fee can't
|
|
6
6
|
ride inside the trade (unlike Midas/earn/credit). After the sell order
|
|
7
7
|
fills, call this with the order hash to build a USDC `transfer(recipient,
|
|
8
8
|
fee)` executed by the product account.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Preview a buy or sell quote for a tokenized equity.
|
|
4
4
|
|
|
5
|
-
Read-only
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Read-only: this previews a quote without consuming a ``quote_id`` or
|
|
6
|
+
committing an order. Use it to surface expected output, fees, and a
|
|
7
|
+
thin-liquidity warning before the user confirms; pass
|
|
8
8
|
the same body (plus ``slippage_bps``) to ``POST /tokenized_assets/order``
|
|
9
9
|
when they do.
|
|
10
10
|
|