@yuants/vendor-binance 0.10.21 → 0.11.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
@@ -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.21",
3
+ "version": "0.11.0",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -20,7 +20,7 @@
20
20
  "@yuants/data-order": "0.7.0",
21
21
  "@yuants/data-interest-rate": "0.1.48",
22
22
  "@yuants/transfer": "0.2.39",
23
- "@yuants/exchange": "0.5.2",
23
+ "@yuants/exchange": "0.6.0",
24
24
  "rxjs": "~7.5.6"
25
25
  },
26
26
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "apps/vendor-binance/AGENTS.md": "378369925bffa237cd5e8ef459fe2bc2a141337c",
3
- "apps/vendor-binance/CHANGELOG.json": "a35fd4c04b78a5d74eea32eb945dcca670b40ed4",
4
- "apps/vendor-binance/CHANGELOG.md": "49aa67c647c6a10c42746ac69a5c91185321d761",
3
+ "apps/vendor-binance/CHANGELOG.json": "d8f02a45326011a76c78c0cc9a96c1c78fd54dfc",
4
+ "apps/vendor-binance/CHANGELOG.md": "73fbff8e2f86ff5321cea75f11b42c465e6e1272",
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": "3cb21c6c82c44f1516648cbd28397238b989476a",
12
+ "apps/vendor-binance/package.json": "ccb02d8c65002e8b90be347a686fc845406465ff",
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,6 +28,7 @@
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
34
  "libraries/protocol/temp/package-deps.json": "0bd43721e96039b52d7b59c834dc6df45cf75e3f",
@@ -42,7 +43,7 @@
42
43
  "libraries/data-order/temp/package-deps.json": "ccdc9819f254f37a3591bb37876a86c703df33a6",
43
44
  "libraries/data-interest-rate/temp/package-deps.json": "cef1e1cb0116ad593c24635684e0cbf03488d67c",
44
45
  "libraries/transfer/temp/package-deps.json": "36c58299bd6c841c5ba7252d71881a881570d08c",
45
- "libraries/exchange/temp/package-deps.json": "35e755087dec12d39822dda2dccf2f9d895eefad",
46
+ "libraries/exchange/temp/package-deps.json": "8fdfc5722901308d3c49c438eed674f35508c062",
46
47
  "libraries/extension/temp/package-deps.json": "9569c553c2f9a7d50b70d8f101fc2d3825aaccb9",
47
48
  "tools/toolkit/temp/package-deps.json": "23e053490eb8feade23e4d45de4e54883e322711"
48
49
  }