@compass-labs/api-sdk 2.2.85-rc.0 → 2.2.85
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 +32 -32
- package/dist/commonjs/funcs/earnEarnSwapQuote.d.ts +1 -1
- package/dist/commonjs/funcs/earnEarnSwapQuote.js +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts +6 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.js +6 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsBalances.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts +7 -15
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js +7 -15
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts +7 -12
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.js +7 -12
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts +8 -18
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js +8 -18
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +9 -24
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js +9 -24
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts +5 -13
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js +5 -13
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts +5 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js +5 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.d.ts +6 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.js +6 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +5 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +5 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts +7 -13
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.js +7 -13
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsQuote.d.ts +5 -23
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsQuote.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsQuote.js +5 -23
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsQuote.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts +7 -12
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js +7 -12
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.d.ts +9 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.js +9 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactSell.d.ts +10 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactSell.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactSell.js +10 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransactSell.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransfer.d.ts +6 -17
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransfer.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransfer.js +6 -17
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsTransfer.js.map +1 -1
- package/dist/commonjs/sdk/earn.d.ts +1 -1
- package/dist/commonjs/sdk/earn.js +1 -1
- package/dist/commonjs/sdk/tokenizedassets.d.ts +110 -208
- package/dist/commonjs/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/commonjs/sdk/tokenizedassets.js +110 -208
- package/dist/commonjs/sdk/tokenizedassets.js.map +1 -1
- package/dist/esm/funcs/earnEarnSwapQuote.d.ts +1 -1
- package/dist/esm/funcs/earnEarnSwapQuote.js +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts +6 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.js +6 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsBalances.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts +7 -15
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js +7 -15
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts +7 -12
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.js +7 -12
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts +8 -18
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js +8 -18
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +9 -24
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js +9 -24
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts +5 -13
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js +5 -13
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts +5 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js +5 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.d.ts +6 -8
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.js +6 -8
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +5 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +5 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts +7 -13
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.js +7 -13
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsQuote.d.ts +5 -23
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsQuote.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsQuote.js +5 -23
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsQuote.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts +7 -12
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js +7 -12
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.d.ts +9 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.js +9 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactSell.d.ts +10 -8
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactSell.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactSell.js +10 -8
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransactSell.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransfer.d.ts +6 -17
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransfer.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransfer.js +6 -17
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsTransfer.js.map +1 -1
- package/dist/esm/sdk/earn.d.ts +1 -1
- package/dist/esm/sdk/earn.js +1 -1
- package/dist/esm/sdk/tokenizedassets.d.ts +110 -208
- package/dist/esm/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/esm/sdk/tokenizedassets.js +110 -208
- package/dist/esm/sdk/tokenizedassets.js.map +1 -1
- package/docs/sdks/earn/README.md +1 -1
- package/docs/sdks/tokenizedassets/README.md +102 -200
- package/openapi_prepped_for_speakeasy.json +31 -31
- package/package.json +1 -1
- package/src/funcs/earnEarnSwapQuote.ts +1 -1
- package/src/funcs/tokenizedAssetsTokenizedAssetsBalances.ts +6 -4
- package/src/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.ts +7 -15
- package/src/funcs/tokenizedAssetsTokenizedAssetsMarkets.ts +7 -12
- package/src/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.ts +8 -18
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrder.ts +9 -24
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.ts +5 -13
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.ts +5 -11
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee.ts +6 -8
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.ts +5 -11
- package/src/funcs/tokenizedAssetsTokenizedAssetsPositions.ts +7 -13
- package/src/funcs/tokenizedAssetsTokenizedAssetsQuote.ts +5 -23
- package/src/funcs/tokenizedAssetsTokenizedAssetsRedemptions.ts +7 -12
- package/src/funcs/tokenizedAssetsTokenizedAssetsTransactBuy.ts +9 -11
- package/src/funcs/tokenizedAssetsTokenizedAssetsTransactSell.ts +10 -8
- package/src/funcs/tokenizedAssetsTokenizedAssetsTransfer.ts +6 -17
- package/src/sdk/earn.ts +1 -1
- package/src/sdk/tokenizedassets.ts +110 -208
|
@@ -5357,7 +5357,7 @@
|
|
|
5357
5357
|
"tags": [
|
|
5358
5358
|
"Earn"
|
|
5359
5359
|
],
|
|
5360
|
-
"summary": "Quote a swap
|
|
5360
|
+
"summary": "Quote a swap",
|
|
5361
5361
|
"description": "Estimate the output of a swap without building a transaction.\n\nReturns the expected amount of `token_out` received for selling `amount_in`\nof `token_in`, routed via 1inch. This is read-only: it does not build a\ntransaction, require an account, or check balances.\n\nUse it to gauge exit liquidity and price impact for a token before entering\na position \u2014 for example, to warn when a market's underlying asset cannot be\nswapped back to a stablecoin without large slippage.",
|
|
5362
5362
|
"operationId": "v2_earn_swap_quote",
|
|
5363
5363
|
"parameters": [
|
|
@@ -7365,8 +7365,8 @@
|
|
|
7365
7365
|
"tags": [
|
|
7366
7366
|
"Tokenized Assets"
|
|
7367
7367
|
],
|
|
7368
|
-
"summary": "List
|
|
7369
|
-
"description": "List tokenized
|
|
7368
|
+
"summary": "List markets",
|
|
7369
|
+
"description": "List the tradable tokenized-asset catalog.\n\nAggregates all three providers \u2014 Ondo (tokenized US equities), Midas (RWA\nyield tokens), and IXS (managed vaults) \u2014 into a single list with live USD\npricing, plus APY and TVL for yield assets. Filter by provider, asset class,\nor chain, and narrow the results with a sector `category` or free-text\n`search`.",
|
|
7370
7370
|
"operationId": "v2_tokenized_assets_markets",
|
|
7371
7371
|
"parameters": [
|
|
7372
7372
|
{
|
|
@@ -7500,8 +7500,8 @@
|
|
|
7500
7500
|
"tags": [
|
|
7501
7501
|
"Tokenized Assets"
|
|
7502
7502
|
],
|
|
7503
|
-
"summary": "Get a
|
|
7504
|
-
"description": "Get extended detail for a single
|
|
7503
|
+
"summary": "Get a market",
|
|
7504
|
+
"description": "Get extended detail for a single market \u2014 an Ondo **equity** (e.g. `TSLAon`), a\nMidas **RWA yield token** (e.g. `mTBILL`), or an IXS **managed vault** (e.g.\n`ixv1`).\n\nAdds richer market data on top of the `/markets` listing, plus an optional\nOHLC candle series: pass matching `interval` and `range` query params to\ninclude `candles` (available for equities, Midas tokens except `mBTC`, and IXS\nvaults; omit both for detail without candles).",
|
|
7505
7505
|
"operationId": "v2_tokenized_assets_markets_{symbol}",
|
|
7506
7506
|
"parameters": [
|
|
7507
7507
|
{
|
|
@@ -7627,8 +7627,8 @@
|
|
|
7627
7627
|
"tags": [
|
|
7628
7628
|
"Tokenized Assets"
|
|
7629
7629
|
],
|
|
7630
|
-
"summary": "
|
|
7631
|
-
"description": "Get
|
|
7630
|
+
"summary": "List positions",
|
|
7631
|
+
"description": "Get an owner's tokenized-asset holdings, priced and aggregated.\n\nReturns positions across every asset family the account holds \u2014 Ondo equities,\nMidas RWA yield tokens, and IXS managed vaults \u2014 each valued in USD (equities\nfrom the Ondo feed, RWA at the latest indexed NAV) with a `total_usd` total.\nThe account is derived from `owner`; pass `chain` for Base (Midas) or BNB Smart\nChain (IXS) holdings.",
|
|
7632
7632
|
"operationId": "v2_tokenized_assets_positions",
|
|
7633
7633
|
"parameters": [
|
|
7634
7634
|
{
|
|
@@ -7712,8 +7712,8 @@
|
|
|
7712
7712
|
"tags": [
|
|
7713
7713
|
"Tokenized Assets"
|
|
7714
7714
|
],
|
|
7715
|
-
"summary": "Get
|
|
7716
|
-
"description": "Get
|
|
7715
|
+
"summary": "Get token balances",
|
|
7716
|
+
"description": "Get a Tokenized Assets Account's full token ledger.\n\nReturns every token the account has held \u2014 including zero balances from fully-exited\npositions and USDC funding \u2014 each with its USD value and transfer history (a\nsuperset of `/positions`). Pass `chain=base` or `chain=bsc` for Base or BNB Smart\nChain holdings.",
|
|
7717
7717
|
"operationId": "v2_tokenized_assets_balances",
|
|
7718
7718
|
"parameters": [
|
|
7719
7719
|
{
|
|
@@ -7777,8 +7777,8 @@
|
|
|
7777
7777
|
"tags": [
|
|
7778
7778
|
"Tokenized Assets"
|
|
7779
7779
|
],
|
|
7780
|
-
"summary": "Get
|
|
7781
|
-
"description": "
|
|
7780
|
+
"summary": "Get order status",
|
|
7781
|
+
"description": "Poll the lifecycle state of a submitted equity order (Ondo).\n\nReports `pending`, `filled`, `expired`, or `cancelled`, with fill details as\nthey arrive. Equity orders only \u2014 RWA yield swaps settle in one transaction and\nhave no lifecycle to poll.",
|
|
7782
7782
|
"operationId": "v2_tokenized_assets_order_{order_hash}",
|
|
7783
7783
|
"parameters": [
|
|
7784
7784
|
{
|
|
@@ -7851,8 +7851,8 @@
|
|
|
7851
7851
|
"tags": [
|
|
7852
7852
|
"Tokenized Assets"
|
|
7853
7853
|
],
|
|
7854
|
-
"summary": "
|
|
7855
|
-
"description": "Get an owner's IXS vault redemption requests
|
|
7854
|
+
"summary": "List redemption requests",
|
|
7855
|
+
"description": "Get an owner's IXS managed-vault redemption requests and their status.\n\nIXS vault sells are asynchronous \u2014 `/transact/sell` files a `requestRedeem`\nthat the vault operator settles off-chain later. This reconstructs the owner's\nrequests live from the vault (Compass stores no async state), reporting each as\n`pending`, `finalized`, or `rejected`. IXS vaults live on BNB Smart Chain\n(`chain=bsc`, vault `ixv1`).",
|
|
7856
7856
|
"operationId": "v2_tokenized_assets_redemptions",
|
|
7857
7857
|
"parameters": [
|
|
7858
7858
|
{
|
|
@@ -7928,8 +7928,8 @@
|
|
|
7928
7928
|
"tags": [
|
|
7929
7929
|
"Tokenized Assets"
|
|
7930
7930
|
],
|
|
7931
|
-
"summary": "Create
|
|
7932
|
-
"description": "Create a Tokenized Assets Account for a wallet address.\n\
|
|
7931
|
+
"summary": "Create account",
|
|
7932
|
+
"description": "Create a Tokenized Assets Account for a wallet address.\n\nBefore trading tokenized assets, the owner must create a Tokenized Assets\nAccount. Each wallet address has one Tokenized Assets Account per chain.\n\nReturns an unsigned transaction to create the account. The `sender` signs\nand broadcasts this transaction.\n\n**If owner pays gas:** Set `sender` to the owner's address.\n\n**If someone else pays gas:** Set `sender` to the wallet that will sign and\nbroadcast the transaction on behalf of the owner.",
|
|
7933
7933
|
"operationId": "v2_tokenized_assets_create_account",
|
|
7934
7934
|
"requestBody": {
|
|
7935
7935
|
"content": {
|
|
@@ -7971,8 +7971,8 @@
|
|
|
7971
7971
|
"tags": [
|
|
7972
7972
|
"Tokenized Assets"
|
|
7973
7973
|
],
|
|
7974
|
-
"summary": "
|
|
7975
|
-
"description": "Move tokens between the owner's wallet and their Tokenized Assets Account.\n\
|
|
7974
|
+
"summary": "Transfer tokens to/from account",
|
|
7975
|
+
"description": "Move tokens between the owner's wallet and their Tokenized Assets Account.\n\n`DEPOSIT` funds the account from the owner's wallet; `WITHDRAW` sends tokens\nback. Supports gas sponsorship: with `gas_sponsorship=true` the owner signs\nEIP-712 typed data (a Permit2 permit on deposit, a product-account transaction\non withdrawal) and a sponsor broadcasts; otherwise the owner broadcasts the\ntransaction directly.",
|
|
7976
7976
|
"operationId": "v2_tokenized_assets_transfer",
|
|
7977
7977
|
"requestBody": {
|
|
7978
7978
|
"content": {
|
|
@@ -8024,8 +8024,8 @@
|
|
|
8024
8024
|
"tags": [
|
|
8025
8025
|
"Tokenized Assets"
|
|
8026
8026
|
],
|
|
8027
|
-
"summary": "
|
|
8028
|
-
"description": "Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).\n\
|
|
8027
|
+
"summary": "Quote an order",
|
|
8028
|
+
"description": "Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).\n\nRead-only price preview: returns the expected input/output amounts and a\nsystem-recommended slippage tolerance to carry into `/order`. Equities only \u2014\nRWA yield tokens (Midas) have no quote step and are rejected with `422 Wrong\ntrade flow`; trade them via `/transact/buy` and `/transact/sell`.",
|
|
8029
8029
|
"operationId": "v2_tokenized_assets_quote",
|
|
8030
8030
|
"requestBody": {
|
|
8031
8031
|
"content": {
|
|
@@ -8107,8 +8107,8 @@
|
|
|
8107
8107
|
"tags": [
|
|
8108
8108
|
"Tokenized Assets"
|
|
8109
8109
|
],
|
|
8110
|
-
"summary": "Build
|
|
8111
|
-
"description": "Build a tokenized-**equity** (Ondo) buy/sell order;
|
|
8110
|
+
"summary": "Build an order",
|
|
8111
|
+
"description": "Build a tokenized-**equity** (Ondo) buy/sell order; the product account is the\nmaker.\n\nReturns everything needed to place the order in one round-trip: a price quote,\na one-time token approval to sign (only until the settlement contract is\napproved), and the order payload the owner signs off-chain. Only the approval\never touches the chain \u2014 the signed order is relayed to market makers, never\nbroadcast. Equities only; RWA yield tokens use `/transact/buy` and\n`/transact/sell`.",
|
|
8112
8112
|
"operationId": "v2_tokenized_assets_order",
|
|
8113
8113
|
"requestBody": {
|
|
8114
8114
|
"content": {
|
|
@@ -8200,8 +8200,8 @@
|
|
|
8200
8200
|
"tags": [
|
|
8201
8201
|
"Tokenized Assets"
|
|
8202
8202
|
],
|
|
8203
|
-
"summary": "Submit a signed
|
|
8204
|
-
"description": "Submit a signed order for settlement.\n\
|
|
8203
|
+
"summary": "Submit a signed order",
|
|
8204
|
+
"description": "Submit a signed equity order to the market-maker network for settlement.\n\nRelays the payload from `/order` plus the owner's signature, and returns the\norder hash. Poll `GET /order/{order_hash}` to track its lifecycle (`pending` \u2192\n`filled` / `expired` / `cancelled`).",
|
|
8205
8205
|
"operationId": "v2_tokenized_assets_order_submit",
|
|
8206
8206
|
"requestBody": {
|
|
8207
8207
|
"content": {
|
|
@@ -8273,8 +8273,8 @@
|
|
|
8273
8273
|
"tags": [
|
|
8274
8274
|
"Tokenized Assets"
|
|
8275
8275
|
],
|
|
8276
|
-
"summary": "Cancel an
|
|
8277
|
-
"description": "
|
|
8276
|
+
"summary": "Cancel an order",
|
|
8277
|
+
"description": "Cancel an unfilled equity order on-chain.\n\nReturns an EIP-712 payload the owner signs; a sponsor relays it, or the owner\nbroadcasts it directly. Works only on `pending` or `expired` orders, and only\nthe account that placed the order can cancel it.",
|
|
8278
8278
|
"operationId": "v2_tokenized_assets_order_{order_hash}_cancel",
|
|
8279
8279
|
"parameters": [
|
|
8280
8280
|
{
|
|
@@ -8377,8 +8377,8 @@
|
|
|
8377
8377
|
"tags": [
|
|
8378
8378
|
"Tokenized Assets"
|
|
8379
8379
|
],
|
|
8380
|
-
"summary": "Charge a partner fee
|
|
8381
|
-
"description": "
|
|
8380
|
+
"summary": "Charge a partner fee",
|
|
8381
|
+
"description": "Charge a partner fee on a filled equity sell order's USDC proceeds.\n\nEquity orders settle off-chain, so fees can't be bundled into the trade \u2014 call\nthis after a sell fills and it builds a USDC transfer of your `fee` from the\nactual proceeds, executed by the product account (owner signs, or EIP-712 with\n`gas_sponsorship`).",
|
|
8382
8382
|
"operationId": "v2_tokenized_assets_order_{order_hash}_charge_fee",
|
|
8383
8383
|
"parameters": [
|
|
8384
8384
|
{
|
|
@@ -8431,8 +8431,8 @@
|
|
|
8431
8431
|
"tags": [
|
|
8432
8432
|
"Tokenized Assets"
|
|
8433
8433
|
],
|
|
8434
|
-
"summary": "Buy an RWA yield token
|
|
8435
|
-
"description": "Buy
|
|
8434
|
+
"summary": "Buy an RWA yield token",
|
|
8435
|
+
"description": "Buy an RWA yield token, or deposit into an IXS managed vault, with a stablecoin\nin one transaction.\n\nSet `token_out` to a Midas symbol (`mTBILL`, `mBASIS`, `mBTC`) or to an IXS\n**vault address** (its shares aren't a registered symbol). The account spends\na stablecoin it already holds (fund it with a plain transfer first) and\nsettles inside the product account \u2014 an unsigned transaction the owner signs,\nor EIP-712 with `gas_sponsorship`. Both paths are instant. Equities use the\norder flow (`/quote`, `/order`).",
|
|
8436
8436
|
"operationId": "v2_tokenized_assets_transact_buy",
|
|
8437
8437
|
"requestBody": {
|
|
8438
8438
|
"content": {
|
|
@@ -8474,8 +8474,8 @@
|
|
|
8474
8474
|
"tags": [
|
|
8475
8475
|
"Tokenized Assets"
|
|
8476
8476
|
],
|
|
8477
|
-
"summary": "Sell an RWA yield token
|
|
8478
|
-
"description": "Sell
|
|
8477
|
+
"summary": "Sell an RWA yield token",
|
|
8478
|
+
"description": "Sell an RWA yield token, or redeem from an IXS managed vault, back to a\nstablecoin.\n\nSet `token_in` to a Midas symbol (`mTBILL`, `mBASIS`, `mBTC`) or to an IXS\n**vault address**. A Midas redemption is instant and settles in the same\ntransaction; an IXS redemption is **asynchronous** \u2014 it files a\n`requestRedeem` (`settlement: async`) the vault operator settles off-chain\nlater, so poll `GET /v2/tokenized_assets/redemptions` for status. The\ntransaction executes inside the product account (owner signs, or EIP-712 with\n`gas_sponsorship`).",
|
|
8479
8479
|
"operationId": "v2_tokenized_assets_transact_sell",
|
|
8480
8480
|
"requestBody": {
|
|
8481
8481
|
"content": {
|
package/package.json
CHANGED
|
@@ -28,13 +28,15 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Get
|
|
31
|
+
* Get token balances
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Get
|
|
34
|
+
* Get a Tokenized Assets Account's full token ledger.
|
|
35
35
|
*
|
|
36
|
-
* Returns
|
|
37
|
-
* and
|
|
36
|
+
* Returns every token the account has held — including zero balances from fully-exited
|
|
37
|
+
* positions and USDC funding — each with its USD value and transfer history (a
|
|
38
|
+
* superset of `/positions`). Pass `chain=base` or `chain=bsc` for Base or BNB Smart
|
|
39
|
+
* Chain holdings.
|
|
38
40
|
*/
|
|
39
41
|
export function tokenizedAssetsTokenizedAssetsBalances(
|
|
40
42
|
client: CompassApiSDKCore,
|
|
@@ -27,29 +27,21 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Create
|
|
30
|
+
* Create account
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Create a Tokenized Assets Account for a wallet address.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* `/transact/buy` + `/transact/sell`) both settle into this one account.
|
|
35
|
+
* Before trading tokenized assets, the owner must create a Tokenized Assets
|
|
36
|
+
* Account. Each wallet address has one Tokenized Assets Account per chain.
|
|
38
37
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* The account address is deterministic. If it already exists, the
|
|
43
|
-
* response returns `transaction: null` and you can skip straight to
|
|
44
|
-
* building orders.
|
|
45
|
-
*
|
|
46
|
-
* Returns an unsigned transaction to create the account. The `sender`
|
|
47
|
-
* signs and broadcasts this transaction.
|
|
38
|
+
* Returns an unsigned transaction to create the account. The `sender` signs
|
|
39
|
+
* and broadcasts this transaction.
|
|
48
40
|
*
|
|
49
41
|
* **If owner pays gas:** Set `sender` to the owner's address.
|
|
50
42
|
*
|
|
51
|
-
* **If someone else pays gas:** Set `sender` to the wallet that will
|
|
52
|
-
*
|
|
43
|
+
* **If someone else pays gas:** Set `sender` to the wallet that will sign and
|
|
44
|
+
* broadcast the transaction on behalf of the owner.
|
|
53
45
|
*/
|
|
54
46
|
export function tokenizedAssetsTokenizedAssetsCreateAccount(
|
|
55
47
|
client: CompassApiSDKCore,
|
|
@@ -28,21 +28,16 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* List
|
|
31
|
+
* List markets
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* List tokenized
|
|
34
|
+
* List the tradable tokenized-asset catalog.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* (substring match against symbol, ticker, or name).
|
|
42
|
-
*
|
|
43
|
-
* Equities are Ethereum-only; RWA yield tokens also list on Base — pass
|
|
44
|
-
* `chain=base` to see them. How to trade each: `asset_class=EQUITY` →
|
|
45
|
-
* `/quote` + `/order`; the RWA classes → `/transact/buy` + `/transact/sell`.
|
|
36
|
+
* Aggregates all three providers — Ondo (tokenized US equities), Midas (RWA
|
|
37
|
+
* yield tokens), and IXS (managed vaults) — into a single list with live USD
|
|
38
|
+
* pricing, plus APY and TVL for yield assets. Filter by provider, asset class,
|
|
39
|
+
* or chain, and narrow the results with a sector `category` or free-text
|
|
40
|
+
* `search`.
|
|
46
41
|
*/
|
|
47
42
|
export function tokenizedAssetsTokenizedAssetsMarkets(
|
|
48
43
|
client: CompassApiSDKCore,
|
|
@@ -28,27 +28,17 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Get a
|
|
31
|
+
* Get a market
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Get extended detail for a single
|
|
34
|
+
* Get extended detail for a single market — an Ondo **equity** (e.g. `TSLAon`), a
|
|
35
|
+
* Midas **RWA yield token** (e.g. `mTBILL`), or an IXS **managed vault** (e.g.
|
|
36
|
+
* `ixv1`).
|
|
35
37
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* `tvl_usd`.
|
|
41
|
-
*
|
|
42
|
-
* **OHLC candles are an equities-only feature** — opt in by passing both
|
|
43
|
-
* `interval` and `range` query params to include a `candles` array. They
|
|
44
|
-
* must be provided together and must form one of the supported pairs:
|
|
45
|
-
*
|
|
46
|
-
* - `1min` / `5min` / `15min` with `range=1day`
|
|
47
|
-
* - `1hour` / `4hour` with `range=1month`
|
|
48
|
-
* - `12hour` with `range=3month`
|
|
49
|
-
* - `1day` with `range=3month` / `6month` / `1year` / `all`
|
|
50
|
-
*
|
|
51
|
-
* Omitting both returns the market detail without `candles`.
|
|
38
|
+
* Adds richer market data on top of the `/markets` listing, plus an optional
|
|
39
|
+
* OHLC candle series: pass matching `interval` and `range` query params to
|
|
40
|
+
* include `candles` (available for equities, Midas tokens except `mBTC`, and IXS
|
|
41
|
+
* vaults; omit both for detail without candles).
|
|
52
42
|
*/
|
|
53
43
|
export function tokenizedAssetsTokenizedAssetsMarketsSymbol(
|
|
54
44
|
client: CompassApiSDKCore,
|
|
@@ -27,33 +27,18 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Build
|
|
30
|
+
* Build an order
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Build a tokenized-**equity** (Ondo) buy/sell order;
|
|
33
|
+
* Build a tokenized-**equity** (Ondo) buy/sell order; the product account is the
|
|
34
|
+
* maker.
|
|
34
35
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* - **`quote`** — preview of the input/output amounts and fees.
|
|
43
|
-
* - **`approval_safe_tx_eip712`** — only present when the account's
|
|
44
|
-
* allowance to the settlement contract is below `amount`. The owner
|
|
45
|
-
* signs this EIP-712 payload, then it is broadcast via
|
|
46
|
-
* `POST /v2/gas_sponsorship/prepare` (or the owner can broadcast
|
|
47
|
-
* directly) to set the on-chain allowance. Wait for that transaction
|
|
48
|
-
* to confirm before signing the order.
|
|
49
|
-
* - **`order`** — the order metadata (`order_hash`, `extension`,
|
|
50
|
-
* `quote_id`, `order_message`) plus `safe_message_eip712`, an EIP-712
|
|
51
|
-
* payload the owner signs off-chain to authorize the order. The
|
|
52
|
-
* signature is submitted to `/order/submit` and is **never** broadcast
|
|
53
|
-
* on-chain.
|
|
54
|
-
*
|
|
55
|
-
* The owner never broadcasts the order itself — only the (one-time)
|
|
56
|
-
* approval transaction ever hits the chain.
|
|
36
|
+
* Returns everything needed to place the order in one round-trip: a price quote,
|
|
37
|
+
* a one-time token approval to sign (only until the settlement contract is
|
|
38
|
+
* approved), and the order payload the owner signs off-chain. Only the approval
|
|
39
|
+
* ever touches the chain — the signed order is relayed to market makers, never
|
|
40
|
+
* broadcast. Equities only; RWA yield tokens use `/transact/buy` and
|
|
41
|
+
* `/transact/sell`.
|
|
57
42
|
*/
|
|
58
43
|
export function tokenizedAssetsTokenizedAssetsOrder(
|
|
59
44
|
client: CompassApiSDKCore,
|
|
@@ -28,22 +28,14 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Get
|
|
31
|
+
* Get order status
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
*
|
|
34
|
+
* Poll the lifecycle state of a submitted equity order (Ondo).
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* lifecycle to poll.
|
|
39
|
-
*
|
|
40
|
-
* The `status` field is one of `pending`, `filled`, `expired`, or
|
|
41
|
-
* `cancelled`. Partial fills stay in `pending` while `filled_amount` is
|
|
42
|
-
* populated as fills come in; once an order fully fills, `fill_tx_hash`
|
|
43
|
-
* is also returned.
|
|
44
|
-
*
|
|
45
|
-
* Upstream protocol states beyond these four (e.g. `partially-filled`,
|
|
46
|
-
* `refunded`) are mapped onto this set.
|
|
36
|
+
* Reports `pending`, `filled`, `expired`, or `cancelled`, with fill details as
|
|
37
|
+
* they arrive. Equity orders only — RWA yield swaps settle in one transaction and
|
|
38
|
+
* have no lifecycle to poll.
|
|
47
39
|
*/
|
|
48
40
|
export function tokenizedAssetsTokenizedAssetsOrderOrderHash(
|
|
49
41
|
client: CompassApiSDKCore,
|
|
@@ -28,20 +28,14 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Cancel an
|
|
31
|
+
* Cancel an order
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
*
|
|
34
|
+
* Cancel an unfilled equity order on-chain.
|
|
35
35
|
*
|
|
36
|
-
* Returns
|
|
37
|
-
*
|
|
38
|
-
*
|
|
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.
|
|
42
|
-
*
|
|
43
|
-
* Cancellation works on `pending` and `expired` orders only. Only the
|
|
44
|
-
* Tokenized Assets Account that placed the order can cancel it.
|
|
36
|
+
* Returns an EIP-712 payload the owner signs; a sponsor relays it, or the owner
|
|
37
|
+
* broadcasts it directly. Works only on `pending` or `expired` orders, and only
|
|
38
|
+
* the account that placed the order can cancel it.
|
|
45
39
|
*/
|
|
46
40
|
export function tokenizedAssetsTokenizedAssetsOrderOrderHashCancel(
|
|
47
41
|
client: CompassApiSDKCore,
|
|
@@ -28,17 +28,15 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Charge a partner fee
|
|
31
|
+
* Charge a partner fee
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
*
|
|
34
|
+
* Charge a partner fee on a filled equity sell order's USDC proceeds.
|
|
35
35
|
*
|
|
36
|
-
* Equity orders
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* product account — an unsigned transaction the owner signs, or an EIP-712
|
|
41
|
-
* payload when `gas_sponsorship` is true.
|
|
36
|
+
* Equity orders settle off-chain, so fees can't be bundled into the trade — call
|
|
37
|
+
* this after a sell fills and it builds a USDC transfer of your `fee` from the
|
|
38
|
+
* actual proceeds, executed by the product account (owner signs, or EIP-712 with
|
|
39
|
+
* `gas_sponsorship`).
|
|
42
40
|
*/
|
|
43
41
|
export function tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee(
|
|
44
42
|
client: CompassApiSDKCore,
|
|
@@ -27,20 +27,14 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Submit a signed
|
|
30
|
+
* Submit a signed order
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Submit a signed order for settlement.
|
|
33
|
+
* Submit a signed equity order to the market-maker network for settlement.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* struct is the Tokenized Assets Account, not the owner's wallet —
|
|
39
|
-
* pass `signed_order` back unchanged.
|
|
40
|
-
*
|
|
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`).
|
|
35
|
+
* Relays the payload from `/order` plus the owner's signature, and returns the
|
|
36
|
+
* order hash. Poll `GET /order/{order_hash}` to track its lifecycle (`pending` →
|
|
37
|
+
* `filled` / `expired` / `cancelled`).
|
|
44
38
|
*/
|
|
45
39
|
export function tokenizedAssetsTokenizedAssetsOrderSubmit(
|
|
46
40
|
client: CompassApiSDKCore,
|
|
@@ -28,22 +28,16 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
28
|
import { Result } from "../types/fp.js";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* List positions
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Get
|
|
34
|
+
* Get an owner's tokenized-asset holdings, priced and aggregated.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
* Midas RWA yield tokens
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* RWA positions are valued at the latest indexed NAV. Pass `chain=base` for
|
|
42
|
-
* Base holdings (equities are Ethereum-only). Zero balances are omitted, and
|
|
43
|
-
* a `total_usd` aggregate is returned across all priced positions.
|
|
44
|
-
*
|
|
45
|
-
* Returns 400 `ACCOUNT_NOT_DEPLOYED` if the owner has no Tokenized Assets
|
|
46
|
-
* Account deployed yet — create one via `/create_account` first.
|
|
36
|
+
* Returns positions across every asset family the account holds — Ondo equities,
|
|
37
|
+
* Midas RWA yield tokens, and IXS managed vaults — each valued in USD (equities
|
|
38
|
+
* from the Ondo feed, RWA at the latest indexed NAV) with a `total_usd` total.
|
|
39
|
+
* The account is derived from `owner`; pass `chain` for Base (Midas) or BNB Smart
|
|
40
|
+
* Chain (IXS) holdings.
|
|
47
41
|
*/
|
|
48
42
|
export function tokenizedAssetsTokenizedAssetsPositions(
|
|
49
43
|
client: CompassApiSDKCore,
|
|
@@ -27,33 +27,15 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Quote an order
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).
|
|
34
34
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* Returns the input/output amounts, fees, and slippage tolerance for an order.
|
|
40
|
-
*
|
|
41
|
-
* Read-only: previews the quote without consuming a ``quote_id`` or
|
|
42
|
-
* committing an order. Pair with `POST /order`:
|
|
43
|
-
* surface this preview to the user, and on confirm pass the body plus
|
|
44
|
-
* ``recommended_slippage_bps`` to `/order`.
|
|
45
|
-
*
|
|
46
|
-
* The response carries:
|
|
47
|
-
*
|
|
48
|
-
* - **`quote`** — input/output token amounts, fees, and an
|
|
49
|
-
* ``est_fill_seconds`` upper bound.
|
|
50
|
-
* - **`recommended_slippage_bps`** — system-derived slippage tolerance
|
|
51
|
-
* that clears the current auction floor; pass back as
|
|
52
|
-
* ``slippage_bps`` on `/order` so the build call validates against the
|
|
53
|
-
* same floor the user was shown.
|
|
54
|
-
* - **`auction_range_bps`** — worst-case bps gap between the auction
|
|
55
|
-
* end amount and the reference quote amount. Use to surface a
|
|
56
|
-
* thin-liquidity warning to the user.
|
|
35
|
+
* Read-only price preview: returns the expected input/output amounts and a
|
|
36
|
+
* system-recommended slippage tolerance to carry into `/order`. Equities only —
|
|
37
|
+
* RWA yield tokens (Midas) have no quote step and are rejected with `422 Wrong
|
|
38
|
+
* trade flow`; trade them via `/transact/buy` and `/transact/sell`.
|
|
57
39
|
*/
|
|
58
40
|
export function tokenizedAssetsTokenizedAssetsQuote(
|
|
59
41
|
client: CompassApiSDKCore,
|