@yuants/vendor-hyperliquid 0.8.4 → 0.9.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/dist/index.js CHANGED
@@ -4,4 +4,6 @@ import './services/markets/ohlc';
4
4
  import './services/markets/product';
5
5
  import './services/markets/quote';
6
6
  import './services/quotes';
7
+ import './services/ohlc-service';
8
+ import './services/interest-rate-service';
7
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,mBAAmB,CAAC","sourcesContent":["import './services/exchange';\nimport './services/markets/interest-rate';\nimport './services/markets/ohlc';\nimport './services/markets/product';\nimport './services/markets/quote';\nimport './services/quotes';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,kCAAkC,CAAC","sourcesContent":["import './services/exchange';\nimport './services/markets/interest-rate';\nimport './services/markets/ohlc';\nimport './services/markets/product';\nimport './services/markets/quote';\nimport './services/quotes';\nimport './services/ohlc-service';\nimport './services/interest-rate-service';\n"]}
@@ -0,0 +1,37 @@
1
+ import { provideInterestRateService } from '@yuants/exchange';
2
+ import { Terminal } from '@yuants/protocol';
3
+ import { decodePath, formatTime } from '@yuants/utils';
4
+ import { getHistoricalFundingRates } from '../api/public-api';
5
+ const terminal = Terminal.fromNodeEnv();
6
+ const WINDOW_MS = 30 * 24 * 3600000;
7
+ const fetchInterestRateBackward = async (req) => {
8
+ const [, marketType, symbol] = decodePath(req.product_id);
9
+ if (marketType !== 'PERPETUAL' || !symbol)
10
+ throw new Error(`Unsupported product_id: ${req.product_id}`);
11
+ const coin = symbol.split('-')[0];
12
+ if (!coin)
13
+ throw new Error(`Invalid symbol: ${symbol}`);
14
+ const endTime = req.time;
15
+ const startTime = Math.max(0, endTime - WINDOW_MS);
16
+ const res = await getHistoricalFundingRates({ coin, startTime, endTime });
17
+ return (res !== null && res !== void 0 ? res : [])
18
+ .map((v) => {
19
+ const ms = v.time;
20
+ const rate = Number(v.fundingRate);
21
+ return {
22
+ series_id: req.series_id,
23
+ product_id: req.product_id,
24
+ datasource_id: 'HYPERLIQUID',
25
+ created_at: formatTime(ms),
26
+ long_rate: `${-rate}`,
27
+ short_rate: `${rate}`,
28
+ settlement_price: '',
29
+ };
30
+ })
31
+ .filter((x) => Date.parse(x.created_at) < endTime);
32
+ };
33
+ provideInterestRateService(terminal, {
34
+ product_id_prefix: 'HYPERLIQUID/PERPETUAL/',
35
+ direction: 'backward',
36
+ }, fetchInterestRateBackward);
37
+ //# sourceMappingURL=interest-rate-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interest-rate-service.js","sourceRoot":"","sources":["../../src/services/interest-rate-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;AAExC,MAAM,SAAS,GAAG,EAAE,GAAG,EAAE,GAAG,OAAQ,CAAC;AAErC,MAAM,yBAAyB,GAAG,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,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,0BAA0B,CACxB,QAAQ,EACR;IACE,iBAAiB,EAAE,wBAAwB;IAC3C,SAAS,EAAE,UAAU;CACtB,EACD,yBAAyB,CAC1B,CAAC","sourcesContent":["import { IInterestRate } from '@yuants/data-interest-rate';\nimport { provideInterestRateService } from '@yuants/exchange';\nimport { Terminal } from '@yuants/protocol';\nimport { decodePath, formatTime } from '@yuants/utils';\nimport { getHistoricalFundingRates } from '../api/public-api';\n\nconst terminal = Terminal.fromNodeEnv();\n\nconst WINDOW_MS = 30 * 24 * 3600_000;\n\nconst fetchInterestRateBackward = async (req: {\n product_id: string;\n time: number;\n series_id: string;\n}): Promise<IInterestRate[]> => {\n const [, marketType, symbol] = decodePath(req.product_id);\n if (marketType !== 'PERPETUAL' || !symbol) throw new Error(`Unsupported product_id: ${req.product_id}`);\n\n const coin = symbol.split('-')[0];\n if (!coin) throw new Error(`Invalid symbol: ${symbol}`);\n\n const endTime = req.time;\n const startTime = Math.max(0, endTime - WINDOW_MS);\n\n const res = await getHistoricalFundingRates({ coin, startTime, endTime });\n\n return (res ?? [])\n .map((v): IInterestRate => {\n const ms = v.time;\n const rate = Number(v.fundingRate);\n return {\n series_id: req.series_id,\n product_id: req.product_id,\n datasource_id: 'HYPERLIQUID',\n created_at: formatTime(ms),\n long_rate: `${-rate}`,\n short_rate: `${rate}`,\n settlement_price: '',\n };\n })\n .filter((x) => Date.parse(x.created_at) < endTime);\n};\n\nprovideInterestRateService(\n terminal,\n {\n product_id_prefix: 'HYPERLIQUID/PERPETUAL/',\n direction: 'backward',\n },\n fetchInterestRateBackward,\n);\n"]}
@@ -0,0 +1,72 @@
1
+ import { provideOHLCService } from '@yuants/exchange';
2
+ import { Terminal } from '@yuants/protocol';
3
+ import { convertDurationToOffset, decodePath, formatTime } from '@yuants/utils';
4
+ import { getCandleSnapshot } from '../api/public-api';
5
+ const terminal = Terminal.fromNodeEnv();
6
+ const DURATION_TO_HYPERLIQUID_INTERVAL = {
7
+ PT1M: '1m',
8
+ PT3M: '3m',
9
+ PT5M: '5m',
10
+ PT15M: '15m',
11
+ PT30M: '30m',
12
+ PT1H: '1h',
13
+ PT2H: '2h',
14
+ PT4H: '4h',
15
+ PT8H: '8h',
16
+ PT12H: '12h',
17
+ P1D: '1d',
18
+ P3D: '3d',
19
+ P1W: '1w',
20
+ P1M: '1M',
21
+ };
22
+ const DEFAULT_BAR_COUNT = 1000;
23
+ const fetchOHLCPageBackward = async (req) => {
24
+ const [, marketType, symbol] = decodePath(req.product_id);
25
+ if (!symbol)
26
+ throw new Error(`Unsupported product_id: ${req.product_id}`);
27
+ if (marketType !== 'PERPETUAL' && marketType !== 'SPOT') {
28
+ throw new Error(`Unsupported product_id: ${req.product_id}`);
29
+ }
30
+ const coin = symbol.split('-')[0];
31
+ if (!coin)
32
+ throw new Error(`Invalid symbol: ${symbol}`);
33
+ const interval = DURATION_TO_HYPERLIQUID_INTERVAL[req.duration];
34
+ if (!interval)
35
+ throw new Error(`Unsupported duration: ${req.duration}`);
36
+ const periodMs = convertDurationToOffset(req.duration);
37
+ const endTime = req.time;
38
+ const startTime = Math.max(0, endTime - DEFAULT_BAR_COUNT * periodMs);
39
+ const res = await getCandleSnapshot({
40
+ req: { coin, interval, startTime, endTime },
41
+ });
42
+ return (res !== null && res !== void 0 ? res : [])
43
+ .map((x) => {
44
+ const createdAtMs = x.t;
45
+ return {
46
+ series_id: req.series_id,
47
+ datasource_id: 'HYPERLIQUID',
48
+ product_id: req.product_id,
49
+ duration: req.duration,
50
+ created_at: formatTime(createdAtMs),
51
+ closed_at: formatTime(createdAtMs + periodMs),
52
+ open: x.o,
53
+ high: x.h,
54
+ low: x.l,
55
+ close: x.c,
56
+ volume: x.v,
57
+ open_interest: '0',
58
+ };
59
+ })
60
+ .filter((x) => Date.parse(x.created_at) < endTime);
61
+ };
62
+ provideOHLCService(terminal, {
63
+ product_id_prefix: 'HYPERLIQUID/PERPETUAL/',
64
+ duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),
65
+ direction: 'backward',
66
+ }, fetchOHLCPageBackward);
67
+ provideOHLCService(terminal, {
68
+ product_id_prefix: 'HYPERLIQUID/SPOT/',
69
+ duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),
70
+ direction: 'backward',
71
+ }, fetchOHLCPageBackward);
72
+ //# sourceMappingURL=ohlc-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ohlc-service.js","sourceRoot":"","sources":["../../src/services/ohlc-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;AAExC,MAAM,gCAAgC,GAA2B;IAC/D,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,KAAK;IACZ,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;CACV,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,MAAM,qBAAqB,GAAG,KAAK,EAAE,GAKpC,EAAoB,EAAE;IACrB,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,UAAU,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AAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC;YACnC,SAAS,EAAE,UAAU,CAAC,WAAW,GAAG,QAAQ,CAAC;YAC7C,IAAI,EAAE,CAAC,CAAC,CAAC;YACT,IAAI,EAAE,CAAC,CAAC,CAAC;YACT,GAAG,EAAE,CAAC,CAAC,CAAC;YACR,KAAK,EAAE,CAAC,CAAC,CAAC;YACV,MAAM,EAAE,CAAC,CAAC,CAAC;YACX,aAAa,EAAE,GAAG;SACnB,CAAC;IACJ,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,kBAAkB,CAChB,QAAQ,EACR;IACE,iBAAiB,EAAE,wBAAwB;IAC3C,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC;IAC5D,SAAS,EAAE,UAAU;CACtB,EACD,qBAAqB,CACtB,CAAC;AAEF,kBAAkB,CAChB,QAAQ,EACR;IACE,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC;IAC5D,SAAS,EAAE,UAAU;CACtB,EACD,qBAAqB,CACtB,CAAC","sourcesContent":["import { IOHLC } from '@yuants/data-ohlc';\nimport { provideOHLCService } from '@yuants/exchange';\nimport { Terminal } from '@yuants/protocol';\nimport { convertDurationToOffset, decodePath, formatTime } from '@yuants/utils';\nimport { getCandleSnapshot } from '../api/public-api';\n\nconst terminal = Terminal.fromNodeEnv();\n\nconst DURATION_TO_HYPERLIQUID_INTERVAL: Record<string, string> = {\n PT1M: '1m',\n PT3M: '3m',\n PT5M: '5m',\n PT15M: '15m',\n PT30M: '30m',\n PT1H: '1h',\n PT2H: '2h',\n PT4H: '4h',\n PT8H: '8h',\n PT12H: '12h',\n P1D: '1d',\n P3D: '3d',\n P1W: '1w',\n P1M: '1M',\n};\n\nconst DEFAULT_BAR_COUNT = 1000;\n\nconst fetchOHLCPageBackward = async (req: {\n product_id: string;\n duration: string;\n time: number;\n series_id: string;\n}): Promise<IOHLC[]> => {\n const [, marketType, symbol] = decodePath(req.product_id);\n if (!symbol) throw new Error(`Unsupported product_id: ${req.product_id}`);\n if (marketType !== 'PERPETUAL' && marketType !== 'SPOT') {\n throw new Error(`Unsupported product_id: ${req.product_id}`);\n }\n\n const coin = symbol.split('-')[0];\n if (!coin) throw new Error(`Invalid symbol: ${symbol}`);\n\n const interval = DURATION_TO_HYPERLIQUID_INTERVAL[req.duration];\n if (!interval) throw new Error(`Unsupported duration: ${req.duration}`);\n\n const periodMs = convertDurationToOffset(req.duration);\n const endTime = req.time;\n const startTime = Math.max(0, endTime - DEFAULT_BAR_COUNT * periodMs);\n\n const res = await getCandleSnapshot({\n req: { coin, interval, startTime, endTime },\n });\n\n return (res ?? [])\n .map((x): IOHLC => {\n const createdAtMs = x.t;\n return {\n series_id: req.series_id,\n datasource_id: 'HYPERLIQUID',\n product_id: req.product_id,\n duration: req.duration,\n created_at: formatTime(createdAtMs),\n closed_at: formatTime(createdAtMs + periodMs),\n open: x.o,\n high: x.h,\n low: x.l,\n close: x.c,\n volume: x.v,\n open_interest: '0',\n };\n })\n .filter((x) => Date.parse(x.created_at) < endTime);\n};\n\nprovideOHLCService(\n terminal,\n {\n product_id_prefix: 'HYPERLIQUID/PERPETUAL/',\n duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),\n direction: 'backward',\n },\n fetchOHLCPageBackward,\n);\n\nprovideOHLCService(\n terminal,\n {\n product_id_prefix: 'HYPERLIQUID/SPOT/',\n duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),\n direction: 'backward',\n },\n fetchOHLCPageBackward,\n);\n"]}
package/lib/index.d.ts CHANGED
@@ -4,4 +4,6 @@ import './services/markets/ohlc';
4
4
  import './services/markets/product';
5
5
  import './services/markets/quote';
6
6
  import './services/quotes';
7
+ import './services/ohlc-service';
8
+ import './services/interest-rate-service';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,kCAAkC,CAAC"}
package/lib/index.js CHANGED
@@ -6,4 +6,6 @@ require("./services/markets/ohlc");
6
6
  require("./services/markets/product");
7
7
  require("./services/markets/quote");
8
8
  require("./services/quotes");
9
+ require("./services/ohlc-service");
10
+ require("./services/interest-rate-service");
9
11
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,+BAA6B;AAC7B,4CAA0C;AAC1C,mCAAiC;AACjC,sCAAoC;AACpC,oCAAkC;AAClC,6BAA2B","sourcesContent":["import './services/exchange';\nimport './services/markets/interest-rate';\nimport './services/markets/ohlc';\nimport './services/markets/product';\nimport './services/markets/quote';\nimport './services/quotes';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,+BAA6B;AAC7B,4CAA0C;AAC1C,mCAAiC;AACjC,sCAAoC;AACpC,oCAAkC;AAClC,6BAA2B;AAC3B,mCAAiC;AACjC,4CAA0C","sourcesContent":["import './services/exchange';\nimport './services/markets/interest-rate';\nimport './services/markets/ohlc';\nimport './services/markets/product';\nimport './services/markets/quote';\nimport './services/quotes';\nimport './services/ohlc-service';\nimport './services/interest-rate-service';\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interest-rate-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interest-rate-service.d.ts","sourceRoot":"","sources":["../../src/services/interest-rate-service.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const exchange_1 = require("@yuants/exchange");
4
+ const protocol_1 = require("@yuants/protocol");
5
+ const utils_1 = require("@yuants/utils");
6
+ const public_api_1 = require("../api/public-api");
7
+ const terminal = protocol_1.Terminal.fromNodeEnv();
8
+ const WINDOW_MS = 30 * 24 * 3600000;
9
+ const fetchInterestRateBackward = async (req) => {
10
+ const [, marketType, symbol] = (0, utils_1.decodePath)(req.product_id);
11
+ if (marketType !== 'PERPETUAL' || !symbol)
12
+ throw new Error(`Unsupported product_id: ${req.product_id}`);
13
+ const coin = symbol.split('-')[0];
14
+ if (!coin)
15
+ throw new Error(`Invalid symbol: ${symbol}`);
16
+ const endTime = req.time;
17
+ const startTime = Math.max(0, endTime - WINDOW_MS);
18
+ const res = await (0, public_api_1.getHistoricalFundingRates)({ coin, startTime, endTime });
19
+ return (res !== null && res !== void 0 ? res : [])
20
+ .map((v) => {
21
+ const ms = v.time;
22
+ const rate = Number(v.fundingRate);
23
+ return {
24
+ series_id: req.series_id,
25
+ product_id: req.product_id,
26
+ datasource_id: 'HYPERLIQUID',
27
+ created_at: (0, utils_1.formatTime)(ms),
28
+ long_rate: `${-rate}`,
29
+ short_rate: `${rate}`,
30
+ settlement_price: '',
31
+ };
32
+ })
33
+ .filter((x) => Date.parse(x.created_at) < endTime);
34
+ };
35
+ (0, exchange_1.provideInterestRateService)(terminal, {
36
+ product_id_prefix: 'HYPERLIQUID/PERPETUAL/',
37
+ direction: 'backward',
38
+ }, fetchInterestRateBackward);
39
+ //# sourceMappingURL=interest-rate-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interest-rate-service.js","sourceRoot":"","sources":["../../src/services/interest-rate-service.ts"],"names":[],"mappings":";;AACA,+CAA8D;AAC9D,+CAA4C;AAC5C,yCAAuD;AACvD,kDAA8D;AAE9D,MAAM,QAAQ,GAAG,mBAAQ,CAAC,WAAW,EAAE,CAAC;AAExC,MAAM,SAAS,GAAG,EAAE,GAAG,EAAE,GAAG,OAAQ,CAAC;AAErC,MAAM,yBAAyB,GAAG,KAAK,EAAE,GAIxC,EAA4B,EAAE;IAC7B,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,GAAG,IAAA,kBAAU,EAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC1D,IAAI,UAAU,KAAK,WAAW,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;IAExG,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,EAAE,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC;IACzB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAEnD,MAAM,GAAG,GAAG,MAAM,IAAA,sCAAyB,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;IAE1E,OAAO,CAAC,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,EAAE,CAAC;SACf,GAAG,CAAC,CAAC,CAAC,EAAiB,EAAE;QACxB,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC;QAClB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QACnC,OAAO;YACL,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,aAAa,EAAE,aAAa;YAC5B,UAAU,EAAE,IAAA,kBAAU,EAAC,EAAE,CAAC;YAC1B,SAAS,EAAE,GAAG,CAAC,IAAI,EAAE;YACrB,UAAU,EAAE,GAAG,IAAI,EAAE;YACrB,gBAAgB,EAAE,EAAE;SACrB,CAAC;IACJ,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,IAAA,qCAA0B,EACxB,QAAQ,EACR;IACE,iBAAiB,EAAE,wBAAwB;IAC3C,SAAS,EAAE,UAAU;CACtB,EACD,yBAAyB,CAC1B,CAAC","sourcesContent":["import { IInterestRate } from '@yuants/data-interest-rate';\nimport { provideInterestRateService } from '@yuants/exchange';\nimport { Terminal } from '@yuants/protocol';\nimport { decodePath, formatTime } from '@yuants/utils';\nimport { getHistoricalFundingRates } from '../api/public-api';\n\nconst terminal = Terminal.fromNodeEnv();\n\nconst WINDOW_MS = 30 * 24 * 3600_000;\n\nconst fetchInterestRateBackward = async (req: {\n product_id: string;\n time: number;\n series_id: string;\n}): Promise<IInterestRate[]> => {\n const [, marketType, symbol] = decodePath(req.product_id);\n if (marketType !== 'PERPETUAL' || !symbol) throw new Error(`Unsupported product_id: ${req.product_id}`);\n\n const coin = symbol.split('-')[0];\n if (!coin) throw new Error(`Invalid symbol: ${symbol}`);\n\n const endTime = req.time;\n const startTime = Math.max(0, endTime - WINDOW_MS);\n\n const res = await getHistoricalFundingRates({ coin, startTime, endTime });\n\n return (res ?? [])\n .map((v): IInterestRate => {\n const ms = v.time;\n const rate = Number(v.fundingRate);\n return {\n series_id: req.series_id,\n product_id: req.product_id,\n datasource_id: 'HYPERLIQUID',\n created_at: formatTime(ms),\n long_rate: `${-rate}`,\n short_rate: `${rate}`,\n settlement_price: '',\n };\n })\n .filter((x) => Date.parse(x.created_at) < endTime);\n};\n\nprovideInterestRateService(\n terminal,\n {\n product_id_prefix: 'HYPERLIQUID/PERPETUAL/',\n direction: 'backward',\n },\n fetchInterestRateBackward,\n);\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ohlc-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ohlc-service.d.ts","sourceRoot":"","sources":["../../src/services/ohlc-service.ts"],"names":[],"mappings":""}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const exchange_1 = require("@yuants/exchange");
4
+ const protocol_1 = require("@yuants/protocol");
5
+ const utils_1 = require("@yuants/utils");
6
+ const public_api_1 = require("../api/public-api");
7
+ const terminal = protocol_1.Terminal.fromNodeEnv();
8
+ const DURATION_TO_HYPERLIQUID_INTERVAL = {
9
+ PT1M: '1m',
10
+ PT3M: '3m',
11
+ PT5M: '5m',
12
+ PT15M: '15m',
13
+ PT30M: '30m',
14
+ PT1H: '1h',
15
+ PT2H: '2h',
16
+ PT4H: '4h',
17
+ PT8H: '8h',
18
+ PT12H: '12h',
19
+ P1D: '1d',
20
+ P3D: '3d',
21
+ P1W: '1w',
22
+ P1M: '1M',
23
+ };
24
+ const DEFAULT_BAR_COUNT = 1000;
25
+ const fetchOHLCPageBackward = async (req) => {
26
+ const [, marketType, symbol] = (0, utils_1.decodePath)(req.product_id);
27
+ if (!symbol)
28
+ throw new Error(`Unsupported product_id: ${req.product_id}`);
29
+ if (marketType !== 'PERPETUAL' && marketType !== 'SPOT') {
30
+ throw new Error(`Unsupported product_id: ${req.product_id}`);
31
+ }
32
+ const coin = symbol.split('-')[0];
33
+ if (!coin)
34
+ throw new Error(`Invalid symbol: ${symbol}`);
35
+ const interval = DURATION_TO_HYPERLIQUID_INTERVAL[req.duration];
36
+ if (!interval)
37
+ throw new Error(`Unsupported duration: ${req.duration}`);
38
+ const periodMs = (0, utils_1.convertDurationToOffset)(req.duration);
39
+ const endTime = req.time;
40
+ const startTime = Math.max(0, endTime - DEFAULT_BAR_COUNT * periodMs);
41
+ const res = await (0, public_api_1.getCandleSnapshot)({
42
+ req: { coin, interval, startTime, endTime },
43
+ });
44
+ return (res !== null && res !== void 0 ? res : [])
45
+ .map((x) => {
46
+ const createdAtMs = x.t;
47
+ return {
48
+ series_id: req.series_id,
49
+ datasource_id: 'HYPERLIQUID',
50
+ product_id: req.product_id,
51
+ duration: req.duration,
52
+ created_at: (0, utils_1.formatTime)(createdAtMs),
53
+ closed_at: (0, utils_1.formatTime)(createdAtMs + periodMs),
54
+ open: x.o,
55
+ high: x.h,
56
+ low: x.l,
57
+ close: x.c,
58
+ volume: x.v,
59
+ open_interest: '0',
60
+ };
61
+ })
62
+ .filter((x) => Date.parse(x.created_at) < endTime);
63
+ };
64
+ (0, exchange_1.provideOHLCService)(terminal, {
65
+ product_id_prefix: 'HYPERLIQUID/PERPETUAL/',
66
+ duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),
67
+ direction: 'backward',
68
+ }, fetchOHLCPageBackward);
69
+ (0, exchange_1.provideOHLCService)(terminal, {
70
+ product_id_prefix: 'HYPERLIQUID/SPOT/',
71
+ duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),
72
+ direction: 'backward',
73
+ }, fetchOHLCPageBackward);
74
+ //# sourceMappingURL=ohlc-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ohlc-service.js","sourceRoot":"","sources":["../../src/services/ohlc-service.ts"],"names":[],"mappings":";;AACA,+CAAsD;AACtD,+CAA4C;AAC5C,yCAAgF;AAChF,kDAAsD;AAEtD,MAAM,QAAQ,GAAG,mBAAQ,CAAC,W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AAE,UAAU;CACtB,EACD,qBAAqB,CACtB,CAAC;AAEF,IAAA,6BAAkB,EAChB,QAAQ,EACR;IACE,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC;IAC5D,SAAS,EAAE,UAAU;CACtB,EACD,qBAAqB,CACtB,CAAC","sourcesContent":["import { IOHLC } from '@yuants/data-ohlc';\nimport { provideOHLCService } from '@yuants/exchange';\nimport { Terminal } from '@yuants/protocol';\nimport { convertDurationToOffset, decodePath, formatTime } from '@yuants/utils';\nimport { getCandleSnapshot } from '../api/public-api';\n\nconst terminal = Terminal.fromNodeEnv();\n\nconst DURATION_TO_HYPERLIQUID_INTERVAL: Record<string, string> = {\n PT1M: '1m',\n PT3M: '3m',\n PT5M: '5m',\n PT15M: '15m',\n PT30M: '30m',\n PT1H: '1h',\n PT2H: '2h',\n PT4H: '4h',\n PT8H: '8h',\n PT12H: '12h',\n P1D: '1d',\n P3D: '3d',\n P1W: '1w',\n P1M: '1M',\n};\n\nconst DEFAULT_BAR_COUNT = 1000;\n\nconst fetchOHLCPageBackward = async (req: {\n product_id: string;\n duration: string;\n time: number;\n series_id: string;\n}): Promise<IOHLC[]> => {\n const [, marketType, symbol] = decodePath(req.product_id);\n if (!symbol) throw new Error(`Unsupported product_id: ${req.product_id}`);\n if (marketType !== 'PERPETUAL' && marketType !== 'SPOT') {\n throw new Error(`Unsupported product_id: ${req.product_id}`);\n }\n\n const coin = symbol.split('-')[0];\n if (!coin) throw new Error(`Invalid symbol: ${symbol}`);\n\n const interval = DURATION_TO_HYPERLIQUID_INTERVAL[req.duration];\n if (!interval) throw new Error(`Unsupported duration: ${req.duration}`);\n\n const periodMs = convertDurationToOffset(req.duration);\n const endTime = req.time;\n const startTime = Math.max(0, endTime - DEFAULT_BAR_COUNT * periodMs);\n\n const res = await getCandleSnapshot({\n req: { coin, interval, startTime, endTime },\n });\n\n return (res ?? [])\n .map((x): IOHLC => {\n const createdAtMs = x.t;\n return {\n series_id: req.series_id,\n datasource_id: 'HYPERLIQUID',\n product_id: req.product_id,\n duration: req.duration,\n created_at: formatTime(createdAtMs),\n closed_at: formatTime(createdAtMs + periodMs),\n open: x.o,\n high: x.h,\n low: x.l,\n close: x.c,\n volume: x.v,\n open_interest: '0',\n };\n })\n .filter((x) => Date.parse(x.created_at) < endTime);\n};\n\nprovideOHLCService(\n terminal,\n {\n product_id_prefix: 'HYPERLIQUID/PERPETUAL/',\n duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),\n direction: 'backward',\n },\n fetchOHLCPageBackward,\n);\n\nprovideOHLCService(\n terminal,\n {\n product_id_prefix: 'HYPERLIQUID/SPOT/',\n duration_list: Object.keys(DURATION_TO_HYPERLIQUID_INTERVAL),\n direction: 'backward',\n },\n fetchOHLCPageBackward,\n);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuants/vendor-hyperliquid",
3
- "version": "0.8.4",
3
+ "version": "0.9.0",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -19,7 +19,7 @@
19
19
  "@yuants/data-order": "0.7.1",
20
20
  "@yuants/data-series": "0.3.53",
21
21
  "@yuants/data-quote": "0.4.0",
22
- "@yuants/exchange": "0.8.0",
22
+ "@yuants/exchange": "0.8.1",
23
23
  "rxjs": "~7.5.6",
24
24
  "hyperliquid": "~1.6.2",
25
25
  "ethers": "~6.13.5",
@@ -1,28 +1,30 @@
1
1
  {
2
2
  "apps/vendor-hyperliquid/AGENTS.md": "f0f3df594ce55fbaf78fb040f2850d1abee3449a",
3
- "apps/vendor-hyperliquid/CHANGELOG.json": "9fdd99a10c7e8672853fd92ff7763b2419382cca",
4
- "apps/vendor-hyperliquid/CHANGELOG.md": "9cc836b5e92d4b3371db6cf68f5c59106e96ae7c",
3
+ "apps/vendor-hyperliquid/CHANGELOG.json": "de944483fbd0b77b7fe622c0883f54aebc210a06",
4
+ "apps/vendor-hyperliquid/CHANGELOG.md": "431f91e6bc7308cde09c270ec93ecea333a20df8",
5
5
  "apps/vendor-hyperliquid/SESSION_NOTES.md": "5969eb7dceb736977bf0b36aa24f5cc1f5585656",
6
6
  "apps/vendor-hyperliquid/api-extractor.json": "62f4fd324425b9a235f0c117975967aab09ced0c",
7
7
  "apps/vendor-hyperliquid/config/jest.config.json": "4bb17bde3ee911163a3edb36a6eb71491d80b1bd",
8
8
  "apps/vendor-hyperliquid/config/rig.json": "f6c7b5537dc77a3170ba9f008bae3b6c3ee11956",
9
9
  "apps/vendor-hyperliquid/config/typescript.json": "854907e8a821f2050f6533368db160c649c25348",
10
10
  "apps/vendor-hyperliquid/etc/vendor-hyperliquid.api.md": "66675bd88afa1fe945f0d4023984c1c9c3e60a34",
11
- "apps/vendor-hyperliquid/package.json": "cb83382641fff6ea3768e24d002db62037ec30b1",
11
+ "apps/vendor-hyperliquid/package.json": "c0763d52f23032dd6b7de4acc8c003bfe285d222",
12
12
  "apps/vendor-hyperliquid/src/api/client.ts": "90eb3b63394c9729cc442e0ee5482bfd494aafdd",
13
13
  "apps/vendor-hyperliquid/src/api/private-api.ts": "8fd176063af8f345aeab94444850e82979cef680",
14
14
  "apps/vendor-hyperliquid/src/api/public-api.ts": "fbbb982308eea89a51b93cc21442de6ba45cfd60",
15
15
  "apps/vendor-hyperliquid/src/api/sign.ts": "94f4e5604a01d197d164b42415b17789ab2b6889",
16
16
  "apps/vendor-hyperliquid/src/api/types.ts": "70347eb8b5e691770073dd043788ed5fae0c3eb4",
17
17
  "apps/vendor-hyperliquid/src/cli.ts": "9bf6b5559a6c6f33da20e74cc6c5d702c60ec891",
18
- "apps/vendor-hyperliquid/src/index.ts": "d24b62ce1d70813b9b49b2a427c74ccce85fd545",
18
+ "apps/vendor-hyperliquid/src/index.ts": "3465b7797a0b49e2b0ff29467220e47bb587dcb6",
19
19
  "apps/vendor-hyperliquid/src/services/accounts/perp.ts": "ee8784d7331889b97069d5b3f452340b2e19ee55",
20
20
  "apps/vendor-hyperliquid/src/services/accounts/spot.ts": "814857d05bdda34ca7827fc69c2564db1f5f5d3d",
21
21
  "apps/vendor-hyperliquid/src/services/exchange.ts": "e36dcefff1e239e6b44c7ea1aa0632f59cbce653",
22
+ "apps/vendor-hyperliquid/src/services/interest-rate-service.ts": "5eb252b2b33552f3c70a82b39b7a85927ceebeac",
22
23
  "apps/vendor-hyperliquid/src/services/markets/interest-rate.ts": "a93246729016cbe8486bc45b5a00aff57fab07ec",
23
24
  "apps/vendor-hyperliquid/src/services/markets/ohlc.ts": "6cea84e64ff68ef3a760b35d2e637b66a1ca1615",
24
25
  "apps/vendor-hyperliquid/src/services/markets/product.ts": "406d7686f062288a63bcc2aa3146b0f0942ad724",
25
26
  "apps/vendor-hyperliquid/src/services/markets/quote.ts": "9f7391d6253a1ff46cab63567a708954efde4f88",
27
+ "apps/vendor-hyperliquid/src/services/ohlc-service.ts": "61cd4b3c4980b070a2cc38a90efd1d5a236fb2ad",
26
28
  "apps/vendor-hyperliquid/src/services/orders/cancelOrder.ts": "eeb8b166a712c64df45873b83b0587238c249992",
27
29
  "apps/vendor-hyperliquid/src/services/orders/listOrders.ts": "9ffd16181d23d98d5397e76b0a3f63f2bf7792ce",
28
30
  "apps/vendor-hyperliquid/src/services/orders/modifyOrder.ts": "01fc9d965578f216f6e5beae4e52f7640c1d4a28",
@@ -42,7 +44,7 @@
42
44
  "libraries/data-order/temp/package-deps.json": "8aa3e27ff80629d417bfe920e85d8525fbb52f42",
43
45
  "libraries/data-series/temp/package-deps.json": "a94e2f373c448a6205ee6c47e41d9283a76ee352",
44
46
  "libraries/data-quote/temp/package-deps.json": "c2f009f818a503342bef588da21c9abd52beea00",
45
- "libraries/exchange/temp/package-deps.json": "98f6e1318166102a07cf64b69399b35cb4575222",
47
+ "libraries/exchange/temp/package-deps.json": "0f0549ddf97292ceadb8c3cbcc8799e31e7a0901",
46
48
  "libraries/data-ohlc/temp/package-deps.json": "8415ee90c49d7e84faaa2565cc1122fdacf73dab",
47
49
  "libraries/extension/temp/package-deps.json": "3e0a81b0c863c2daf342dfaf284b8fd7d18c8562",
48
50
  "tools/toolkit/temp/package-deps.json": "23e053490eb8feade23e4d45de4e54883e322711"