@yuants/vendor-binance 0.10.22 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,4 +3,5 @@ import './public-data/ohlc';
3
3
  import './public-data/product';
4
4
  import './public-data/quote';
5
5
  import './services/exchange';
6
+ import './services/quotes';
6
7
  //# 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,6BAA6B,CAAC;AACrC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC","sourcesContent":["import './public-data/interest_rate';\nimport './public-data/ohlc';\nimport './public-data/product';\nimport './public-data/quote';\nimport './services/exchange';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC","sourcesContent":["import './public-data/interest_rate';\nimport './public-data/ohlc';\nimport './public-data/product';\nimport './public-data/quote';\nimport './services/exchange';\nimport './services/quotes';\n"]}
@@ -0,0 +1,114 @@
1
+ import { provideQuoteService } from '@yuants/exchange';
2
+ import { Terminal } from '@yuants/protocol';
3
+ import { decodePath, encodePath, formatTime } from '@yuants/utils';
4
+ import { getFutureBookTicker, getFutureOpenInterest, getFuturePremiumIndex, getSpotBookTicker, getSpotTickerPrice, } from '../api/public-api';
5
+ const terminal = Terminal.fromNodeEnv();
6
+ provideQuoteService(terminal, {
7
+ product_id_prefix: 'BINANCE/USDT-FUTURE/',
8
+ fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],
9
+ }, async (req) => {
10
+ const entries = await getFutureBookTicker({});
11
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => {
12
+ var _a;
13
+ return ({
14
+ product_id: encodePath('BINANCE', 'USDT-FUTURE', entry.symbol),
15
+ updated_at: (_a = entry.time) !== null && _a !== void 0 ? _a : Date.now(),
16
+ bid_price: entry.bidPrice,
17
+ ask_price: entry.askPrice,
18
+ bid_volume: entry.bidQty,
19
+ ask_volume: entry.askQty,
20
+ });
21
+ });
22
+ });
23
+ provideQuoteService(terminal, {
24
+ product_id_prefix: 'BINANCE/USDT-FUTURE/',
25
+ fields: ['last_price', 'interest_rate_long', 'interest_rate_short', 'interest_rate_next_settled_at'],
26
+ }, async () => {
27
+ const entries = await getFuturePremiumIndex({});
28
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => {
29
+ var _a;
30
+ return ({
31
+ product_id: encodePath('BINANCE', 'USDT-FUTURE', entry.symbol),
32
+ updated_at: (_a = entry.time) !== null && _a !== void 0 ? _a : Date.now(),
33
+ last_price: entry.markPrice,
34
+ interest_rate_long: `${-Number(entry.lastFundingRate)}`,
35
+ interest_rate_short: `${Number(entry.lastFundingRate)}`,
36
+ interest_rate_next_settled_at: formatTime(entry.nextFundingTime),
37
+ });
38
+ });
39
+ });
40
+ provideQuoteService(terminal, {
41
+ product_id_prefix: 'BINANCE/USDT-FUTURE/',
42
+ fields: ['open_interest'],
43
+ max_products_per_request: 1,
44
+ }, async (req) => {
45
+ const [product_id] = req.product_ids;
46
+ if (!product_id)
47
+ return [];
48
+ const [, , symbol] = decodePath(product_id);
49
+ const res = await getFutureOpenInterest({ symbol });
50
+ return [
51
+ {
52
+ product_id,
53
+ updated_at: res.time,
54
+ open_interest: res.openInterest,
55
+ },
56
+ ];
57
+ });
58
+ provideQuoteService(terminal, {
59
+ product_id_prefix: 'BINANCE/SPOT/',
60
+ fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],
61
+ }, async (req) => {
62
+ const entries = await getSpotBookTicker({});
63
+ const updated_at = Date.now();
64
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => ({
65
+ product_id: encodePath('BINANCE', 'SPOT', entry.symbol),
66
+ updated_at,
67
+ bid_price: entry.bidPrice,
68
+ ask_price: entry.askPrice,
69
+ bid_volume: entry.bidQty,
70
+ ask_volume: entry.askQty,
71
+ }));
72
+ });
73
+ provideQuoteService(terminal, {
74
+ product_id_prefix: 'BINANCE/MARGIN/',
75
+ fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],
76
+ }, async (req) => {
77
+ const entries = await getSpotBookTicker({});
78
+ const updated_at = Date.now();
79
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => ({
80
+ product_id: encodePath('BINANCE', 'MARGIN', entry.symbol),
81
+ updated_at,
82
+ bid_price: entry.bidPrice,
83
+ ask_price: entry.askPrice,
84
+ bid_volume: entry.bidQty,
85
+ ask_volume: entry.askQty,
86
+ }));
87
+ });
88
+ provideQuoteService(terminal, {
89
+ product_id_prefix: 'BINANCE/SPOT/',
90
+ fields: ['last_price'],
91
+ }, async (req) => {
92
+ const res = await getSpotTickerPrice({});
93
+ const entries = Array.isArray(res) ? res : [res];
94
+ const updated_at = Date.now();
95
+ return entries.map((entry) => ({
96
+ product_id: encodePath('BINANCE', 'SPOT', entry.symbol),
97
+ updated_at,
98
+ last_price: entry.price,
99
+ }));
100
+ });
101
+ provideQuoteService(terminal, {
102
+ product_id_prefix: 'BINANCE/MARGIN/',
103
+ fields: ['last_price'],
104
+ }, async (req) => {
105
+ const res = await getSpotTickerPrice({});
106
+ const entries = Array.isArray(res) ? res : [res];
107
+ const updated_at = Date.now();
108
+ return entries.map((entry) => ({
109
+ product_id: encodePath('BINANCE', 'MARGIN', entry.symbol),
110
+ updated_at,
111
+ last_price: entry.price,
112
+ }));
113
+ });
114
+ //# sourceMappingURL=quotes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src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AAC,CAAC;QAC7B,UAAU,EAAE,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC;QACzD,UAAU;QACV,UAAU,EAAE,KAAK,CAAC,KAAK;KACxB,CAAC,CAAC,CAAC;AACN,CAAC,CACF,CAAC","sourcesContent":["import { provideQuoteService } from '@yuants/exchange';\nimport { Terminal } from '@yuants/protocol';\nimport { decodePath, encodePath, formatTime } from '@yuants/utils';\nimport {\n getFutureBookTicker,\n getFutureOpenInterest,\n getFuturePremiumIndex,\n getSpotBookTicker,\n getSpotTickerPrice,\n} from '../api/public-api';\n\nconst terminal = Terminal.fromNodeEnv();\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/USDT-FUTURE/',\n fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],\n },\n async (req) => {\n const entries = await getFutureBookTicker({});\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'USDT-FUTURE', entry.symbol),\n updated_at: entry.time ?? Date.now(),\n bid_price: entry.bidPrice,\n ask_price: entry.askPrice,\n bid_volume: entry.bidQty,\n ask_volume: entry.askQty,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/USDT-FUTURE/',\n fields: ['last_price', 'interest_rate_long', 'interest_rate_short', 'interest_rate_next_settled_at'],\n },\n async () => {\n const entries = await getFuturePremiumIndex({});\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'USDT-FUTURE', entry.symbol),\n updated_at: entry.time ?? Date.now(),\n last_price: entry.markPrice,\n interest_rate_long: `${-Number(entry.lastFundingRate)}`,\n interest_rate_short: `${Number(entry.lastFundingRate)}`,\n interest_rate_next_settled_at: formatTime(entry.nextFundingTime),\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/USDT-FUTURE/',\n fields: ['open_interest'],\n max_products_per_request: 1,\n },\n async (req) => {\n const [product_id] = req.product_ids;\n if (!product_id) return [];\n\n const [, , symbol] = decodePath(product_id);\n\n const res = await getFutureOpenInterest({ symbol });\n return [\n {\n product_id,\n updated_at: res.time,\n open_interest: res.openInterest,\n },\n ];\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/SPOT/',\n fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],\n },\n async (req) => {\n const entries = await getSpotBookTicker({});\n const updated_at = Date.now();\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'SPOT', entry.symbol),\n updated_at,\n bid_price: entry.bidPrice,\n ask_price: entry.askPrice,\n bid_volume: entry.bidQty,\n ask_volume: entry.askQty,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/MARGIN/',\n fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],\n },\n async (req) => {\n const entries = await getSpotBookTicker({});\n const updated_at = Date.now();\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'MARGIN', entry.symbol),\n updated_at,\n bid_price: entry.bidPrice,\n ask_price: entry.askPrice,\n bid_volume: entry.bidQty,\n ask_volume: entry.askQty,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/SPOT/',\n fields: ['last_price'],\n },\n async (req) => {\n const res = await getSpotTickerPrice({});\n const entries = Array.isArray(res) ? res : [res];\n const updated_at = Date.now();\n return entries.map((entry) => ({\n product_id: encodePath('BINANCE', 'SPOT', entry.symbol),\n updated_at,\n last_price: entry.price,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/MARGIN/',\n fields: ['last_price'],\n },\n async (req) => {\n const res = await getSpotTickerPrice({});\n const entries = Array.isArray(res) ? res : [res];\n const updated_at = Date.now();\n return entries.map((entry) => ({\n product_id: encodePath('BINANCE', 'MARGIN', entry.symbol),\n updated_at,\n last_price: entry.price,\n }));\n },\n);\n"]}
package/lib/index.d.ts CHANGED
@@ -3,4 +3,5 @@ import './public-data/ohlc';
3
3
  import './public-data/product';
4
4
  import './public-data/quote';
5
5
  import './services/exchange';
6
+ import './services/quotes';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC"}
package/lib/index.js CHANGED
@@ -5,4 +5,5 @@ require("./public-data/ohlc");
5
5
  require("./public-data/product");
6
6
  require("./public-data/quote");
7
7
  require("./services/exchange");
8
+ require("./services/quotes");
8
9
  //# 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,uCAAqC;AACrC,8BAA4B;AAC5B,iCAA+B;AAC/B,+BAA6B;AAC7B,+BAA6B","sourcesContent":["import './public-data/interest_rate';\nimport './public-data/ohlc';\nimport './public-data/product';\nimport './public-data/quote';\nimport './services/exchange';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,uCAAqC;AACrC,8BAA4B;AAC5B,iCAA+B;AAC/B,+BAA6B;AAC7B,+BAA6B;AAC7B,6BAA2B","sourcesContent":["import './public-data/interest_rate';\nimport './public-data/ohlc';\nimport './public-data/product';\nimport './public-data/quote';\nimport './services/exchange';\nimport './services/quotes';\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=quotes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../src/services/quotes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,116 @@
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
+ (0, exchange_1.provideQuoteService)(terminal, {
9
+ product_id_prefix: 'BINANCE/USDT-FUTURE/',
10
+ fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],
11
+ }, async (req) => {
12
+ const entries = await (0, public_api_1.getFutureBookTicker)({});
13
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => {
14
+ var _a;
15
+ return ({
16
+ product_id: (0, utils_1.encodePath)('BINANCE', 'USDT-FUTURE', entry.symbol),
17
+ updated_at: (_a = entry.time) !== null && _a !== void 0 ? _a : Date.now(),
18
+ bid_price: entry.bidPrice,
19
+ ask_price: entry.askPrice,
20
+ bid_volume: entry.bidQty,
21
+ ask_volume: entry.askQty,
22
+ });
23
+ });
24
+ });
25
+ (0, exchange_1.provideQuoteService)(terminal, {
26
+ product_id_prefix: 'BINANCE/USDT-FUTURE/',
27
+ fields: ['last_price', 'interest_rate_long', 'interest_rate_short', 'interest_rate_next_settled_at'],
28
+ }, async () => {
29
+ const entries = await (0, public_api_1.getFuturePremiumIndex)({});
30
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => {
31
+ var _a;
32
+ return ({
33
+ product_id: (0, utils_1.encodePath)('BINANCE', 'USDT-FUTURE', entry.symbol),
34
+ updated_at: (_a = entry.time) !== null && _a !== void 0 ? _a : Date.now(),
35
+ last_price: entry.markPrice,
36
+ interest_rate_long: `${-Number(entry.lastFundingRate)}`,
37
+ interest_rate_short: `${Number(entry.lastFundingRate)}`,
38
+ interest_rate_next_settled_at: (0, utils_1.formatTime)(entry.nextFundingTime),
39
+ });
40
+ });
41
+ });
42
+ (0, exchange_1.provideQuoteService)(terminal, {
43
+ product_id_prefix: 'BINANCE/USDT-FUTURE/',
44
+ fields: ['open_interest'],
45
+ max_products_per_request: 1,
46
+ }, async (req) => {
47
+ const [product_id] = req.product_ids;
48
+ if (!product_id)
49
+ return [];
50
+ const [, , symbol] = (0, utils_1.decodePath)(product_id);
51
+ const res = await (0, public_api_1.getFutureOpenInterest)({ symbol });
52
+ return [
53
+ {
54
+ product_id,
55
+ updated_at: res.time,
56
+ open_interest: res.openInterest,
57
+ },
58
+ ];
59
+ });
60
+ (0, exchange_1.provideQuoteService)(terminal, {
61
+ product_id_prefix: 'BINANCE/SPOT/',
62
+ fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],
63
+ }, async (req) => {
64
+ const entries = await (0, public_api_1.getSpotBookTicker)({});
65
+ const updated_at = Date.now();
66
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => ({
67
+ product_id: (0, utils_1.encodePath)('BINANCE', 'SPOT', entry.symbol),
68
+ updated_at,
69
+ bid_price: entry.bidPrice,
70
+ ask_price: entry.askPrice,
71
+ bid_volume: entry.bidQty,
72
+ ask_volume: entry.askQty,
73
+ }));
74
+ });
75
+ (0, exchange_1.provideQuoteService)(terminal, {
76
+ product_id_prefix: 'BINANCE/MARGIN/',
77
+ fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],
78
+ }, async (req) => {
79
+ const entries = await (0, public_api_1.getSpotBookTicker)({});
80
+ const updated_at = Date.now();
81
+ return (entries !== null && entries !== void 0 ? entries : []).map((entry) => ({
82
+ product_id: (0, utils_1.encodePath)('BINANCE', 'MARGIN', entry.symbol),
83
+ updated_at,
84
+ bid_price: entry.bidPrice,
85
+ ask_price: entry.askPrice,
86
+ bid_volume: entry.bidQty,
87
+ ask_volume: entry.askQty,
88
+ }));
89
+ });
90
+ (0, exchange_1.provideQuoteService)(terminal, {
91
+ product_id_prefix: 'BINANCE/SPOT/',
92
+ fields: ['last_price'],
93
+ }, async (req) => {
94
+ const res = await (0, public_api_1.getSpotTickerPrice)({});
95
+ const entries = Array.isArray(res) ? res : [res];
96
+ const updated_at = Date.now();
97
+ return entries.map((entry) => ({
98
+ product_id: (0, utils_1.encodePath)('BINANCE', 'SPOT', entry.symbol),
99
+ updated_at,
100
+ last_price: entry.price,
101
+ }));
102
+ });
103
+ (0, exchange_1.provideQuoteService)(terminal, {
104
+ product_id_prefix: 'BINANCE/MARGIN/',
105
+ fields: ['last_price'],
106
+ }, async (req) => {
107
+ const res = await (0, public_api_1.getSpotTickerPrice)({});
108
+ const entries = Array.isArray(res) ? res : [res];
109
+ const updated_at = Date.now();
110
+ return entries.map((entry) => ({
111
+ product_id: (0, utils_1.encodePath)('BINANCE', 'MARGIN', entry.symbol),
112
+ updated_at,
113
+ last_price: entry.price,
114
+ }));
115
+ });
116
+ //# sourceMappingURL=quotes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/services/quotes.ts"],"names":[],"mappings":";;AAAA,+CAAuD;AACvD,+CAA4C;AAC5C,yCAAmE;AACnE,kDAM2B;AAE3B,MAAM,QAAQ,GAAG,mBAAQ,CAAC,WAAW,EAAE,CAAC;AAExC,IAAA,8BAAmB,EACjB,QAAQ,EACR;IACE,iBAAiB,EAAE,sBAAsB;IACzC,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,CAAC;CAC/D,EACD,KAAK,EAAE,GAAG,EAAE,EAAE;IACZ,MAAM,OAAO,GAAG,MAAM,IAAA,gCAAmB,EAAC,EAAE,CAAC,CAAC;IAC9C,OAAO,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE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AC,CAAC;QAC7B,UAAU,EAAE,IAAA,kBAAU,EAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACvD,UAAU;QACV,UAAU,EAAE,KAAK,CAAC,KAAK;KACxB,CAAC,CAAC,CAAC;AACN,CAAC,CACF,CAAC;AAEF,IAAA,8BAAmB,EACjB,QAAQ,EACR;IACE,iBAAiB,EAAE,iBAAiB;IACpC,MAAM,EAAE,CAAC,YAAY,CAAC;CACvB,EACD,KAAK,EAAE,GAAG,EAAE,EAAE;IACZ,MAAM,GAAG,GAAG,MAAM,IAAA,+BAAkB,EAAC,EAAE,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC7B,UAAU,EAAE,IAAA,kBAAU,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC;QACzD,UAAU;QACV,UAAU,EAAE,KAAK,CAAC,KAAK;KACxB,CAAC,CAAC,CAAC;AACN,CAAC,CACF,CAAC","sourcesContent":["import { provideQuoteService } from '@yuants/exchange';\nimport { Terminal } from '@yuants/protocol';\nimport { decodePath, encodePath, formatTime } from '@yuants/utils';\nimport {\n getFutureBookTicker,\n getFutureOpenInterest,\n getFuturePremiumIndex,\n getSpotBookTicker,\n getSpotTickerPrice,\n} from '../api/public-api';\n\nconst terminal = Terminal.fromNodeEnv();\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/USDT-FUTURE/',\n fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],\n },\n async (req) => {\n const entries = await getFutureBookTicker({});\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'USDT-FUTURE', entry.symbol),\n updated_at: entry.time ?? Date.now(),\n bid_price: entry.bidPrice,\n ask_price: entry.askPrice,\n bid_volume: entry.bidQty,\n ask_volume: entry.askQty,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/USDT-FUTURE/',\n fields: ['last_price', 'interest_rate_long', 'interest_rate_short', 'interest_rate_next_settled_at'],\n },\n async () => {\n const entries = await getFuturePremiumIndex({});\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'USDT-FUTURE', entry.symbol),\n updated_at: entry.time ?? Date.now(),\n last_price: entry.markPrice,\n interest_rate_long: `${-Number(entry.lastFundingRate)}`,\n interest_rate_short: `${Number(entry.lastFundingRate)}`,\n interest_rate_next_settled_at: formatTime(entry.nextFundingTime),\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/USDT-FUTURE/',\n fields: ['open_interest'],\n max_products_per_request: 1,\n },\n async (req) => {\n const [product_id] = req.product_ids;\n if (!product_id) return [];\n\n const [, , symbol] = decodePath(product_id);\n\n const res = await getFutureOpenInterest({ symbol });\n return [\n {\n product_id,\n updated_at: res.time,\n open_interest: res.openInterest,\n },\n ];\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/SPOT/',\n fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],\n },\n async (req) => {\n const entries = await getSpotBookTicker({});\n const updated_at = Date.now();\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'SPOT', entry.symbol),\n updated_at,\n bid_price: entry.bidPrice,\n ask_price: entry.askPrice,\n bid_volume: entry.bidQty,\n ask_volume: entry.askQty,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/MARGIN/',\n fields: ['bid_price', 'ask_price', 'bid_volume', 'ask_volume'],\n },\n async (req) => {\n const entries = await getSpotBookTicker({});\n const updated_at = Date.now();\n return (entries ?? []).map((entry) => ({\n product_id: encodePath('BINANCE', 'MARGIN', entry.symbol),\n updated_at,\n bid_price: entry.bidPrice,\n ask_price: entry.askPrice,\n bid_volume: entry.bidQty,\n ask_volume: entry.askQty,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/SPOT/',\n fields: ['last_price'],\n },\n async (req) => {\n const res = await getSpotTickerPrice({});\n const entries = Array.isArray(res) ? res : [res];\n const updated_at = Date.now();\n return entries.map((entry) => ({\n product_id: encodePath('BINANCE', 'SPOT', entry.symbol),\n updated_at,\n last_price: entry.price,\n }));\n },\n);\n\nprovideQuoteService(\n terminal,\n {\n product_id_prefix: 'BINANCE/MARGIN/',\n fields: ['last_price'],\n },\n async (req) => {\n const res = await getSpotTickerPrice({});\n const entries = Array.isArray(res) ? res : [res];\n const updated_at = Date.now();\n return entries.map((entry) => ({\n product_id: encodePath('BINANCE', 'MARGIN', entry.symbol),\n updated_at,\n last_price: entry.price,\n }));\n },\n);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuants/vendor-binance",
3
- "version": "0.10.22",
3
+ "version": "0.11.1",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -8,19 +8,19 @@
8
8
  "temp"
9
9
  ],
10
10
  "dependencies": {
11
- "@yuants/protocol": "0.53.2",
12
- "@yuants/data-account": "0.10.1",
13
- "@yuants/cache": "0.3.3",
14
- "@yuants/data-quote": "0.3.0",
15
- "@yuants/utils": "0.14.0",
16
- "@yuants/data-series": "0.3.52",
17
- "@yuants/sql": "0.9.30",
18
- "@yuants/data-product": "0.5.0",
19
- "@yuants/data-ohlc": "0.4.22",
20
- "@yuants/data-order": "0.7.0",
21
- "@yuants/data-interest-rate": "0.1.48",
22
- "@yuants/transfer": "0.2.39",
23
- "@yuants/exchange": "0.6.0",
11
+ "@yuants/protocol": "0.53.3",
12
+ "@yuants/data-account": "0.10.2",
13
+ "@yuants/cache": "0.3.4",
14
+ "@yuants/data-quote": "0.3.1",
15
+ "@yuants/utils": "0.15.0",
16
+ "@yuants/data-series": "0.3.53",
17
+ "@yuants/sql": "0.9.31",
18
+ "@yuants/data-product": "0.5.1",
19
+ "@yuants/data-ohlc": "0.4.23",
20
+ "@yuants/data-order": "0.7.1",
21
+ "@yuants/data-interest-rate": "0.1.49",
22
+ "@yuants/transfer": "0.2.40",
23
+ "@yuants/exchange": "0.6.1",
24
24
  "rxjs": "~7.5.6"
25
25
  },
26
26
  "devDependencies": {
@@ -30,7 +30,7 @@
30
30
  "@rushstack/heft-node-rig": "~1.10.7",
31
31
  "@types/heft-jest": "1.0.3",
32
32
  "@types/node": "22",
33
- "@yuants/extension": "0.2.31",
33
+ "@yuants/extension": "0.2.32",
34
34
  "@yuants/tool-kit": "0.2.1",
35
35
  "typescript": "~4.7.4",
36
36
  "ts-node": "~10.9.2"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "apps/vendor-binance/AGENTS.md": "378369925bffa237cd5e8ef459fe2bc2a141337c",
3
- "apps/vendor-binance/CHANGELOG.json": "482ecf78ddf5881869969af58c185f518f3da570",
4
- "apps/vendor-binance/CHANGELOG.md": "99803e725eb29bcf62df7a4d9ba8b7ab30a36717",
3
+ "apps/vendor-binance/CHANGELOG.json": "7fe920b09e77f34b6b5e2fd13eb53a798856b3e6",
4
+ "apps/vendor-binance/CHANGELOG.md": "6f3ab8f21975a3539cec7a7c0f56f4d7570adc76",
5
5
  "apps/vendor-binance/README.md": "4ab94c08b3d07398aee74c3264a4f87d554d20fa",
6
6
  "apps/vendor-binance/SESSION_NOTES.md": "dd49b3364394c502fdcaf687ed5942811d89abe9",
7
7
  "apps/vendor-binance/api-extractor.json": "62f4fd324425b9a235f0c117975967aab09ced0c",
@@ -9,11 +9,11 @@
9
9
  "apps/vendor-binance/config/rig.json": "f6c7b5537dc77a3170ba9f008bae3b6c3ee11956",
10
10
  "apps/vendor-binance/config/typescript.json": "854907e8a821f2050f6533368db160c649c25348",
11
11
  "apps/vendor-binance/etc/vendor-binance.api.md": "2094b84e9b5e7503f5c42b31fffee8d7db47fe7b",
12
- "apps/vendor-binance/package.json": "d11c7a98eea5643e3598dde832a0970cc82d4f73",
12
+ "apps/vendor-binance/package.json": "4716661a394c1884b4e2093ff54dcff600b6784e",
13
13
  "apps/vendor-binance/src/api/client.ts": "fab85d85d10577f0b6430a551dab46d7c1d2258a",
14
14
  "apps/vendor-binance/src/api/private-api.ts": "982c1902b8417aba1f75df5fa63db76dfc416dac",
15
15
  "apps/vendor-binance/src/api/public-api.ts": "70dc33214e05ec3ead45271bfae70abdb0623c1e",
16
- "apps/vendor-binance/src/index.ts": "285cc4bded3608d415aaa00b9df180fbbdcebac0",
16
+ "apps/vendor-binance/src/index.ts": "23922476534fcc827c7501e5baa5bd8558f37a66",
17
17
  "apps/vendor-binance/src/legacy_index.ts": "a2b44c041aa7ef1f4b77249e11f84d97cde5525f",
18
18
  "apps/vendor-binance/src/public-data/interest_rate.ts": "a197c30a2cf8acbb389fed8c0687a091320d8113",
19
19
  "apps/vendor-binance/src/public-data/ohlc.ts": "bb4f791f96064eca7d45d361ea36cb8ba0ab8fe0",
@@ -28,21 +28,22 @@
28
28
  "apps/vendor-binance/src/services/orders/modifyOrder.ts": "0d1ec4d683e43876e9d53ee29cdc5324301b287e",
29
29
  "apps/vendor-binance/src/services/orders/order-utils.ts": "e5278e306dc0e21f7e010424ead327249b1139cc",
30
30
  "apps/vendor-binance/src/services/orders/submitOrder.ts": "ffee0eb2cefd027c857167bfaa9f36edb14e8c8c",
31
+ "apps/vendor-binance/src/services/quotes.ts": "5af233c8c8fb136111754055e79febaa551b993f",
31
32
  "apps/vendor-binance/tsconfig.json": "81da8f78196974b5d15da0edb6b2d9f48641063c",
32
33
  "apps/vendor-binance/.rush/temp/shrinkwrap-deps.json": "0408a4d9b00c1701e07aa22f8350e585241c4581",
33
- "libraries/protocol/temp/package-deps.json": "0bd43721e96039b52d7b59c834dc6df45cf75e3f",
34
- "libraries/data-account/temp/package-deps.json": "e6ba0067a1b68f17266564f15987936ab2672eb9",
35
- "libraries/cache/temp/package-deps.json": "a4afa15e6462983f9d3735d31dc1ed8a683fb4dc",
36
- "libraries/data-quote/temp/package-deps.json": "d5fd89abda84b46f6c14925eda0c381c36b94dfe",
37
- "libraries/utils/temp/package-deps.json": "6d58e9b325e8d16de8a878c32010f626b12a01da",
38
- "libraries/data-series/temp/package-deps.json": "e12b4c97d2b8c8b21d1a033cdd3683e01f81401a",
39
- "libraries/sql/temp/package-deps.json": "4a9a7ec55f04b20459e664e81e76fa74b6c77b39",
40
- "libraries/data-product/temp/package-deps.json": "a03f08f30800d5fb52c5d019bda4f8e7ec04e344",
41
- "libraries/data-ohlc/temp/package-deps.json": "c0059a14c647112486ad561d730a4427b9f6f832",
42
- "libraries/data-order/temp/package-deps.json": "ccdc9819f254f37a3591bb37876a86c703df33a6",
43
- "libraries/data-interest-rate/temp/package-deps.json": "cef1e1cb0116ad593c24635684e0cbf03488d67c",
44
- "libraries/transfer/temp/package-deps.json": "36c58299bd6c841c5ba7252d71881a881570d08c",
45
- "libraries/exchange/temp/package-deps.json": "8fdfc5722901308d3c49c438eed674f35508c062",
46
- "libraries/extension/temp/package-deps.json": "9569c553c2f9a7d50b70d8f101fc2d3825aaccb9",
34
+ "libraries/protocol/temp/package-deps.json": "c94931cb0eab7180d90a06d740c1a97c0ac0c6b6",
35
+ "libraries/data-account/temp/package-deps.json": "61641a5eb18cbaceedb085230d86589ea8d076ae",
36
+ "libraries/cache/temp/package-deps.json": "e1f94620bc6245add32a4f9d379ed2901129d818",
37
+ "libraries/data-quote/temp/package-deps.json": "272c0fe62ababfa66a7589139c31231a6fdce2b4",
38
+ "libraries/utils/temp/package-deps.json": "7f1eab07acae68df931b001594a522f050ace396",
39
+ "libraries/data-series/temp/package-deps.json": "a94e2f373c448a6205ee6c47e41d9283a76ee352",
40
+ "libraries/sql/temp/package-deps.json": "041074e0102f9a01820c0fddcf82b9eaee226c79",
41
+ "libraries/data-product/temp/package-deps.json": "899bba8ace3f04b2035488ff9059e40732ef1d97",
42
+ "libraries/data-ohlc/temp/package-deps.json": "8415ee90c49d7e84faaa2565cc1122fdacf73dab",
43
+ "libraries/data-order/temp/package-deps.json": "8aa3e27ff80629d417bfe920e85d8525fbb52f42",
44
+ "libraries/data-interest-rate/temp/package-deps.json": "5a1011b097b18b96c2d8c932d874f69472621efd",
45
+ "libraries/transfer/temp/package-deps.json": "7b0db8291734d10d4f1d9c2c25d9e3918cabc79e",
46
+ "libraries/exchange/temp/package-deps.json": "3928985332795cb9b230ced140003ccf2287af41",
47
+ "libraries/extension/temp/package-deps.json": "3e0a81b0c863c2daf342dfaf284b8fd7d18c8562",
47
48
  "tools/toolkit/temp/package-deps.json": "23e053490eb8feade23e4d45de4e54883e322711"
48
49
  }