@totalis/hip4-client 0.112.0 → 0.114.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 +21 -0
- package/dist/generated/openapi.d.ts +26 -3
- package/dist/generated/version.d.ts +2 -2
- package/dist/generated/version.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
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.114.0
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Referral bonus state (contract `248.0.0-referral-bonus-state`).
|
|
11
|
+
`getMyReferralBonus` answers carry a `state`: `ENABLED` with the bonus as
|
|
12
|
+
before. The type also declares `DISABLED` with only a `reason`,
|
|
13
|
+
`NOT_ENROLLED` (the account owns no invite code that earns it), which a
|
|
14
|
+
later venue release answers instead of `CONTRACT_UNAVAILABLE`; for now that
|
|
15
|
+
account, and a deployment with the bonus off, still get
|
|
16
|
+
`CONTRACT_UNAVAILABLE`. Breaking for types: narrow on `state` before
|
|
17
|
+
reading the bonus fields.
|
|
18
|
+
|
|
19
|
+
## 0.113.0
|
|
20
|
+
|
|
21
|
+
### Deprecated
|
|
22
|
+
|
|
23
|
+
- `getMarketHistory`, `getMarketReferenceCloses` and `getPerpMarks`: the chart
|
|
24
|
+
read `GET /v1/charts/{series}` will replace them. They keep working until
|
|
25
|
+
then; their removal gets a dated notice first.
|
|
26
|
+
|
|
6
27
|
## 0.112.0
|
|
7
28
|
|
|
8
29
|
### Added
|
|
@@ -1536,7 +1536,7 @@ export type paths = {
|
|
|
1536
1536
|
};
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Get my referral bonus
|
|
1539
|
-
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. Answers CONTRACT_UNAVAILABLE where the referral bonus is off.
|
|
1539
|
+
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. state is ENABLED with the bonus, or DISABLED with its reason where the bonus is not on for the account. Answers CONTRACT_UNAVAILABLE where the referral bonus is off, and for now also where it is not on for the account.
|
|
1540
1540
|
*/
|
|
1541
1541
|
readonly get: operations["getMyReferralBonus"];
|
|
1542
1542
|
readonly put?: never;
|
|
@@ -2293,7 +2293,8 @@ export type paths = {
|
|
|
2293
2293
|
};
|
|
2294
2294
|
/**
|
|
2295
2295
|
* Get market history
|
|
2296
|
-
* @
|
|
2296
|
+
* @deprecated
|
|
2297
|
+
* @description Get up to 24 hours of one-minute price history for one side of a market; deprecated, as the chart read `GET /v1/charts/{series}` will replace it.
|
|
2297
2298
|
*/
|
|
2298
2299
|
readonly get: operations["getMarketHistory"];
|
|
2299
2300
|
readonly put?: never;
|
|
@@ -2319,8 +2320,11 @@ export type paths = {
|
|
|
2319
2320
|
};
|
|
2320
2321
|
/**
|
|
2321
2322
|
* Get market reference closes
|
|
2323
|
+
* @deprecated
|
|
2322
2324
|
* @description Anyone: get the one-minute or one-hour closes of a market side's reference price history, compressed for a line chart.
|
|
2323
2325
|
*
|
|
2326
|
+
* Deprecated: the chart read `GET /v1/charts/{series}` will replace it. It keeps working until then; its removal gets a dated notice first.
|
|
2327
|
+
*
|
|
2324
2328
|
* With `bucket=MINUTE`, the default, this is `series=REFERENCE_PRICE_OHLC` history with only each minute's close: the same source, window, anchor, scale, `closed_before`, `limit` and cursor. With `bucket=HOUR` each UTC hour carries the close of its last observed minute over a window of up to 90 days, for charts longer than a day. Each run `[bucket, close, buckets]` covers `buckets` consecutive observed buckets of `bucket_seconds` from `bucket` (Unix seconds) that closed at `close`; a missing bucket or a new close starts a new run. Expanding minute runs gives exactly the minutes and closes of the matching history page. Reference minutes record the chance the market showed, whatever its `chance_basis`, so a minute without a known chance is absent; minutes before TT-2366 hold only midpoint chances. Never fill a bucket between runs.
|
|
2325
2329
|
*/
|
|
2326
2330
|
readonly get: operations["getMarketReferenceCloses"];
|
|
@@ -2617,8 +2621,11 @@ export type paths = {
|
|
|
2617
2621
|
};
|
|
2618
2622
|
/**
|
|
2619
2623
|
* Get perp marks
|
|
2624
|
+
* @deprecated
|
|
2620
2625
|
* @description Anyone: get a perp's mark price on a fixed step, for a price chart.
|
|
2621
2626
|
*
|
|
2627
|
+
* Deprecated: the chart read `GET /v1/charts/{series}` will replace it. It keeps working until then; its removal gets a dated notice first.
|
|
2628
|
+
*
|
|
2622
2629
|
* Totalis records the mark of every perp a listed price market charts from its own Hyperliquid node about once a second and keeps four days of it. Each step closes at the mark at its end; steps group into runs `[step, mark, steps]` of `step_seconds` from `step` (Unix seconds). A step the record cannot prove, because no read of the node came within 2.5 seconds around its end, is absent: never fill it. `through` is the end of the last step the record reaches; everything up to it is final, so a client reads only what came after it next time and takes the newest price from its live feed. A perp no listed market has charted in the last four days is 404 NOT_FOUND.
|
|
2623
2630
|
*/
|
|
2624
2631
|
readonly get: operations["getPerpMarks"];
|
|
@@ -11193,7 +11200,7 @@ export interface operations {
|
|
|
11193
11200
|
};
|
|
11194
11201
|
readonly requestBody?: never;
|
|
11195
11202
|
readonly responses: {
|
|
11196
|
-
/** @description The referral bonus */
|
|
11203
|
+
/** @description The referral bonus, or why it is not on for the account */
|
|
11197
11204
|
readonly 200: {
|
|
11198
11205
|
headers: {
|
|
11199
11206
|
readonly "Cache-Control"?: "no-store";
|
|
@@ -11201,6 +11208,11 @@ export interface operations {
|
|
|
11201
11208
|
};
|
|
11202
11209
|
content: {
|
|
11203
11210
|
readonly "application/json": {
|
|
11211
|
+
/**
|
|
11212
|
+
* @description ENABLED: the account earns the referral bonus for its referrals.
|
|
11213
|
+
* @constant
|
|
11214
|
+
*/
|
|
11215
|
+
readonly state: "ENABLED";
|
|
11204
11216
|
/** @description A referral qualifies once their own Combo stake since signing up with the account's code reaches this, in HyperEVM USDC base units (10^-6). */
|
|
11205
11217
|
readonly qualifying_stake: components["schemas"]["$defs-Amount"];
|
|
11206
11218
|
/** @description What each qualified referral earns, in HyperEVM USDC base units (10^-6). */
|
|
@@ -11243,6 +11255,17 @@ export interface operations {
|
|
|
11243
11255
|
/** @description Their own Combo stake since then, in HyperEVM USDC base units (10^-6). */
|
|
11244
11256
|
readonly staked: components["schemas"]["$defs-Amount"];
|
|
11245
11257
|
}[];
|
|
11258
|
+
} | {
|
|
11259
|
+
/**
|
|
11260
|
+
* @description DISABLED: the account does not earn the referral bonus; reason says why.
|
|
11261
|
+
* @constant
|
|
11262
|
+
*/
|
|
11263
|
+
readonly state: "DISABLED";
|
|
11264
|
+
/**
|
|
11265
|
+
* @description Why the account does not earn it. NOT_ENROLLED: the account owns no invite code that earns the bonus, as for an account signed up with a wallet alone, which owns no code.
|
|
11266
|
+
* @enum {string}
|
|
11267
|
+
*/
|
|
11268
|
+
readonly reason: "NOT_ENROLLED";
|
|
11246
11269
|
};
|
|
11247
11270
|
};
|
|
11248
11271
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "248.0.0-referral-bonus-state";
|
|
2
|
+
export declare const openapiSha256 = "d057d88dad100c185d2c0833ceea0bbe41841e18d03b19a04b2c181b814511c2";
|
|
3
3
|
export declare const realtimeSha256 = "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
@@ -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 = "248.0.0-referral-bonus-state";
|
|
3
|
+
export const openapiSha256 = "d057d88dad100c185d2c0833ceea0bbe41841e18d03b19a04b2c181b814511c2";
|
|
4
4
|
export const realtimeSha256 = "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.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": [
|