@compass-labs/api-sdk 2.2.46-rc.0 → 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.
- package/README.md +8 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts +12 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js +12 -8
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts +9 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.js +9 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarkets.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts +13 -5
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js +13 -5
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +16 -15
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js +16 -15
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrder.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts +8 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js +8 -4
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts +9 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js +9 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +10 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +10 -11
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts +10 -5
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.js +10 -5
- package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsPositions.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +4 -4
- package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +1 -1
- package/dist/commonjs/models/components/marketdetail.d.ts +5 -5
- package/dist/commonjs/models/components/marketdetail.js +1 -1
- package/dist/commonjs/models/components/ohlccandle.d.ts +1 -1
- package/dist/commonjs/models/components/orderstatus.d.ts +8 -8
- package/dist/commonjs/models/components/orderstatus.js +1 -1
- package/dist/commonjs/models/components/ordertosign.d.ts +9 -10
- package/dist/commonjs/models/components/ordertosign.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordertosign.js.map +1 -1
- package/dist/commonjs/models/components/quote.d.ts +2 -2
- package/dist/commonjs/models/components/quotefee.d.ts +2 -2
- package/dist/commonjs/models/components/tokenizedassetsbuildorderrequest.d.ts +3 -3
- package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.d.ts +7 -8
- package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetsbuildorderresponse.js.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetscancelorderrequest.d.ts +1 -1
- package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.d.ts +8 -10
- package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenizedassetssubmitorderrequest.js.map +1 -1
- package/dist/commonjs/sdk/tokenizedassets.d.ts +94 -70
- package/dist/commonjs/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/commonjs/sdk/tokenizedassets.js +94 -70
- package/dist/commonjs/sdk/tokenizedassets.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts +12 -8
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js +12 -8
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts +9 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.js +9 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarkets.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts +13 -5
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js +13 -5
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts +16 -15
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js +16 -15
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrder.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts +8 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js +8 -4
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts +9 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js +9 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts +10 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js +10 -11
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts +10 -5
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.d.ts.map +1 -1
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.js +10 -5
- package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsPositions.js.map +1 -1
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +4 -4
- package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +1 -1
- package/dist/esm/models/components/marketdetail.d.ts +5 -5
- package/dist/esm/models/components/marketdetail.js +1 -1
- package/dist/esm/models/components/ohlccandle.d.ts +1 -1
- package/dist/esm/models/components/orderstatus.d.ts +8 -8
- package/dist/esm/models/components/orderstatus.js +1 -1
- package/dist/esm/models/components/ordertosign.d.ts +9 -10
- package/dist/esm/models/components/ordertosign.d.ts.map +1 -1
- package/dist/esm/models/components/ordertosign.js.map +1 -1
- package/dist/esm/models/components/quote.d.ts +2 -2
- package/dist/esm/models/components/quotefee.d.ts +2 -2
- package/dist/esm/models/components/tokenizedassetsbuildorderrequest.d.ts +3 -3
- package/dist/esm/models/components/tokenizedassetsbuildorderresponse.d.ts +7 -8
- package/dist/esm/models/components/tokenizedassetsbuildorderresponse.d.ts.map +1 -1
- package/dist/esm/models/components/tokenizedassetsbuildorderresponse.js.map +1 -1
- package/dist/esm/models/components/tokenizedassetscancelorderrequest.d.ts +1 -1
- package/dist/esm/models/components/tokenizedassetssubmitorderrequest.d.ts +8 -10
- package/dist/esm/models/components/tokenizedassetssubmitorderrequest.d.ts.map +1 -1
- package/dist/esm/models/components/tokenizedassetssubmitorderrequest.js.map +1 -1
- package/dist/esm/sdk/tokenizedassets.d.ts +94 -70
- package/dist/esm/sdk/tokenizedassets.d.ts.map +1 -1
- package/dist/esm/sdk/tokenizedassets.js +94 -70
- package/dist/esm/sdk/tokenizedassets.js.map +1 -1
- package/docs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.md +2 -2
- package/docs/models/components/compassapibackendv2modelstokenizedassetsmarketmarketchain.md +1 -1
- package/docs/models/components/marketdetail.md +3 -3
- package/docs/models/components/marketdetailchain.md +1 -1
- package/docs/models/components/ohlccandle.md +1 -1
- package/docs/models/components/orderstatus.md +9 -9
- package/docs/models/components/ordertosign.md +12 -13
- package/docs/models/components/quote.md +6 -6
- package/docs/models/components/quotefee.md +2 -2
- package/docs/models/components/status.md +1 -1
- package/docs/models/components/tokenizedassetsbuildorderrequest.md +8 -8
- package/docs/models/components/tokenizedassetsbuildorderresponse.md +6 -6
- package/docs/models/components/tokenizedassetscancelorderrequest.md +3 -3
- package/docs/models/components/tokenizedassetssubmitorderrequest.md +11 -13
- package/docs/sdks/tokenizedassets/README.md +87 -63
- package/package.json +1 -1
- package/src/funcs/tokenizedAssetsTokenizedAssetsCreateAccount.ts +12 -8
- package/src/funcs/tokenizedAssetsTokenizedAssetsMarkets.ts +9 -4
- package/src/funcs/tokenizedAssetsTokenizedAssetsMarketsSymbol.ts +13 -5
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrder.ts +16 -15
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHash.ts +8 -4
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderOrderHashCancel.ts +9 -11
- package/src/funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.ts +10 -11
- package/src/funcs/tokenizedAssetsTokenizedAssetsPositions.ts +10 -5
- package/src/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.ts +4 -4
- package/src/models/components/marketdetail.ts +5 -5
- package/src/models/components/ohlccandle.ts +1 -1
- package/src/models/components/orderstatus.ts +8 -8
- package/src/models/components/ordertosign.ts +9 -10
- package/src/models/components/quote.ts +2 -2
- package/src/models/components/quotefee.ts +2 -2
- package/src/models/components/tokenizedassetsbuildorderrequest.ts +3 -3
- package/src/models/components/tokenizedassetsbuildorderresponse.ts +7 -8
- package/src/models/components/tokenizedassetscancelorderrequest.ts +1 -1
- package/src/models/components/tokenizedassetssubmitorderrequest.ts +8 -10
- package/src/sdk/tokenizedassets.ts +94 -70
|
@@ -3,128 +3,152 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class TokenizedAssets extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
* List equity markets
|
|
6
|
+
* List tokenized equity markets
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* List tokenized equities
|
|
9
|
+
* List the tokenized US equities available on Ethereum.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Each entry includes the symbol, the underlying ticker, the on-chain
|
|
12
|
+
* contract address, the latest USD price, and 24h price change. Filter
|
|
13
|
+
* by `category` (sector tag) or `search` (substring match against symbol,
|
|
14
|
+
* ticker, or name).
|
|
15
|
+
*
|
|
16
|
+
* Only Ethereum-deployed tokens are returned; assets that exist only on
|
|
17
|
+
* other chains are omitted.
|
|
13
18
|
*/
|
|
14
19
|
tokenizedAssetsMarkets(request: operations.V2TokenizedAssetsMarketsRequest, options?: RequestOptions): Promise<components.TokenizedAssetsMarketsListResponse>;
|
|
15
20
|
/**
|
|
16
21
|
* Get a single market
|
|
17
22
|
*
|
|
18
23
|
* @remarks
|
|
19
|
-
*
|
|
24
|
+
* Get extended detail for a single tokenized equity (e.g. `TSLAon`).
|
|
25
|
+
*
|
|
26
|
+
* Includes 52-week range, volume, market cap, holder count, and tradable
|
|
27
|
+
* sessions in addition to the fields returned by `/markets`.
|
|
28
|
+
*
|
|
29
|
+
* **OHLC candles** are opt-in: pass both `interval` and `range` query
|
|
30
|
+
* params to include a `candles` array in the response. They must be
|
|
31
|
+
* provided together and must form one of the supported pairs:
|
|
20
32
|
*
|
|
21
|
-
*
|
|
33
|
+
* - `1min` / `5min` / `15min` with `range=1day`
|
|
34
|
+
* - `1hour` / `4hour` with `range=1month`
|
|
35
|
+
* - `12hour` with `range=3month`
|
|
36
|
+
* - `1day` with `range=3month` / `6month` / `1year` / `all`
|
|
22
37
|
*
|
|
23
|
-
*
|
|
24
|
-
* - Both supplied and forming a valid Ondo pair: 200 with `candles` populated.
|
|
25
|
-
* - Exactly one supplied, or both supplied with an invalid pair: 400.
|
|
38
|
+
* Omitting both returns the market detail without `candles`.
|
|
26
39
|
*/
|
|
27
40
|
tokenizedAssetsMarketsSymbol(request: operations.V2TokenizedAssetsMarketsSymbolRequest, options?: RequestOptions): Promise<components.MarketDetail>;
|
|
28
41
|
/**
|
|
29
|
-
* Get
|
|
42
|
+
* Get tokenized-asset positions for a wallet
|
|
30
43
|
*
|
|
31
44
|
* @remarks
|
|
32
|
-
*
|
|
45
|
+
* Get the tokenized-asset holdings for a wallet.
|
|
33
46
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
47
|
+
* Returns the balance of every listed tokenized equity at the queried
|
|
48
|
+
* address, plus the latest USD price and a USD-valued balance when
|
|
49
|
+
* pricing is available. Zero balances are omitted, and a `total_usd`
|
|
50
|
+
* aggregate is returned across all priced positions.
|
|
51
|
+
*
|
|
52
|
+
* Pass the **Tokenized Assets Account address** (returned by
|
|
53
|
+
* `/create_account`), not the owner's wallet — proceeds from filled
|
|
54
|
+
* orders settle into the Tokenized Assets Account.
|
|
37
55
|
*/
|
|
38
56
|
tokenizedAssetsPositions(request: operations.V2TokenizedAssetsPositionsRequest, options?: RequestOptions): Promise<components.TokenizedAssetsPositionsResponse>;
|
|
39
57
|
/**
|
|
40
58
|
* Get order status
|
|
41
59
|
*
|
|
42
60
|
* @remarks
|
|
43
|
-
*
|
|
61
|
+
* Get the lifecycle state of a submitted order.
|
|
62
|
+
*
|
|
63
|
+
* The `status` field is one of `pending`, `filled`, `expired`, or
|
|
64
|
+
* `cancelled`. Partial fills stay in `pending` while `filled_amount` is
|
|
65
|
+
* populated as fills come in; once an order fully fills, `fill_tx_hash`
|
|
66
|
+
* is also returned.
|
|
44
67
|
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* surface as 502 to alert on schema drift.
|
|
68
|
+
* Upstream protocol states beyond these four (e.g. `partially-filled`,
|
|
69
|
+
* `refunded`) are mapped onto this set.
|
|
48
70
|
*/
|
|
49
71
|
tokenizedAssetsOrderOrderHash(request: operations.V2TokenizedAssetsOrderOrderHashRequest, options?: RequestOptions): Promise<components.OrderStatus>;
|
|
50
72
|
/**
|
|
51
|
-
* Create
|
|
73
|
+
* Create a Tokenized Assets Account
|
|
52
74
|
*
|
|
53
75
|
* @remarks
|
|
54
76
|
* Create a Tokenized Assets Account for a wallet address.
|
|
55
77
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* accounts.
|
|
78
|
+
* Before placing orders, the owner must create a Tokenized Assets Account.
|
|
79
|
+
* Each wallet address has one Tokenized Assets Account, isolated from the
|
|
80
|
+
* owner's Earn, Credit, and other product accounts.
|
|
59
81
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
82
|
+
* The account address is deterministic. If it already exists, the
|
|
83
|
+
* response returns `transaction: null` and you can skip straight to
|
|
84
|
+
* building orders.
|
|
85
|
+
*
|
|
86
|
+
* Returns an unsigned transaction to create the account. The `sender`
|
|
87
|
+
* signs and broadcasts this transaction.
|
|
62
88
|
*
|
|
63
89
|
* **If owner pays gas:** Set `sender` to the owner's address.
|
|
64
90
|
*
|
|
65
|
-
* **If someone else pays gas:** Set `sender` to the wallet that will
|
|
66
|
-
* broadcast the transaction on behalf of the owner.
|
|
91
|
+
* **If someone else pays gas:** Set `sender` to the wallet that will
|
|
92
|
+
* sign and broadcast the transaction on behalf of the owner.
|
|
67
93
|
*/
|
|
68
94
|
tokenizedAssetsCreateAccount(request: components.CreateTokenizedAssetsAccountRequest, options?: RequestOptions): Promise<components.CreateTokenizedAssetsAccountResponse>;
|
|
69
95
|
/**
|
|
70
96
|
* Build a buy/sell order
|
|
71
97
|
*
|
|
72
98
|
* @remarks
|
|
73
|
-
* Build a
|
|
74
|
-
*
|
|
75
|
-
* Returns
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
99
|
+
* Build a buy or sell order whose maker is the Tokenized Assets Account.
|
|
100
|
+
*
|
|
101
|
+
* Returns up to three pieces in a single round-trip:
|
|
102
|
+
*
|
|
103
|
+
* - **`quote`** — preview of the input/output amounts and fees.
|
|
104
|
+
* - **`approval_safe_tx_eip712`** — only present when the account's
|
|
105
|
+
* allowance to the settlement contract is below `amount`. The owner
|
|
106
|
+
* signs this EIP-712 payload, then it is broadcast via
|
|
107
|
+
* `POST /v2/gas_sponsorship/prepare` (or the owner can broadcast
|
|
108
|
+
* directly) to set the on-chain allowance. Wait for that transaction
|
|
109
|
+
* to confirm before signing the order.
|
|
110
|
+
* - **`order`** — the order metadata (`order_hash`, `extension`,
|
|
111
|
+
* `quote_id`, `order_message`) plus `safe_message_eip712`, an EIP-712
|
|
112
|
+
* payload the owner signs off-chain to authorize the order. The
|
|
113
|
+
* signature is submitted to `/order/submit` and is **never** broadcast
|
|
114
|
+
* on-chain.
|
|
115
|
+
*
|
|
116
|
+
* The owner never broadcasts the order itself — only the (one-time)
|
|
117
|
+
* approval transaction ever hits the chain.
|
|
91
118
|
*/
|
|
92
119
|
tokenizedAssetsOrder(request: components.TokenizedAssetsBuildOrderRequest, options?: RequestOptions): Promise<components.TokenizedAssetsBuildOrderResponse>;
|
|
93
120
|
/**
|
|
94
|
-
* Submit a signed order
|
|
121
|
+
* Submit a signed order
|
|
95
122
|
*
|
|
96
123
|
* @remarks
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* The body
|
|
100
|
-
* `
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* `expired` / `cancelled`).
|
|
124
|
+
* Submit a signed order to the resolver network.
|
|
125
|
+
*
|
|
126
|
+
* The body echoes the `order` fields from `/order` (`signed_order`,
|
|
127
|
+
* `extension`, `quote_id`, optionally `order_hash`) plus the owner's
|
|
128
|
+
* signature over `order.safe_message_eip712`. The maker on the order
|
|
129
|
+
* struct is the Tokenized Assets Account, not the owner's wallet —
|
|
130
|
+
* pass `signed_order` back unchanged.
|
|
131
|
+
*
|
|
132
|
+
* Returns the order hash and a server-side ISO 8601 timestamp.
|
|
133
|
+
* Subsequent calls to `GET /order/{order_hash}` track the lifecycle
|
|
134
|
+
* (`pending` → `filled` / `expired` / `cancelled`).
|
|
109
135
|
*/
|
|
110
136
|
tokenizedAssetsOrderSubmit(request: components.TokenizedAssetsSubmitOrderRequest, options?: RequestOptions): Promise<components.TokenizedAssetsSubmitOrderResponse>;
|
|
111
137
|
/**
|
|
112
138
|
* Cancel an unfilled order
|
|
113
139
|
*
|
|
114
140
|
* @remarks
|
|
115
|
-
* Build
|
|
116
|
-
*
|
|
117
|
-
* Returns ``cancel_safe_tx_eip712
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* ``
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* Account computed from ``owner`` must match the order's on-chain maker.
|
|
127
|
-
* Mismatches return 403 ``OWNER_NOT_MAKER`` before any on-chain reads.
|
|
141
|
+
* Build the EIP-712 payload to cancel an unfilled order on-chain.
|
|
142
|
+
*
|
|
143
|
+
* Returns ``cancel_safe_tx_eip712``, an EIP-712 payload that authorizes
|
|
144
|
+
* the on-chain cancellation. Sign with the Tokenized Assets Account's
|
|
145
|
+
* owner via ``wallet.signTypedData(...)`` and relay via
|
|
146
|
+
* ``POST /v2/gas_sponsorship/prepare`` so the sponsor broadcasts the
|
|
147
|
+
* cancellation on the product account. The owner can also broadcast
|
|
148
|
+
* the resulting transaction directly without using gas sponsorship.
|
|
149
|
+
*
|
|
150
|
+
* Cancellation works on `pending` and `expired` orders only. Only the
|
|
151
|
+
* Tokenized Assets Account that placed the order can cancel it.
|
|
128
152
|
*/
|
|
129
153
|
tokenizedAssetsOrderOrderHashCancel(request: operations.V2TokenizedAssetsOrderOrderHashCancelRequest, options?: RequestOptions): Promise<components.TokenizedAssetsCancelOrderResponse>;
|
|
130
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedassets.d.ts","sourceRoot":"","sources":["../../../src/sdk/tokenizedassets.ts"],"names":[],"mappings":"AAYA,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
|
|
1
|
+
{"version":3,"file":"tokenizedassets.d.ts","sourceRoot":"","sources":["../../../src/sdk/tokenizedassets.ts"],"names":[],"mappings":"AAYA,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;;;;;;;;;;;;;OAaG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;;;;;;;;;;;;;;;OAmBG;IACG,4BAA4B,CAChC,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;IAQnC;;;;;;;;;;;;;;OAcG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAQvD;;;;;;;;;;;;;OAaG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;IAQlC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,4BAA4B,CAChC,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAQxD;;;;;;;;;;;;;;;OAeG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;;;;;;;;;;;OAeG;IACG,mCAAmC,CACvC,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAO1D"}
|
|
@@ -13,13 +13,18 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
13
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
14
|
export class TokenizedAssets extends ClientSDK {
|
|
15
15
|
/**
|
|
16
|
-
* List equity markets
|
|
16
|
+
* List tokenized equity markets
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* List tokenized equities
|
|
19
|
+
* List the tokenized US equities available on Ethereum.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Each entry includes the symbol, the underlying ticker, the on-chain
|
|
22
|
+
* contract address, the latest USD price, and 24h price change. Filter
|
|
23
|
+
* by `category` (sector tag) or `search` (substring match against symbol,
|
|
24
|
+
* ticker, or name).
|
|
25
|
+
*
|
|
26
|
+
* Only Ethereum-deployed tokens are returned; assets that exist only on
|
|
27
|
+
* other chains are omitted.
|
|
23
28
|
*/
|
|
24
29
|
async tokenizedAssetsMarkets(request, options) {
|
|
25
30
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsMarkets(this, request, options));
|
|
@@ -28,26 +33,39 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
28
33
|
* Get a single market
|
|
29
34
|
*
|
|
30
35
|
* @remarks
|
|
31
|
-
*
|
|
36
|
+
* Get extended detail for a single tokenized equity (e.g. `TSLAon`).
|
|
37
|
+
*
|
|
38
|
+
* Includes 52-week range, volume, market cap, holder count, and tradable
|
|
39
|
+
* sessions in addition to the fields returned by `/markets`.
|
|
40
|
+
*
|
|
41
|
+
* **OHLC candles** are opt-in: pass both `interval` and `range` query
|
|
42
|
+
* params to include a `candles` array in the response. They must be
|
|
43
|
+
* provided together and must form one of the supported pairs:
|
|
32
44
|
*
|
|
33
|
-
*
|
|
45
|
+
* - `1min` / `5min` / `15min` with `range=1day`
|
|
46
|
+
* - `1hour` / `4hour` with `range=1month`
|
|
47
|
+
* - `12hour` with `range=3month`
|
|
48
|
+
* - `1day` with `range=3month` / `6month` / `1year` / `all`
|
|
34
49
|
*
|
|
35
|
-
*
|
|
36
|
-
* - Both supplied and forming a valid Ondo pair: 200 with `candles` populated.
|
|
37
|
-
* - Exactly one supplied, or both supplied with an invalid pair: 400.
|
|
50
|
+
* Omitting both returns the market detail without `candles`.
|
|
38
51
|
*/
|
|
39
52
|
async tokenizedAssetsMarketsSymbol(request, options) {
|
|
40
53
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsMarketsSymbol(this, request, options));
|
|
41
54
|
}
|
|
42
55
|
/**
|
|
43
|
-
* Get
|
|
56
|
+
* Get tokenized-asset positions for a wallet
|
|
44
57
|
*
|
|
45
58
|
* @remarks
|
|
46
|
-
*
|
|
59
|
+
* Get the tokenized-asset holdings for a wallet.
|
|
47
60
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
61
|
+
* Returns the balance of every listed tokenized equity at the queried
|
|
62
|
+
* address, plus the latest USD price and a USD-valued balance when
|
|
63
|
+
* pricing is available. Zero balances are omitted, and a `total_usd`
|
|
64
|
+
* aggregate is returned across all priced positions.
|
|
65
|
+
*
|
|
66
|
+
* Pass the **Tokenized Assets Account address** (returned by
|
|
67
|
+
* `/create_account`), not the owner's wallet — proceeds from filled
|
|
68
|
+
* orders settle into the Tokenized Assets Account.
|
|
51
69
|
*/
|
|
52
70
|
async tokenizedAssetsPositions(request, options) {
|
|
53
71
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsPositions(this, request, options));
|
|
@@ -56,32 +74,40 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
56
74
|
* Get order status
|
|
57
75
|
*
|
|
58
76
|
* @remarks
|
|
59
|
-
*
|
|
77
|
+
* Get the lifecycle state of a submitted order.
|
|
78
|
+
*
|
|
79
|
+
* The `status` field is one of `pending`, `filled`, `expired`, or
|
|
80
|
+
* `cancelled`. Partial fills stay in `pending` while `filled_amount` is
|
|
81
|
+
* populated as fills come in; once an order fully fills, `fill_tx_hash`
|
|
82
|
+
* is also returned.
|
|
60
83
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* surface as 502 to alert on schema drift.
|
|
84
|
+
* Upstream protocol states beyond these four (e.g. `partially-filled`,
|
|
85
|
+
* `refunded`) are mapped onto this set.
|
|
64
86
|
*/
|
|
65
87
|
async tokenizedAssetsOrderOrderHash(request, options) {
|
|
66
88
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsOrderOrderHash(this, request, options));
|
|
67
89
|
}
|
|
68
90
|
/**
|
|
69
|
-
* Create
|
|
91
|
+
* Create a Tokenized Assets Account
|
|
70
92
|
*
|
|
71
93
|
* @remarks
|
|
72
94
|
* Create a Tokenized Assets Account for a wallet address.
|
|
73
95
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* accounts.
|
|
96
|
+
* Before placing orders, the owner must create a Tokenized Assets Account.
|
|
97
|
+
* Each wallet address has one Tokenized Assets Account, isolated from the
|
|
98
|
+
* owner's Earn, Credit, and other product accounts.
|
|
77
99
|
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
100
|
+
* The account address is deterministic. If it already exists, the
|
|
101
|
+
* response returns `transaction: null` and you can skip straight to
|
|
102
|
+
* building orders.
|
|
103
|
+
*
|
|
104
|
+
* Returns an unsigned transaction to create the account. The `sender`
|
|
105
|
+
* signs and broadcasts this transaction.
|
|
80
106
|
*
|
|
81
107
|
* **If owner pays gas:** Set `sender` to the owner's address.
|
|
82
108
|
*
|
|
83
|
-
* **If someone else pays gas:** Set `sender` to the wallet that will
|
|
84
|
-
* broadcast the transaction on behalf of the owner.
|
|
109
|
+
* **If someone else pays gas:** Set `sender` to the wallet that will
|
|
110
|
+
* sign and broadcast the transaction on behalf of the owner.
|
|
85
111
|
*/
|
|
86
112
|
async tokenizedAssetsCreateAccount(request, options) {
|
|
87
113
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsCreateAccount(this, request, options));
|
|
@@ -90,44 +116,44 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
90
116
|
* Build a buy/sell order
|
|
91
117
|
*
|
|
92
118
|
* @remarks
|
|
93
|
-
* Build a
|
|
94
|
-
*
|
|
95
|
-
* Returns
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
119
|
+
* Build a buy or sell order whose maker is the Tokenized Assets Account.
|
|
120
|
+
*
|
|
121
|
+
* Returns up to three pieces in a single round-trip:
|
|
122
|
+
*
|
|
123
|
+
* - **`quote`** — preview of the input/output amounts and fees.
|
|
124
|
+
* - **`approval_safe_tx_eip712`** — only present when the account's
|
|
125
|
+
* allowance to the settlement contract is below `amount`. The owner
|
|
126
|
+
* signs this EIP-712 payload, then it is broadcast via
|
|
127
|
+
* `POST /v2/gas_sponsorship/prepare` (or the owner can broadcast
|
|
128
|
+
* directly) to set the on-chain allowance. Wait for that transaction
|
|
129
|
+
* to confirm before signing the order.
|
|
130
|
+
* - **`order`** — the order metadata (`order_hash`, `extension`,
|
|
131
|
+
* `quote_id`, `order_message`) plus `safe_message_eip712`, an EIP-712
|
|
132
|
+
* payload the owner signs off-chain to authorize the order. The
|
|
133
|
+
* signature is submitted to `/order/submit` and is **never** broadcast
|
|
134
|
+
* on-chain.
|
|
135
|
+
*
|
|
136
|
+
* The owner never broadcasts the order itself — only the (one-time)
|
|
137
|
+
* approval transaction ever hits the chain.
|
|
111
138
|
*/
|
|
112
139
|
async tokenizedAssetsOrder(request, options) {
|
|
113
140
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsOrder(this, request, options));
|
|
114
141
|
}
|
|
115
142
|
/**
|
|
116
|
-
* Submit a signed order
|
|
143
|
+
* Submit a signed order
|
|
117
144
|
*
|
|
118
145
|
* @remarks
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* The body
|
|
122
|
-
* `
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* `expired` / `cancelled`).
|
|
146
|
+
* Submit a signed order to the resolver network.
|
|
147
|
+
*
|
|
148
|
+
* The body echoes the `order` fields from `/order` (`signed_order`,
|
|
149
|
+
* `extension`, `quote_id`, optionally `order_hash`) plus the owner's
|
|
150
|
+
* signature over `order.safe_message_eip712`. The maker on the order
|
|
151
|
+
* struct is the Tokenized Assets Account, not the owner's wallet —
|
|
152
|
+
* pass `signed_order` back unchanged.
|
|
153
|
+
*
|
|
154
|
+
* Returns the order hash and a server-side ISO 8601 timestamp.
|
|
155
|
+
* Subsequent calls to `GET /order/{order_hash}` track the lifecycle
|
|
156
|
+
* (`pending` → `filled` / `expired` / `cancelled`).
|
|
131
157
|
*/
|
|
132
158
|
async tokenizedAssetsOrderSubmit(request, options) {
|
|
133
159
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsOrderSubmit(this, request, options));
|
|
@@ -136,19 +162,17 @@ export class TokenizedAssets extends ClientSDK {
|
|
|
136
162
|
* Cancel an unfilled order
|
|
137
163
|
*
|
|
138
164
|
* @remarks
|
|
139
|
-
* Build
|
|
140
|
-
*
|
|
141
|
-
* Returns ``cancel_safe_tx_eip712
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* ``
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* Account computed from ``owner`` must match the order's on-chain maker.
|
|
151
|
-
* Mismatches return 403 ``OWNER_NOT_MAKER`` before any on-chain reads.
|
|
165
|
+
* Build the EIP-712 payload to cancel an unfilled order on-chain.
|
|
166
|
+
*
|
|
167
|
+
* Returns ``cancel_safe_tx_eip712``, an EIP-712 payload that authorizes
|
|
168
|
+
* the on-chain cancellation. Sign with the Tokenized Assets Account's
|
|
169
|
+
* owner via ``wallet.signTypedData(...)`` and relay via
|
|
170
|
+
* ``POST /v2/gas_sponsorship/prepare`` so the sponsor broadcasts the
|
|
171
|
+
* cancellation on the product account. The owner can also broadcast
|
|
172
|
+
* the resulting transaction directly without using gas sponsorship.
|
|
173
|
+
*
|
|
174
|
+
* Cancellation works on `pending` and `expired` orders only. Only the
|
|
175
|
+
* Tokenized Assets Account that placed the order can cancel it.
|
|
152
176
|
*/
|
|
153
177
|
async tokenizedAssetsOrderOrderHashCancel(request, options) {
|
|
154
178
|
return unwrapAsync(tokenizedAssetsTokenizedAssetsOrderOrderHashCancel(this, request, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenizedassets.js","sourceRoot":"","sources":["../../../src/sdk/tokenizedassets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,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,EAAE,yCAAyC,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C
|
|
1
|
+
{"version":3,"file":"tokenizedassets.js","sourceRoot":"","sources":["../../../src/sdk/tokenizedassets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,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,EAAE,yCAAyC,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAyD,EACzD,OAAwB;QAExB,OAAO,WAAW,CAAC,2CAA2C,CAC5D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAqD,EACrD,OAAwB;QAExB,OAAO,WAAW,CAAC,uCAAuC,CACxD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAA0D,EAC1D,OAAwB;QAExB,OAAO,WAAW,CAAC,4CAA4C,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,2CAA2C,CAC5D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;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;CACF"}
|
|
@@ -27,9 +27,9 @@ let value: CompassApiBackendV2ModelsTokenizedAssetsMarketMarket = {
|
|
|
27
27
|
| `symbol` | *string* | :heavy_check_mark: | On-chain token symbol (e.g. 'TSLAon'). | |
|
|
28
28
|
| `underlyingTicker` | *string* | :heavy_check_mark: | Underlying equity ticker (e.g. 'TSLA'). | |
|
|
29
29
|
| `name` | *string* | :heavy_check_mark: | Underlying equity full name (e.g. 'Tesla, Inc. Common Stock'). | |
|
|
30
|
-
| `chain` | [components.CompassApiBackendV2ModelsTokenizedAssetsMarketMarketChain](../../models/components/compassapibackendv2modelstokenizedassetsmarketmarketchain.md) | :heavy_minus_sign: | Chain on which the
|
|
30
|
+
| `chain` | [components.CompassApiBackendV2ModelsTokenizedAssetsMarketMarketChain](../../models/components/compassapibackendv2modelstokenizedassetsmarketmarketchain.md) | :heavy_minus_sign: | Chain on which the contract is deployed. | ethereum |
|
|
31
31
|
| `contractAddress` | *string* | :heavy_check_mark: | Ethereum mainnet ERC-20 address for this token. | |
|
|
32
|
-
| `decimals` | *number* | :heavy_check_mark: | ERC-20 decimals
|
|
32
|
+
| `decimals` | *number* | :heavy_check_mark: | ERC-20 decimals for this token. | |
|
|
33
33
|
| `currentPriceUsd` | *string* | :heavy_check_mark: | Latest price in USD as a decimal string. | |
|
|
34
34
|
| `change24hUsd` | *string* | :heavy_minus_sign: | Absolute USD price change vs 24h ago (decimal string). | |
|
|
35
35
|
| `change24hPct` | *string* | :heavy_minus_sign: | Percent price change vs 24h ago (decimal string). | |
|
|
@@ -29,15 +29,15 @@ let value: MarketDetail = {
|
|
|
29
29
|
| `symbol` | *string* | :heavy_check_mark: | On-chain token symbol (e.g. 'TSLAon'). | |
|
|
30
30
|
| `underlyingTicker` | *string* | :heavy_check_mark: | Underlying equity ticker (e.g. 'TSLA'). | |
|
|
31
31
|
| `name` | *string* | :heavy_check_mark: | Underlying equity full name (e.g. 'Tesla, Inc. Common Stock'). | |
|
|
32
|
-
| `chain` | [components.MarketDetailChain](../../models/components/marketdetailchain.md) | :heavy_minus_sign: | Chain on which the
|
|
32
|
+
| `chain` | [components.MarketDetailChain](../../models/components/marketdetailchain.md) | :heavy_minus_sign: | Chain on which the contract is deployed. | ethereum |
|
|
33
33
|
| `contractAddress` | *string* | :heavy_check_mark: | Ethereum mainnet ERC-20 address for this token. | |
|
|
34
|
-
| `decimals` | *number* | :heavy_check_mark: | ERC-20 decimals
|
|
34
|
+
| `decimals` | *number* | :heavy_check_mark: | ERC-20 decimals for this token. | |
|
|
35
35
|
| `currentPriceUsd` | *string* | :heavy_check_mark: | Latest price in USD as a decimal string. | |
|
|
36
36
|
| `change24hUsd` | *string* | :heavy_minus_sign: | Absolute USD price change vs 24h ago (decimal string). | |
|
|
37
37
|
| `change24hPct` | *string* | :heavy_minus_sign: | Percent price change vs 24h ago (decimal string). | |
|
|
38
38
|
| `sectors` | *string*[] | :heavy_minus_sign: | Sector / industry tags from the issuer (e.g. ['Technology']). | [] |
|
|
39
39
|
| `regionExposure` | *string*[] | :heavy_minus_sign: | Regional market exposure tags (e.g. ['US']). | [] |
|
|
40
|
-
| `priceHistory24h` | [components.PricePoint](../../models/components/pricepoint.md)[] | :heavy_minus_sign: | 24h price sparkline (
|
|
40
|
+
| `priceHistory24h` | [components.PricePoint](../../models/components/pricepoint.md)[] | :heavy_minus_sign: | 24h price sparkline as `(timestamp, price)` samples in chronological order. | [] |
|
|
41
41
|
| `priceHigh52w` | *string* | :heavy_minus_sign: | 52-week high of the underlying equity (USD). | |
|
|
42
42
|
| `priceLow52w` | *string* | :heavy_minus_sign: | 52-week low of the underlying equity (USD). | |
|
|
43
43
|
| `volume24h` | *string* | :heavy_minus_sign: | 24h trading volume of the underlying equity. | |
|