@totalis/hip4-client 0.130.0 → 0.131.0
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/CHANGELOG.md +114 -0
- package/README.md +13 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +2 -1
- package/dist/generated/client.d.ts +3 -1
- package/dist/generated/errors.d.ts +3 -1
- package/dist/generated/errors.js +17 -2
- package/dist/generated/maker.d.ts +2 -1
- package/dist/generated/openapi.d.ts +258 -59
- package/dist/generated/realtime.d.ts +12 -1
- package/dist/generated/version.d.ts +7 -7
- package/dist/generated/version.js +8 -5
- package/dist/hypercore.d.ts +6 -0
- package/dist/hypercore.js +7 -1
- package/dist/single-orders.d.ts +223 -0
- package/dist/single-orders.js +277 -0
- package/dist/singles.d.ts +4 -1
- package/dist/singles.js +4 -1
- package/dist/totalis.d.ts +6 -0
- package/dist/totalis.js +34 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,120 @@
|
|
|
3
3
|
`@totalis/hip4-client` follows [semantic versioning](https://semver.org).
|
|
4
4
|
The contract version the generated types come from is `sdkVersion` in `./version`.
|
|
5
5
|
|
|
6
|
+
## 0.131.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- `listPolymarketMarkets` (`GET /v1/polymarket/markets`, contract
|
|
11
|
+
`286.0.0-polymarket-list`) lists the Polymarket markets open for trading, in
|
|
12
|
+
pages of `limit` (at most 200) ascending by outcome id, each in the shape
|
|
13
|
+
`getPolymarketMarket` returns. Polymarket markets are never in
|
|
14
|
+
`listMarkets`, discovery or search.
|
|
15
|
+
|
|
16
|
+
- `placeSingleIoc(signer, network, request)` places one press as an IOC at
|
|
17
|
+
most once. `request.intentId` names the press and stays the same across
|
|
18
|
+
retries. `request.save` claims it with its record (`SingleOrderRecord`:
|
|
19
|
+
plain JSON, versioned, without the signature) before anything is signed,
|
|
20
|
+
storing the claim under `singleIntentKey(record)`: per account, network
|
|
21
|
+
and intent, apart from any order journal. An intent the account claimed
|
|
22
|
+
before comes back as its record, never signed or sent again. The SDK then
|
|
23
|
+
signs exactly the saved terms and sends them once, only when the signature
|
|
24
|
+
recovers to `request.account` or its `request.agent`; it never resends or
|
|
25
|
+
re-signs. A throw means nothing was claimed or sent. A claimed order that
|
|
26
|
+
was not signed, or was signed by another key, comes back `none`
|
|
27
|
+
`NOT_SENT`. Only an HTTP 2xx from the exchange URL itself counts as
|
|
28
|
+
Hyperliquid's answer: a gateway's error or a redirect is no answer, and the
|
|
29
|
+
order is settled by evidence. `transport` sends through your own
|
|
30
|
+
Hyperliquid connection.
|
|
31
|
+
- `totalis.settleSingleOrder(record)` settles a saved IOC whose answer was
|
|
32
|
+
lost, from evidence only: `GET /v1/hypercore/orders/{cloid}`, then
|
|
33
|
+
Hyperliquid's `orderStatus` by its cloid. The outcome
|
|
34
|
+
(`SingleOrderOutcome`) is `filled`, `none` (`REFUSED`, `UNFILLED`,
|
|
35
|
+
`ABSENT` or `NOT_SENT`), `unknown` (read again), or `unprovable` (`GAP` or
|
|
36
|
+
`UNCOVERED`: the history has passed the order's deadline, a Hyperliquid
|
|
37
|
+
lookup made after it answered that it holds no such order, and the
|
|
38
|
+
history can never prove it). Hyperliquid not knowing the cloid is never
|
|
39
|
+
proof, and a failed Hyperliquid read is no answer.
|
|
40
|
+
`singleOrderOutcome(record, evidence)` is the same rule for evidence you
|
|
41
|
+
read yourself, except that it never says `unprovable`.
|
|
42
|
+
- `totalis.readOrderHistory()` reads `GET /v1/hypercore/order-history` as an
|
|
43
|
+
`OrderHistoryCursor` bound to its account and network, for
|
|
44
|
+
`placeSingleIoc`'s `history`. Read it in the background, before the order.
|
|
45
|
+
A cursor for another account or network is ignored.
|
|
46
|
+
- `parseSingleOrderRecord` reads a saved record back, including an IOC record
|
|
47
|
+
the Totalis web app wrote without `version`, `nonce` and `afterHeight`.
|
|
48
|
+
Such a record is found by its cloid, but its absence is never proven.
|
|
49
|
+
- `buyHeldBy(records, press)` finds the saved buy that a new buy of the same
|
|
50
|
+
outcome waits on. Sells never wait.
|
|
51
|
+
- `nextNonce(last, now)` draws a nonce from a nonce line you keep yourself.
|
|
52
|
+
- The package now depends on `@noble/curves` (secp256k1), to check who
|
|
53
|
+
signed an order before it is sent.
|
|
54
|
+
- Nothing existing changes. Orders still default to `Gtc` with the builder fee.
|
|
55
|
+
|
|
56
|
+
- `listSocialSuggestions` (`GET /v1/social/suggestions`): up to eight public
|
|
57
|
+
traders to follow, best weekly P&L first, whose week's P&L is at least 1%
|
|
58
|
+
of what they traded in it, each with that week's `pnl` and
|
|
59
|
+
their biggest fully won USDC single-market position in it (`win`, or null).
|
|
60
|
+
Signed in, it leaves out the reader and the traders they follow.
|
|
61
|
+
- `getSocialLeaderboard` reads without a session: signed out, `you` is null.
|
|
62
|
+
Someone turning private leaves no hole: everyone below moves up a place.
|
|
63
|
+
Pages split the ranking as it was read, so a walk under one `as_of`
|
|
64
|
+
repeats and skips nobody, and a page can hold fewer than 25 rows. P&L ranks only
|
|
65
|
+
gains and losses of at least one cent.
|
|
66
|
+
- `followTrader` takes an optional `source` query parameter (`PROFILE`,
|
|
67
|
+
`POSITION`, `LEADERBOARD`, `SUGGESTIONS`, `FEED` or `PEOPLE`) that only
|
|
68
|
+
labels the follow for analytics; an unknown value is ignored.
|
|
69
|
+
|
|
70
|
+
- `MarketItem` and `ComboItem` carry `moment` (`FeedMoment` or null) in
|
|
71
|
+
`listSocialFeed`, `listFollowingFeed` and `listSocialActivity`: `WIN` with
|
|
72
|
+
`rank` 1 to 3 for a profit among the top wins of its week, `BET` with `rank`
|
|
73
|
+
for a stake among the week's top bets paying 2x or more (a single at 50¢ a
|
|
74
|
+
share or less, fees included; a Combo paying 2x or more of its cost), or
|
|
75
|
+
`LONGSHOT` with a null `rank` for one paying 10x or more. A week is the UTC
|
|
76
|
+
day of the win or bet and the 6 before it; it has one place per 10 entries
|
|
77
|
+
while it has fewer than 21. Bets under 1 USDC and free Combos never count.
|
|
78
|
+
Later trading never moves a day's moment once the day ends, though a profile
|
|
79
|
+
turning private or a repaired ledger range can; it is the same in every feed; a bet's moment goes once it loses. Show at most one of two
|
|
80
|
+
adjacent moments.
|
|
81
|
+
- A cashed-out Combo stays in the feed as a cash-out, whatever its legs do
|
|
82
|
+
after.
|
|
83
|
+
|
|
84
|
+
### Changed
|
|
85
|
+
|
|
86
|
+
- `getMarket` (`GET /v1/markets/{outcome_id}`) now returns `metadata.content.rules`
|
|
87
|
+
and `metadata.parent.content.rules` as plain English: dates read
|
|
88
|
+
`Nov 28, 2026 06:00 UTC`, numbers are grouped (`61,769`), and a trailing
|
|
89
|
+
`metadata=category:…` block is gone. Perps keep their native identifier
|
|
90
|
+
(`xyz:GOLD`). Recurring price rounds, which used to return their raw
|
|
91
|
+
`class:priceBinary|…` definition, now return their settlement terms, and each
|
|
92
|
+
price bucket range states its own. Placeholder descriptions (`other`, `N/A`,
|
|
93
|
+
empty) and a bucket range's bare `index:N` return `null`. The field's type is
|
|
94
|
+
unchanged. The raw native name and description are still in
|
|
95
|
+
`GET /v1/market-definitions`.
|
|
96
|
+
|
|
97
|
+
- `listSocialFeed`, `listFollowingFeed` and `listSocialActivity` list one item
|
|
98
|
+
per person per UTC day per event (`MarketItem`, `kind: "MARKET"`): that day's
|
|
99
|
+
trades and results on the event's outcomes as `lines`, netted per outcome
|
|
100
|
+
(several buys as their sum, a same-day in and out as `CLOSED` with what it
|
|
101
|
+
made, both sides of an outcome netting away), with the person's newest
|
|
102
|
+
comment on the event that day, or the comment alone. A day keeps its `id` as
|
|
103
|
+
it grows and moves to the top. Its `event` is the outcome's question, or the
|
|
104
|
+
outcome until the ledger first records its question, so `event` and `id` can
|
|
105
|
+
change once. `TradeItem` and `SingleKey` are gone.
|
|
106
|
+
- `ComboItem` (`kind: "COMBO"`) is one item per Combo bet for its whole life,
|
|
107
|
+
in its latest state (`action` `OPENED` or `RECEIVED`, then `CASHED_OUT` or
|
|
108
|
+
`SETTLED`), under one `id`, listed at its newest event or comment: it moves
|
|
109
|
+
to the top when it is cashed out or settles. It carries each leg's `result`,
|
|
110
|
+
the ticket's `result`, and `stake`, `to_win`, `received`
|
|
111
|
+
and `pnl` in place of `cost`; a lost ticket has a null `to_win`. It carries
|
|
112
|
+
the person's `comment` posted within 30 minutes of its start, when that
|
|
113
|
+
comment is not about a market they traded that day. A lost Combo is listed
|
|
114
|
+
only when its holder paid at least 50 USDC for it.
|
|
115
|
+
- `listSocialFeed` leaves out every account that traded like a machine on any
|
|
116
|
+
UTC day of the past week (100 or more orders, or trades in 18 or more
|
|
117
|
+
distinct hours), and lists finished markets and Combos too.
|
|
118
|
+
`listSocialSuggestions` never suggests such an account.
|
|
119
|
+
|
|
6
120
|
## 0.130.0
|
|
7
121
|
|
|
8
122
|
### Removed
|
package/README.md
CHANGED
|
@@ -145,10 +145,22 @@ if (answer.kind === "unknown") await readSingleOrder(network, wallet.address, si
|
|
|
145
145
|
|
|
146
146
|
`cancelSingles` cancels resting singles by cloid or oid. Browser wallets often refuse to sign orders (their
|
|
147
147
|
signing domain names chain 1337), so in a browser approve an agent key once with `approveHyperliquidAgent` and
|
|
148
|
-
sign orders with that. The agent can trade but never withdraw.
|
|
148
|
+
sign orders with that. The agent can trade but never withdraw. Generate a fresh agent key every time you approve
|
|
149
|
+
one and never approve an old key again: once Hyperliquid prunes an agent (replaced, expired, or its account
|
|
150
|
+
emptied) it may forget the nonces the key used, and anything it signed before can then be replayed. `singleOrderAction`, `signL1Action` and
|
|
149
151
|
`submitSingleOrder` are the parts, if you send through your own Hyperliquid client;
|
|
150
152
|
`singleOrderAction(order, { builder: false })` leaves the builder fee off for an account that has not approved it.
|
|
151
153
|
|
|
154
|
+
To place an IOC at most once per press, even across retries and crashes, use `placeSingleIoc` with an
|
|
155
|
+
`intentId` you make once per press. Your `save` claims the intent with its record (`SingleOrderRecord`, plain
|
|
156
|
+
JSON without the signature) under `singleIntentKey(record)` before anything is signed; an intent already claimed
|
|
157
|
+
comes back as its record and is never signed or sent again. The SDK then signs exactly what was saved and sends
|
|
158
|
+
it once, and only when the account (or the agent you name as `agent`) signed it. When the answer is
|
|
159
|
+
lost, settle it from the record with `totalis.settleSingleOrder(record)`, which reads the venue's node order
|
|
160
|
+
history and Hyperliquid's order status. That history can also prove an order never landed, so pass `history`:
|
|
161
|
+
the latest `totalis.readOrderHistory()`, read in the background before the order. Until it settles, hold new
|
|
162
|
+
buys of the same outcome (`buyHeldBy`); sells can go ahead.
|
|
163
|
+
|
|
152
164
|
To size an order as the Totalis app does, walk the book with `bookPreview` (or `limitPreview` at your own
|
|
153
165
|
price): it returns the shares and the IOC limit to sign, the worst level the walk reaches, or a reason code such
|
|
154
166
|
as `BELOW_MINIMUM`. `buyCost` and `sellProceeds` state what it is expected to spend or land net of
|
package/dist/client.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ export type { AccessToken, ApiClientOptions, PublicEnvironment } from "./base.js
|
|
|
6
6
|
/** The typed HTTP client for the `client` audience. `createTotalis` adds the flows. */
|
|
7
7
|
export declare function createClient(environment: PublicEnvironment, options?: ApiClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
8
8
|
export { bestBid, bestNetQuote, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, fundWindowMs, WalletApprovalError, type Acceptance, type AcceptanceResult, type Amount, type ApprovalListener, type BridgeState, type ComboCash, type CashoutBid, type Chooser, type Deployment, type DepositAccepted, type EntryCash, type EntryFailure, type EntryQuote, type KnownWalletApproval, type LandedWalletApproval, type SignedWalletApproval, type WalletApproval, type WalletApprovalRequest, type CoreExit, type LegacySignedEntry, type Leg, type MarketFilters, type MarketRow, type PreparedEntryFunding, type NotAdmitted, type RecordListener, type Operation, type Quote, type ResponseOf, type SellBackQuote, type SignedAcceptance, type SignedCashout, type SignedCoreExit, type SignedDeposit, type SignedEntry, type SignedReturnToCore, type Totalis, type TotalisOptions, type WalletCall, type Withdrawal, } from "./totalis.js";
|
|
9
|
-
export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, type BridgedCash, type CoreAccountMode, type CoreCash, type HypercoreAnswer, type HyperliquidInfo, type HypercoreSignature, type HypercoreTransport, type HyperliquidNetwork, type SendAssetAction, type SignedSendAsset, } from "./hypercore.js";
|
|
9
|
+
export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, nextNonce, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, type BridgedCash, type CoreAccountMode, type CoreCash, type HypercoreAnswer, type HyperliquidInfo, type HypercoreSignature, type HypercoreTransport, type HyperliquidNetwork, type SendAssetAction, type SignedSendAsset, } from "./hypercore.js";
|
|
10
10
|
export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, type ApproveAgentAction, type ApproveBuilderFeeAction, type CancelByCloidAction, type CancelByOidAction, type ExchangeOptions, type L1Options, type OutcomeSide, type SignedL1Action, type SignedUserAction, type SingleAction, type SingleCancel, type SingleCancelAction, type SingleCancelAnswer, type SingleOrder, type SingleOrderAction, type SingleOrderAnswer, type SingleOrderStatus, type SingleTif, type SingleOrderActionWithoutBuilder, } from "./singles.js";
|
|
11
|
+
export { buyHeldBy, parseSingleOrderRecord, placeSingleIoc, singleIntentKey, singleOrderOutcome, type L1Transport, type OrderHistoryCursor, type SingleIoc, type SingleIocRequest, type SingleOrderEvidence, type SingleOrderOutcome, type SingleOrderProof, type SingleOrderRecord, } from "./single-orders.js";
|
|
11
12
|
export { ApiError, envelope, NetworkError, randomBytes32, rawBody, retryingFetch, sendOnce, unwrap, uuidv7, type Fetch, type Repaired, type RetryPolicy } from "./request.js";
|
|
12
13
|
export { items, pages, type Page, type PageQuery } from "./pagination.js";
|
|
13
14
|
export { toTotalisSigner, type SignerInput, type TotalisSigner } from "./signer.js";
|
package/dist/client.js
CHANGED
|
@@ -5,8 +5,9 @@ export function createClient(environment, options) {
|
|
|
5
5
|
return audienceClient(environment, options);
|
|
6
6
|
}
|
|
7
7
|
export { bestBid, bestNetQuote, bestQuote, createTotalis, defaultWalletApproval, EntryError, entryFailure, follow, fundWindowMs, WalletApprovalError, } from "./totalis.js";
|
|
8
|
-
export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, } from "./hypercore.js";
|
|
8
|
+
export { bridgeAction, bridgeGasBuffer, classifyHypercoreAnswer, coreSetupFee, hyperevmUsdcBridge, hyperliquidExchange, hyperliquidInfo, hyperliquidNetwork, hypercoreNonce, hypercoreSignature, nextNonce, readCoreCash, sendAssetTypedData, settleHypercore, signSendAsset, submitHypercore, usdcText, } from "./hypercore.js";
|
|
9
9
|
export { approveAgentAction, approveAgentTypedData, approveBuilderFeeTypedData, approveHyperliquidAgent, approveTotalisBuilder, approveTotalisBuilderAction, cancelSingles, l1ActionHash, l1TypedData, outcomeAsset, outcomeCoin, placeSingle, readSingleOrder, readTotalisBuilderFee, signL1Action, singleCancelAction, singleCancelAnswers, singleCloid, singleOrderAction, singleOrderAnswer, submitSingleCancel, submitSingleOrder, totalisBuilder, } from "./singles.js";
|
|
10
|
+
export { buyHeldBy, parseSingleOrderRecord, placeSingleIoc, singleIntentKey, singleOrderOutcome, } from "./single-orders.js";
|
|
10
11
|
export { ApiError, envelope, NetworkError, randomBytes32, rawBody, retryingFetch, sendOnce, unwrap, uuidv7 } from "./request.js";
|
|
11
12
|
export { items, pages } from "./pagination.js";
|
|
12
13
|
export { toTotalisSigner } from "./signer.js";
|
|
@@ -75,6 +75,7 @@ export type paths = {
|
|
|
75
75
|
readonly "/v1/me/social/feed": Pick<SharedPaths["/v1/me/social/feed"], "parameters" | "get">;
|
|
76
76
|
readonly "/v1/me/social/following-positions": Pick<SharedPaths["/v1/me/social/following-positions"], "parameters" | "get">;
|
|
77
77
|
readonly "/v1/social/leaderboard": Pick<SharedPaths["/v1/social/leaderboard"], "parameters" | "get">;
|
|
78
|
+
readonly "/v1/social/suggestions": Pick<SharedPaths["/v1/social/suggestions"], "parameters" | "get">;
|
|
78
79
|
readonly "/v1/me/follows": Pick<SharedPaths["/v1/me/follows"], "parameters" | "get">;
|
|
79
80
|
readonly "/v1/me/followers": Pick<SharedPaths["/v1/me/followers"], "parameters" | "get">;
|
|
80
81
|
readonly "/v1/me/copied-trades": Pick<SharedPaths["/v1/me/copied-trades"], "parameters" | "post">;
|
|
@@ -133,6 +134,7 @@ export type paths = {
|
|
|
133
134
|
readonly "/v1/perp-marks": Pick<SharedPaths["/v1/perp-marks"], "parameters" | "get">;
|
|
134
135
|
readonly "/v1/charts/{series}": Pick<SharedPaths["/v1/charts/{series}"], "parameters" | "get">;
|
|
135
136
|
readonly "/v1/live-marks": Pick<SharedPaths["/v1/live-marks"], "parameters" | "get">;
|
|
137
|
+
readonly "/v1/polymarket/markets": Pick<SharedPaths["/v1/polymarket/markets"], "parameters" | "get">;
|
|
136
138
|
readonly "/v1/polymarket/markets/{outcome_id}": Pick<SharedPaths["/v1/polymarket/markets/{outcome_id}"], "parameters" | "get">;
|
|
137
139
|
readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
|
|
138
140
|
readonly "/v1/rfqs/{rfq_id}/cancel": Pick<SharedPaths["/v1/rfqs/{rfq_id}/cancel"], "parameters" | "post">;
|
|
@@ -156,4 +158,4 @@ export type paths = {
|
|
|
156
158
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
157
159
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
158
160
|
};
|
|
159
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "claimGoldenLink" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "declineGolden" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getChart" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenLinkSuggestions" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercoreOrderHistory" | "getHypercoreOrderProof" | "getHypercoreOrders" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getLiveMarks" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketResults" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getMyTradingRewards" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getPolymarketMarket" | "getProfitLeaderboard" | "getPublicGoldenMarkets" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSocialLeaderboard" | "getSocialPerson" | "getSocialPosition" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listHypercorePositions" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarketTrades" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordCopiedTrade" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
161
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "claimGoldenLink" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "declineGolden" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getChart" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenLinkSuggestions" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercoreOrderHistory" | "getHypercoreOrderProof" | "getHypercoreOrders" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getLiveMarks" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketResults" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getMyTradingRewards" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getPolymarketMarket" | "getProfitLeaderboard" | "getPublicGoldenMarkets" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSocialLeaderboard" | "getSocialPerson" | "getSocialPosition" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listHypercorePositions" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarketTrades" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listPolymarketMarkets" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listSocialSuggestions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordCopiedTrade" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
@@ -652,7 +652,7 @@ export declare const operationErrors: {
|
|
|
652
652
|
readonly getQuestionScoreTimeline: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
653
653
|
readonly getRfq: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
654
654
|
readonly getSeries: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
655
|
-
readonly getSocialLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "
|
|
655
|
+
readonly getSocialLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED", "INTERNAL_ERROR"];
|
|
656
656
|
readonly getSocialPerson: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
657
657
|
readonly getSocialPosition: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
658
658
|
readonly getSuggestedCombo: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
@@ -695,6 +695,7 @@ export declare const operationErrors: {
|
|
|
695
695
|
readonly listPartnerFills: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
696
696
|
readonly listPartnerWebhookEvents: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
697
697
|
readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INTERNAL_ERROR"];
|
|
698
|
+
readonly listPolymarketMarkets: readonly ["INVALID_QUERY", "INVALID_CURSOR", "MARKET_DATA_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
698
699
|
readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
699
700
|
readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "INTERNAL_ERROR"];
|
|
700
701
|
readonly listSocialActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
@@ -702,6 +703,7 @@ export declare const operationErrors: {
|
|
|
702
703
|
readonly listSocialFollowers: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "INTERNAL_ERROR"];
|
|
703
704
|
readonly listSocialFollowing: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "INTERNAL_ERROR"];
|
|
704
705
|
readonly listSocialPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
706
|
+
readonly listSocialSuggestions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "DEPENDENCY_STALE", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
705
707
|
readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
706
708
|
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
707
709
|
readonly live: readonly [];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1781,10 +1781,8 @@ export const operationErrors = {
|
|
|
1781
1781
|
"AUTHORIZATION_UNAVAILABLE",
|
|
1782
1782
|
"DEPENDENCY_STALE",
|
|
1783
1783
|
"RATE_LIMITED",
|
|
1784
|
-
"ORIGIN_REQUIRED",
|
|
1785
1784
|
"INVALID_QUERY",
|
|
1786
1785
|
"CONTRACT_UNAVAILABLE",
|
|
1787
|
-
"IDENTITY_NOT_FOUND",
|
|
1788
1786
|
"CURSOR_EXPIRED",
|
|
1789
1787
|
"INTERNAL_ERROR"
|
|
1790
1788
|
],
|
|
@@ -2255,6 +2253,12 @@ export const operationErrors = {
|
|
|
2255
2253
|
"NOT_FOUND",
|
|
2256
2254
|
"INTERNAL_ERROR"
|
|
2257
2255
|
],
|
|
2256
|
+
"listPolymarketMarkets": [
|
|
2257
|
+
"INVALID_QUERY",
|
|
2258
|
+
"INVALID_CURSOR",
|
|
2259
|
+
"MARKET_DATA_UNAVAILABLE",
|
|
2260
|
+
"INTERNAL_ERROR"
|
|
2261
|
+
],
|
|
2258
2262
|
"listQuotes": [
|
|
2259
2263
|
"UNAUTHENTICATED",
|
|
2260
2264
|
"FORBIDDEN",
|
|
@@ -2323,6 +2327,17 @@ export const operationErrors = {
|
|
|
2323
2327
|
"SOURCE_UNAVAILABLE",
|
|
2324
2328
|
"INTERNAL_ERROR"
|
|
2325
2329
|
],
|
|
2330
|
+
"listSocialSuggestions": [
|
|
2331
|
+
"UNAUTHENTICATED",
|
|
2332
|
+
"FORBIDDEN",
|
|
2333
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
2334
|
+
"RATE_LIMITED",
|
|
2335
|
+
"INVALID_QUERY",
|
|
2336
|
+
"CONTRACT_UNAVAILABLE",
|
|
2337
|
+
"DEPENDENCY_STALE",
|
|
2338
|
+
"SOURCE_UNAVAILABLE",
|
|
2339
|
+
"INTERNAL_ERROR"
|
|
2340
|
+
],
|
|
2326
2341
|
"listTraderPositions": [
|
|
2327
2342
|
"UNAUTHENTICATED",
|
|
2328
2343
|
"FORBIDDEN",
|
|
@@ -32,6 +32,7 @@ export type paths = {
|
|
|
32
32
|
readonly "/v1/market-display": Pick<SharedPaths["/v1/market-display"], "parameters" | "get">;
|
|
33
33
|
readonly "/v1/market-results": Pick<SharedPaths["/v1/market-results"], "parameters" | "get">;
|
|
34
34
|
readonly "/v1/charts/{series}": Pick<SharedPaths["/v1/charts/{series}"], "parameters" | "get">;
|
|
35
|
+
readonly "/v1/polymarket/markets": Pick<SharedPaths["/v1/polymarket/markets"], "parameters" | "get">;
|
|
35
36
|
readonly "/v1/polymarket/markets/{outcome_id}": Pick<SharedPaths["/v1/polymarket/markets/{outcome_id}"], "parameters" | "get">;
|
|
36
37
|
readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
|
|
37
38
|
readonly "/v1/me/operations": Pick<SharedPaths["/v1/me/operations"], "parameters" | "get">;
|
|
@@ -47,4 +48,4 @@ export type paths = {
|
|
|
47
48
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
48
49
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
49
50
|
};
|
|
50
|
-
export type operations = Pick<SharedOperations, "cancelAllQuotes" | "cancelQuote" | "confirmQuote" | "createCollateralReduction" | "createQuote" | "getAccountActivity" | "getAccountPosition" | "getChart" | "getCollateralReduction" | "getDeployment" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerTelemetryPublication" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDisplay" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketResults" | "getMarketRoundHistory" | "getOperation" | "getPolymarketMarket" | "getQuestion" | "getQuestionRecurringRound" | "getRfq" | "getSeries" | "getTaxonomy" | "listAccountActivity" | "listAccountPositions" | "listDiscovery" | "listMakerAcceptances" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listRfqs" | "publishMakerTelemetry" | "searchCatalog" | "stream" | "submitMakerSelfFundedTransaction">;
|
|
51
|
+
export type operations = Pick<SharedOperations, "cancelAllQuotes" | "cancelQuote" | "confirmQuote" | "createCollateralReduction" | "createQuote" | "getAccountActivity" | "getAccountPosition" | "getChart" | "getCollateralReduction" | "getDeployment" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerTelemetryPublication" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDisplay" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketResults" | "getMarketRoundHistory" | "getOperation" | "getPolymarketMarket" | "getQuestion" | "getQuestionRecurringRound" | "getRfq" | "getSeries" | "getTaxonomy" | "listAccountActivity" | "listAccountPositions" | "listDiscovery" | "listMakerAcceptances" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listPolymarketMarkets" | "listRfqs" | "publishMakerTelemetry" | "searchCatalog" | "stream" | "submitMakerSelfFundedTransaction">;
|