@totalis/hip4-client 0.77.0 → 0.78.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 +17 -0
- package/dist/generated/client.d.ts +2 -1
- package/dist/generated/errors.d.ts +8 -7
- package/dist/generated/errors.js +14 -16
- package/dist/generated/openapi.d.ts +109 -11
- package/dist/generated/version.d.ts +3 -3
- package/dist/generated/version.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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.78.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- `listComboFeed` (`GET /v1/feed/combos`): every Combo opened by a trader
|
|
11
|
+
whose profile is public, newest first, each with the trader's `username`,
|
|
12
|
+
`avatar_seed` and `picture_url`, paged with `cursor` and `limit` (TT-2615).
|
|
13
|
+
Contract `206.0.0-public-trader-reads`.
|
|
14
|
+
- `listTraderPositions` answers `singles` on its first page: the HIP-4 outcome
|
|
15
|
+
sides the trader holds on HyperCore, each with `shares`, `average_price` and
|
|
16
|
+
`opened_at`, or null while they cannot be known.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- `getTrader`, `listTraderTrades`, `listTraderPositions` and `getTraderPnl`
|
|
21
|
+
answer signed out too.
|
|
22
|
+
|
|
6
23
|
## 0.77.0
|
|
7
24
|
|
|
8
25
|
`openPosition` chooses its quote last and moves on to the next quote when an
|
|
@@ -39,6 +39,7 @@ export type paths = {
|
|
|
39
39
|
readonly "/v1/traders/{username}/trades": Pick<SharedPaths["/v1/traders/{username}/trades"], "parameters" | "get">;
|
|
40
40
|
readonly "/v1/traders/{username}/positions": Pick<SharedPaths["/v1/traders/{username}/positions"], "parameters" | "get">;
|
|
41
41
|
readonly "/v1/traders/{username}/pnl": Pick<SharedPaths["/v1/traders/{username}/pnl"], "parameters" | "get">;
|
|
42
|
+
readonly "/v1/feed/combos": Pick<SharedPaths["/v1/feed/combos"], "parameters" | "get">;
|
|
42
43
|
readonly "/v1/me/follows": Pick<SharedPaths["/v1/me/follows"], "parameters" | "get">;
|
|
43
44
|
readonly "/v1/me/follows/{username}": Pick<SharedPaths["/v1/me/follows/{username}"], "parameters" | "put" | "delete">;
|
|
44
45
|
readonly "/v1/me/copy-settings": Pick<SharedPaths["/v1/me/copy-settings"], "parameters" | "get" | "put">;
|
|
@@ -103,4 +104,4 @@ export type paths = {
|
|
|
103
104
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
104
105
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
105
106
|
};
|
|
106
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
107
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
@@ -407,8 +407,8 @@ export declare const operationErrors: {
|
|
|
407
407
|
readonly getSeries: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
408
408
|
readonly getSuggestedCombo: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY"];
|
|
409
409
|
readonly getTaxonomy: readonly ["INVALID_QUERY", "MARKET_DATA_UNAVAILABLE", "UNSUPPORTED_BROWSE_CONTRACT", "BROWSE_UNAVAILABLE"];
|
|
410
|
-
readonly getTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "
|
|
411
|
-
readonly getTraderPnl: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "
|
|
410
|
+
readonly getTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
411
|
+
readonly getTraderPnl: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE"];
|
|
412
412
|
readonly getUsernameAvailability: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
|
|
413
413
|
readonly getVaultAgents: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "DEPENDENCY_STALE"];
|
|
414
414
|
readonly getVolumeLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
@@ -419,13 +419,14 @@ export declare const operationErrors: {
|
|
|
419
419
|
readonly listAccountActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED"];
|
|
420
420
|
readonly listAccountPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED"];
|
|
421
421
|
readonly listComboCopies: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
422
|
+
readonly listComboFeed: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "SOURCE_UNAVAILABLE"];
|
|
422
423
|
readonly listCommentReplies: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "NOT_FOUND"];
|
|
423
424
|
readonly listComments: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "SOURCE_UNAVAILABLE", "MARKET_DATA_UNAVAILABLE"];
|
|
424
425
|
readonly listControlledMakers: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_QUERY", "INVALID_CURSOR"];
|
|
425
426
|
readonly listCopiedFills: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
426
427
|
readonly listCopyTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
427
428
|
readonly listDiscovery: readonly ["INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR", "MARKET_DATA_UNAVAILABLE", "UNSUPPORTED_BROWSE_CONTRACT", "BROWSE_UNAVAILABLE"];
|
|
428
|
-
readonly listFollows: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"
|
|
429
|
+
readonly listFollows: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
429
430
|
readonly listMakerAcceptances: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "NOT_FOUND"];
|
|
430
431
|
readonly listMakerActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED"];
|
|
431
432
|
readonly listMakerApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
@@ -437,8 +438,8 @@ export declare const operationErrors: {
|
|
|
437
438
|
readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
438
439
|
readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
439
440
|
readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
|
|
440
|
-
readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "
|
|
441
|
-
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "
|
|
441
|
+
readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
442
|
+
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
442
443
|
readonly live: readonly [];
|
|
443
444
|
readonly publishMakerTelemetry: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "TELEMETRY_CONFLICT", "INVALID_REQUEST"];
|
|
444
445
|
readonly reactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
@@ -460,14 +461,14 @@ export declare const operationErrors: {
|
|
|
460
461
|
readonly setAvatar: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "ORIGIN_REQUIRED"];
|
|
461
462
|
readonly setCopyAllocation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "DEPENDENCY_STALE", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CONTRACT_UNAVAILABLE"];
|
|
462
463
|
readonly setCopySettings: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CONTRACT_UNAVAILABLE"];
|
|
463
|
-
readonly setPublicProfile: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "USERNAME_REQUIRED", "ORIGIN_REQUIRED"
|
|
464
|
+
readonly setPublicProfile: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "USERNAME_REQUIRED", "ORIGIN_REQUIRED"];
|
|
464
465
|
readonly setUsername: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "IDENTITY_NOT_FOUND", "USERNAME_NOT_ALLOWED", "USERNAME_TAKEN", "ORIGIN_REQUIRED"];
|
|
465
466
|
readonly stream: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "SUBPROTOCOL_REQUIRED", "CONNECTION_LIMIT", "CONNECTION_DRAIN", "INVALID_REQUEST", "NOT_FOUND", "ORIGIN_REQUIRED"];
|
|
466
467
|
readonly streamMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "SUBPROTOCOL_REQUIRED", "CONNECTION_LIMIT", "CONNECTION_DRAIN", "ORIGIN_NOT_ALLOWED", "INVALID_QUERY"];
|
|
467
468
|
readonly submitMakerSelfFundedTransaction: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "CONTRACT_SIGNATURE_OVERLOADED", "NOT_FOUND"];
|
|
468
469
|
readonly switchOffComboCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
469
470
|
readonly switchOffCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
470
|
-
readonly unfollowTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "INVALID_REQUEST", "IDEMPOTENCY_KEY_REUSED"
|
|
471
|
+
readonly unfollowTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "INVALID_REQUEST", "IDEMPOTENCY_KEY_REUSED"];
|
|
471
472
|
readonly unlikeComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
472
473
|
readonly unreactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
473
474
|
};
|
package/dist/generated/errors.js
CHANGED
|
@@ -1171,10 +1171,8 @@ export const operationErrors = {
|
|
|
1171
1171
|
"AUTHORIZATION_UNAVAILABLE",
|
|
1172
1172
|
"RATE_LIMITED",
|
|
1173
1173
|
"INVALID_QUERY",
|
|
1174
|
-
"ORIGIN_REQUIRED",
|
|
1175
1174
|
"NOT_FOUND",
|
|
1176
|
-
"SOURCE_UNAVAILABLE"
|
|
1177
|
-
"CONTRACT_UNAVAILABLE"
|
|
1175
|
+
"SOURCE_UNAVAILABLE"
|
|
1178
1176
|
],
|
|
1179
1177
|
"getTraderPnl": [
|
|
1180
1178
|
"UNAUTHENTICATED",
|
|
@@ -1182,7 +1180,6 @@ export const operationErrors = {
|
|
|
1182
1180
|
"AUTHORIZATION_UNAVAILABLE",
|
|
1183
1181
|
"RATE_LIMITED",
|
|
1184
1182
|
"INVALID_QUERY",
|
|
1185
|
-
"ORIGIN_REQUIRED",
|
|
1186
1183
|
"NOT_FOUND",
|
|
1187
1184
|
"SOURCE_UNAVAILABLE",
|
|
1188
1185
|
"CONTRACT_UNAVAILABLE"
|
|
@@ -1300,6 +1297,14 @@ export const operationErrors = {
|
|
|
1300
1297
|
"INVALID_QUERY",
|
|
1301
1298
|
"CONTRACT_UNAVAILABLE"
|
|
1302
1299
|
],
|
|
1300
|
+
"listComboFeed": [
|
|
1301
|
+
"UNAUTHENTICATED",
|
|
1302
|
+
"FORBIDDEN",
|
|
1303
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1304
|
+
"RATE_LIMITED",
|
|
1305
|
+
"INVALID_QUERY",
|
|
1306
|
+
"SOURCE_UNAVAILABLE"
|
|
1307
|
+
],
|
|
1303
1308
|
"listCommentReplies": [
|
|
1304
1309
|
"UNAUTHENTICATED",
|
|
1305
1310
|
"FORBIDDEN",
|
|
@@ -1366,8 +1371,7 @@ export const operationErrors = {
|
|
|
1366
1371
|
"RATE_LIMITED",
|
|
1367
1372
|
"ORIGIN_REQUIRED",
|
|
1368
1373
|
"IDENTITY_NOT_FOUND",
|
|
1369
|
-
"INVALID_QUERY"
|
|
1370
|
-
"CONTRACT_UNAVAILABLE"
|
|
1374
|
+
"INVALID_QUERY"
|
|
1371
1375
|
],
|
|
1372
1376
|
"listMakerAcceptances": [
|
|
1373
1377
|
"UNAUTHENTICATED",
|
|
@@ -1483,10 +1487,8 @@ export const operationErrors = {
|
|
|
1483
1487
|
"AUTHORIZATION_UNAVAILABLE",
|
|
1484
1488
|
"RATE_LIMITED",
|
|
1485
1489
|
"INVALID_QUERY",
|
|
1486
|
-
"ORIGIN_REQUIRED",
|
|
1487
1490
|
"NOT_FOUND",
|
|
1488
|
-
"SOURCE_UNAVAILABLE"
|
|
1489
|
-
"CONTRACT_UNAVAILABLE"
|
|
1491
|
+
"SOURCE_UNAVAILABLE"
|
|
1490
1492
|
],
|
|
1491
1493
|
"listTraderTrades": [
|
|
1492
1494
|
"UNAUTHENTICATED",
|
|
@@ -1494,10 +1496,8 @@ export const operationErrors = {
|
|
|
1494
1496
|
"AUTHORIZATION_UNAVAILABLE",
|
|
1495
1497
|
"RATE_LIMITED",
|
|
1496
1498
|
"INVALID_QUERY",
|
|
1497
|
-
"ORIGIN_REQUIRED",
|
|
1498
1499
|
"NOT_FOUND",
|
|
1499
|
-
"SOURCE_UNAVAILABLE"
|
|
1500
|
-
"CONTRACT_UNAVAILABLE"
|
|
1500
|
+
"SOURCE_UNAVAILABLE"
|
|
1501
1501
|
],
|
|
1502
1502
|
"live": [],
|
|
1503
1503
|
"publishMakerTelemetry": [
|
|
@@ -1728,8 +1728,7 @@ export const operationErrors = {
|
|
|
1728
1728
|
"IDEMPOTENCY_KEY_REUSED",
|
|
1729
1729
|
"IDENTITY_NOT_FOUND",
|
|
1730
1730
|
"USERNAME_REQUIRED",
|
|
1731
|
-
"ORIGIN_REQUIRED"
|
|
1732
|
-
"CONTRACT_UNAVAILABLE"
|
|
1731
|
+
"ORIGIN_REQUIRED"
|
|
1733
1732
|
],
|
|
1734
1733
|
"setUsername": [
|
|
1735
1734
|
"UNAUTHENTICATED",
|
|
@@ -1816,8 +1815,7 @@ export const operationErrors = {
|
|
|
1816
1815
|
"IDENTITY_NOT_FOUND",
|
|
1817
1816
|
"INVALID_IDEMPOTENCY_KEY",
|
|
1818
1817
|
"INVALID_REQUEST",
|
|
1819
|
-
"IDEMPOTENCY_KEY_REUSED"
|
|
1820
|
-
"CONTRACT_UNAVAILABLE"
|
|
1818
|
+
"IDEMPOTENCY_KEY_REUSED"
|
|
1821
1819
|
],
|
|
1822
1820
|
"unlikeComment": [
|
|
1823
1821
|
"UNAUTHENTICATED",
|
|
@@ -725,7 +725,7 @@ export type paths = {
|
|
|
725
725
|
readonly get?: never;
|
|
726
726
|
/**
|
|
727
727
|
* Turn the public trader profile on or off
|
|
728
|
-
* @description Turns the authenticated account's public trader profile on (public: true) or off. It starts on, and an account without a username can turn it off before picking one; nothing names the profile until then. While it is on,
|
|
728
|
+
* @description Turns the authenticated account's public trader profile on (public: true) or off. It starts on, and an account without a username can turn it off before picking one; nothing names the profile until then. While it is on, anyone, signed in or not, reads GET /v1/traders/{username}: the username, avatar, account wallet, volume, trades, open Combos and singles and P&L, and GET /v1/feed/combos lists the Combos it opens, and the leaderboards mark the account public_profile. Its HyperCore fills and tickets are public on chain anyway; what turning it on discloses is that the wallet belongs to the username. Turning it on needs a username (409 USERNAME_REQUIRED); public_since keeps the first time it went on until it is turned off. Call it after POST /v1/me/embedded-wallet; before that it is 404 IDENTITY_NOT_FOUND. Asking for the current state again returns 204, so a retry is safe. Idempotency-Keys order these requests: the other state under the account's newest key, or under an older key, is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer request. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST.
|
|
729
729
|
*/
|
|
730
730
|
readonly put: operations["setPublicProfile"];
|
|
731
731
|
readonly post?: never;
|
|
@@ -744,7 +744,7 @@ export type paths = {
|
|
|
744
744
|
};
|
|
745
745
|
/**
|
|
746
746
|
* Get a public trader profile
|
|
747
|
-
* @description A trader's public profile, while they have turned it on with PUT /v1/me/public-profile: their username, avatar, the account wallet they trade from, which clients read HyperCore holdings for from Hyperliquid, their follower count, whether the reader follows them, and their all-time volume, counted as GET /v1/leaderboard/volume counts it.
|
|
747
|
+
* @description A trader's public profile, while they have turned it on with PUT /v1/me/public-profile: their username, avatar, the account wallet they trade from, which clients read HyperCore holdings for from Hyperliquid, their follower count, whether the reader follows them, and their all-time volume, counted as GET /v1/leaderboard/volume counts it. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not.
|
|
748
748
|
*/
|
|
749
749
|
readonly get: operations["getTrader"];
|
|
750
750
|
readonly put?: never;
|
|
@@ -764,7 +764,7 @@ export type paths = {
|
|
|
764
764
|
};
|
|
765
765
|
/**
|
|
766
766
|
* List a public trader's trades
|
|
767
|
-
* @description A public trader's trades, newest first: each HyperCore fill GET /v1/leaderboard/volume counts as theirs (on their Totalis embedded wallet, or an order the app placed on another linked wallet), each Combo ticket a wallet of theirs opened, when it did (a ticket passed to them on is not their entry), and each sold back from a wallet of theirs, when it was. Poll the first page for new trades; ids are stable. The cursor never expires.
|
|
767
|
+
* @description A public trader's trades, newest first: each HyperCore fill GET /v1/leaderboard/volume counts as theirs (on their Totalis embedded wallet, or an order the app placed on another linked wallet), each Combo ticket a wallet of theirs opened, when it did (a ticket passed to them on is not their entry), and each sold back from a wallet of theirs, when it was. Poll the first page for new trades; ids are stable. The cursor never expires. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not.
|
|
768
768
|
*/
|
|
769
769
|
readonly get: operations["listTraderTrades"];
|
|
770
770
|
readonly put?: never;
|
|
@@ -783,8 +783,8 @@ export type paths = {
|
|
|
783
783
|
readonly cookie?: never;
|
|
784
784
|
};
|
|
785
785
|
/**
|
|
786
|
-
* List a public trader's open Combos
|
|
787
|
-
* @description A public trader's open Combo tickets, newest first by opening, including tickets passed to them
|
|
786
|
+
* List a public trader's open Combos and singles
|
|
787
|
+
* @description A public trader's open Combo tickets, newest first by opening, including tickets passed to them, and on the first page (no cursor) their singles: the HIP-4 outcome sides their account wallet holds on HyperCore, replayed from its whole fill history in the account index. singles is null while that history cannot prove them: off Mainnet, while the index is behind or missing history, after an outcome token moved by transfer, or while the read fails. A later page leaves singles out. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not.
|
|
788
788
|
*/
|
|
789
789
|
readonly get: operations["listTraderPositions"];
|
|
790
790
|
readonly put?: never;
|
|
@@ -804,7 +804,7 @@ export type paths = {
|
|
|
804
804
|
};
|
|
805
805
|
/**
|
|
806
806
|
* Get a public trader's P&L series
|
|
807
|
-
* @description A public trader's cumulative trading P&L over one range: what GET /v1/me/pnl shows them for their account wallet.
|
|
807
|
+
* @description A public trader's cumulative trading P&L over one range: what GET /v1/me/pnl shows them for their account wallet. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not.
|
|
808
808
|
*/
|
|
809
809
|
readonly get: operations["getTraderPnl"];
|
|
810
810
|
readonly put?: never;
|
|
@@ -815,6 +815,26 @@ export type paths = {
|
|
|
815
815
|
readonly patch?: never;
|
|
816
816
|
readonly trace?: never;
|
|
817
817
|
};
|
|
818
|
+
readonly "/v1/feed/combos": {
|
|
819
|
+
readonly parameters: {
|
|
820
|
+
readonly query?: never;
|
|
821
|
+
readonly header?: never;
|
|
822
|
+
readonly path?: never;
|
|
823
|
+
readonly cookie?: never;
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* List the Combos public traders opened
|
|
827
|
+
* @description Every Combo ticket opened by a trader whose profile is public (PUT /v1/me/public-profile), newest first by opening, a page at a time, with the trader's username and avatar. A ticket counts for the participant whose linked wallet opened it, whoever holds it now; a profile turned off leaves the feed, and one turned on brings its Combos back. A page reads a bounded run of tickets, so it may hold fewer than limit, even none, while has_more is true. Poll the first page for new Combos; the cursor never expires. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds.
|
|
828
|
+
*/
|
|
829
|
+
readonly get: operations["listComboFeed"];
|
|
830
|
+
readonly put?: never;
|
|
831
|
+
readonly post?: never;
|
|
832
|
+
readonly delete?: never;
|
|
833
|
+
readonly options?: never;
|
|
834
|
+
readonly head?: never;
|
|
835
|
+
readonly patch?: never;
|
|
836
|
+
readonly trace?: never;
|
|
837
|
+
};
|
|
818
838
|
readonly "/v1/me/follows": {
|
|
819
839
|
readonly parameters: {
|
|
820
840
|
readonly query?: never;
|
|
@@ -845,7 +865,7 @@ export type paths = {
|
|
|
845
865
|
readonly get?: never;
|
|
846
866
|
/**
|
|
847
867
|
* Follow a trader or set a follow's copy settings
|
|
848
|
-
* @description Follows the trader whose public profile has this username, and answers the follow's copy settings. A follow alone copies nothing: it puts the trader's trades in the account's feed. Send {} to follow: a new follow takes the defaults (automatic copying off, FIXED 10 USDC a trade up to 100 USDC, 5 open positions, 100 bps slippage, exits mirrored) and an existing one keeps its settings. Send both core and combos to replace the follow's settings, following first if needed. Automatic copying also needs the product's copy agent, and stops while the account is paused (PUT /v1/me/copy-settings) or the trader's profile is off. Idempotency-Keys order every write to a follow, unfollows included: a request under a key no newer than the follow's latest succeeds only if the follow is already as it asks (followed, with these settings if it sends any), so a retry is safe; anything else is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer follow, settings change or unfollow. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST. A username with no public profile is 404 NOT_FOUND; the account's own username is 422 FOLLOW_SELF; a 101st follow is 422 FOLLOW_LIMIT_REACHED.
|
|
868
|
+
* @description Follows the trader whose public profile has this username, and answers the follow's copy settings. A follow alone copies nothing: it puts the trader's trades in the account's feed. Send {} to follow: a new follow takes the defaults (automatic copying off, FIXED 10 USDC a trade up to 100 USDC, 5 open positions, 100 bps slippage, exits mirrored) and an existing one keeps its settings. Send both core and combos to replace the follow's settings, following first if needed. Automatic copying also needs the product's copy agent, and stops while the account is paused (PUT /v1/me/copy-settings) or the trader's profile is off. Idempotency-Keys order every write to a follow, unfollows included: a request under a key no newer than the follow's latest succeeds only if the follow is already as it asks (followed, with these settings if it sends any), so a retry is safe; anything else is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer follow, settings change or unfollow. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST. A username with no public profile is 404 NOT_FOUND; the account's own username is 422 FOLLOW_SELF; a 101st follow is 422 FOLLOW_LIMIT_REACHED. Where copy trading is not available, a plain follow ({}) still works but a body with copy settings is 503 CONTRACT_UNAVAILABLE.
|
|
849
869
|
*/
|
|
850
870
|
readonly put: operations["followTrader"];
|
|
851
871
|
readonly post?: never;
|
|
@@ -2663,6 +2683,35 @@ export type components = {
|
|
|
2663
2683
|
};
|
|
2664
2684
|
/** TraderCombo */
|
|
2665
2685
|
readonly TraderCombo: components["schemas"]["TraderComboFields"];
|
|
2686
|
+
/**
|
|
2687
|
+
* TraderSingle
|
|
2688
|
+
* @description A HIP-4 outcome side a trader's account wallet holds on HyperCore.
|
|
2689
|
+
*/
|
|
2690
|
+
readonly TraderSingle: {
|
|
2691
|
+
/** @description HIP-4 outcome ID held, as a decimal string. */
|
|
2692
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
2693
|
+
/** @description Outcome side held. */
|
|
2694
|
+
readonly side: components["schemas"]["Side"];
|
|
2695
|
+
/** @description Shares held, an exact decimal string with no trailing zeros. */
|
|
2696
|
+
readonly shares: string;
|
|
2697
|
+
/** @description What each held share cost on average in USDC, fees included: buys add their cost and a sale removes its shares' share of it. Rounded half away from zero to 6 decimals, no trailing zeros. Absent when the holding's fills brought cash in rather than paid it out. */
|
|
2698
|
+
readonly average_price?: string;
|
|
2699
|
+
/** @description HyperCore block time of the fill that last opened the holding from none. */
|
|
2700
|
+
readonly opened_at: components["schemas"]["$defs-Timestamp"];
|
|
2701
|
+
};
|
|
2702
|
+
/**
|
|
2703
|
+
* ComboFeedItem
|
|
2704
|
+
* @description A Combo a public trader opened.
|
|
2705
|
+
*/
|
|
2706
|
+
readonly ComboFeedItem: {
|
|
2707
|
+
readonly username: components["schemas"]["Username"];
|
|
2708
|
+
/** @description The seed clients draw the trader's generated avatar from, as for GET /v1/traders/{username}. */
|
|
2709
|
+
readonly avatar_seed: components["schemas"]["AvatarSeed"];
|
|
2710
|
+
/** @description The trader's X picture, shown in place of the generated avatar; absent when there is none. */
|
|
2711
|
+
readonly picture_url?: components["schemas"]["XPictureUrl"];
|
|
2712
|
+
/** @description HyperEVM block time of the ticket's opening. */
|
|
2713
|
+
readonly opened_at: components["schemas"]["$defs-Timestamp"];
|
|
2714
|
+
} & components["schemas"]["TraderComboFields"];
|
|
2666
2715
|
/** @description One live, unsigned quote on an RFQ, told apart by `kind`. List quotes, the account snapshot's quotes and `QUOTE_CREATED` carry the same item. */
|
|
2667
2716
|
readonly Quote: components["schemas"]["EntryQuote"] | components["schemas"]["SellBackQuote"] | components["schemas"]["TransferQuote"];
|
|
2668
2717
|
/** @description A maker's offer to open a position on an entry RFQ. */
|
|
@@ -7755,7 +7804,8 @@ export interface operations {
|
|
|
7755
7804
|
/** @description The profile */
|
|
7756
7805
|
readonly 200: {
|
|
7757
7806
|
headers: {
|
|
7758
|
-
|
|
7807
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
7808
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
7759
7809
|
readonly [name: string]: unknown;
|
|
7760
7810
|
};
|
|
7761
7811
|
content: {
|
|
@@ -7820,7 +7870,8 @@ export interface operations {
|
|
|
7820
7870
|
/** @description A page of trades */
|
|
7821
7871
|
readonly 200: {
|
|
7822
7872
|
headers: {
|
|
7823
|
-
|
|
7873
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
7874
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
7824
7875
|
readonly [name: string]: unknown;
|
|
7825
7876
|
};
|
|
7826
7877
|
content: {
|
|
@@ -7895,7 +7946,8 @@ export interface operations {
|
|
|
7895
7946
|
/** @description A page of open Combos */
|
|
7896
7947
|
readonly 200: {
|
|
7897
7948
|
headers: {
|
|
7898
|
-
|
|
7949
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
7950
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
7899
7951
|
readonly [name: string]: unknown;
|
|
7900
7952
|
};
|
|
7901
7953
|
content: {
|
|
@@ -7907,6 +7959,8 @@ export interface operations {
|
|
|
7907
7959
|
} & components["schemas"]["TraderComboFields"])[];
|
|
7908
7960
|
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
7909
7961
|
readonly has_more: boolean;
|
|
7962
|
+
/** @description The trader's open singles, newest opened first; null when they cannot be known. Only on the first page. */
|
|
7963
|
+
readonly singles?: null | readonly components["schemas"]["TraderSingle"][];
|
|
7910
7964
|
};
|
|
7911
7965
|
};
|
|
7912
7966
|
};
|
|
@@ -7936,7 +7990,8 @@ export interface operations {
|
|
|
7936
7990
|
/** @description The trader's P&L series */
|
|
7937
7991
|
readonly 200: {
|
|
7938
7992
|
headers: {
|
|
7939
|
-
|
|
7993
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
7994
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
7940
7995
|
readonly [name: string]: unknown;
|
|
7941
7996
|
};
|
|
7942
7997
|
content: {
|
|
@@ -7951,6 +8006,49 @@ export interface operations {
|
|
|
7951
8006
|
readonly 503: components["responses"]["Unavailable"];
|
|
7952
8007
|
};
|
|
7953
8008
|
};
|
|
8009
|
+
readonly listComboFeed: {
|
|
8010
|
+
readonly parameters: {
|
|
8011
|
+
readonly query?: {
|
|
8012
|
+
/**
|
|
8013
|
+
* @description Omit for the first page; then send the previous response's next_cursor unchanged.
|
|
8014
|
+
* @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
|
|
8015
|
+
*/
|
|
8016
|
+
readonly cursor?: components["parameters"]["Cursor"];
|
|
8017
|
+
/**
|
|
8018
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
8019
|
+
* @example 50
|
|
8020
|
+
*/
|
|
8021
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
8022
|
+
};
|
|
8023
|
+
readonly header?: never;
|
|
8024
|
+
readonly path?: never;
|
|
8025
|
+
readonly cookie?: never;
|
|
8026
|
+
};
|
|
8027
|
+
readonly requestBody?: never;
|
|
8028
|
+
readonly responses: {
|
|
8029
|
+
/** @description A page of public traders' Combos */
|
|
8030
|
+
readonly 200: {
|
|
8031
|
+
headers: {
|
|
8032
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
8033
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
8034
|
+
readonly [name: string]: unknown;
|
|
8035
|
+
};
|
|
8036
|
+
content: {
|
|
8037
|
+
readonly "application/json": {
|
|
8038
|
+
/** @description Combos, newest first by opening. */
|
|
8039
|
+
readonly items: readonly components["schemas"]["ComboFeedItem"][];
|
|
8040
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
8041
|
+
readonly has_more: boolean;
|
|
8042
|
+
};
|
|
8043
|
+
};
|
|
8044
|
+
};
|
|
8045
|
+
readonly 400: components["responses"]["Error"];
|
|
8046
|
+
readonly 401: components["responses"]["Error"];
|
|
8047
|
+
readonly 403: components["responses"]["Error"];
|
|
8048
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
8049
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
8050
|
+
};
|
|
8051
|
+
};
|
|
7954
8052
|
readonly listFollows: {
|
|
7955
8053
|
readonly parameters: {
|
|
7956
8054
|
readonly query?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "206.0.0-public-trader-reads";
|
|
2
|
+
export declare const openapiSha256 = "1c4c1c9a685d200b19fc047a9ff25240c7a7ba37520bd6a9dc2ea6b78b696e64";
|
|
3
3
|
export declare const realtimeSha256 = "1cac740e108e84ad1979f6ccc71089efd840404cb72d1612a86edc02769637e3";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "5106e2d53abef190990eff113f6692dd27df5848439cf5a80a42c11e89f2bef6";
|
|
@@ -18,7 +18,7 @@ export declare const jsonSchemaSha256: {
|
|
|
18
18
|
readonly "realtime.schema.json": "1cac740e108e84ad1979f6ccc71089efd840404cb72d1612a86edc02769637e3";
|
|
19
19
|
};
|
|
20
20
|
export declare const operations: {
|
|
21
|
-
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listQuotes", "listTraderPositions", "listTraderTrades", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
21
|
+
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listQuotes", "listTraderPositions", "listTraderTrades", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
22
22
|
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
23
23
|
readonly operator: readonly ["live", "ready"];
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "206.0.0-public-trader-reads";
|
|
3
|
+
export const openapiSha256 = "1c4c1c9a685d200b19fc047a9ff25240c7a7ba37520bd6a9dc2ea6b78b696e64";
|
|
4
4
|
export const realtimeSha256 = "1cac740e108e84ad1979f6ccc71089efd840404cb72d1612a86edc02769637e3";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "5106e2d53abef190990eff113f6692dd27df5848439cf5a80a42c11e89f2bef6",
|
|
@@ -98,6 +98,7 @@ export const operations = {
|
|
|
98
98
|
"listAccountActivity",
|
|
99
99
|
"listAccountPositions",
|
|
100
100
|
"listComboCopies",
|
|
101
|
+
"listComboFeed",
|
|
101
102
|
"listCommentReplies",
|
|
102
103
|
"listComments",
|
|
103
104
|
"listControlledMakers",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.0",
|
|
4
4
|
"description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|