@yuants/exchange 0.8.12 → 0.8.13
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/exchange.d.ts +24 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interest_rate.js +2 -2
- package/dist/interest_rate.js.map +1 -1
- package/dist/trade_history.js +103 -0
- package/dist/trade_history.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/interest_rate.js +2 -2
- package/lib/interest_rate.js.map +1 -1
- package/lib/trade_history.d.ts +24 -0
- package/lib/trade_history.d.ts.map +1 -0
- package/lib/trade_history.js +107 -0
- package/lib/trade_history.js.map +1 -0
- package/package.json +3 -2
- package/temp/build/typescript/ts_ji-pb6h_.json +1 -1
- package/temp/exchange.api.json +118 -0
- package/temp/exchange.api.md +12 -0
- package/temp/package-deps.json +9 -7
- package/temp/test/jest/haste-map-f50e7cc8db739b6ac2b07d506eb6fdee-b0f299de6a65bcc22988084da157f170-c4011bd9f6a16ae7503ec572fe00f1e3 +0 -0
- package/temp/test/jest/perf-cache-f50e7cc8db739b6ac2b07d506eb6fdee-da39a3ee5e6b4b0d3255bfef95601890 +1 -1
package/temp/exchange.api.json
CHANGED
|
@@ -2953,6 +2953,124 @@
|
|
|
2953
2953
|
],
|
|
2954
2954
|
"name": "provideQuoteService"
|
|
2955
2955
|
},
|
|
2956
|
+
{
|
|
2957
|
+
"kind": "Function",
|
|
2958
|
+
"canonicalReference": "@yuants/exchange!provideTradeHistoryService:function(1)",
|
|
2959
|
+
"docComment": "/**\n * @public\n */\n",
|
|
2960
|
+
"excerptTokens": [
|
|
2961
|
+
{
|
|
2962
|
+
"kind": "Content",
|
|
2963
|
+
"text": "provideTradeHistoryService: (terminal: "
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"kind": "Reference",
|
|
2967
|
+
"text": "Terminal",
|
|
2968
|
+
"canonicalReference": "@yuants/protocol!Terminal:class"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"kind": "Content",
|
|
2972
|
+
"text": ", metadata: "
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"kind": "Content",
|
|
2976
|
+
"text": "{\n direction: string;\n type: string;\n trade_type: string[];\n}"
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"kind": "Content",
|
|
2980
|
+
"text": ", fetchPage: "
|
|
2981
|
+
},
|
|
2982
|
+
{
|
|
2983
|
+
"kind": "Content",
|
|
2984
|
+
"text": "(request: "
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
"kind": "Reference",
|
|
2988
|
+
"text": "IIngestInterestLedgerRequest",
|
|
2989
|
+
"canonicalReference": "@yuants/exchange!~IIngestInterestLedgerRequest_2:interface"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"kind": "Content",
|
|
2993
|
+
"text": ") => "
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
"kind": "Reference",
|
|
2997
|
+
"text": "Promise",
|
|
2998
|
+
"canonicalReference": "!Promise:interface"
|
|
2999
|
+
},
|
|
3000
|
+
{
|
|
3001
|
+
"kind": "Content",
|
|
3002
|
+
"text": "<"
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
"kind": "Reference",
|
|
3006
|
+
"text": "ITradeHistory",
|
|
3007
|
+
"canonicalReference": "@yuants/data-trade!ITradeHistory:interface"
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"kind": "Content",
|
|
3011
|
+
"text": "[]>"
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
"kind": "Content",
|
|
3015
|
+
"text": ", serviceOptions?: "
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
"kind": "Reference",
|
|
3019
|
+
"text": "IServiceOptions",
|
|
3020
|
+
"canonicalReference": "@yuants/protocol!IServiceOptions:interface"
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"kind": "Content",
|
|
3024
|
+
"text": ") => "
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"kind": "Content",
|
|
3028
|
+
"text": "{\n dispose: () => void;\n}"
|
|
3029
|
+
}
|
|
3030
|
+
],
|
|
3031
|
+
"fileUrlPath": "src/trade_history.ts",
|
|
3032
|
+
"returnTypeTokenRange": {
|
|
3033
|
+
"startIndex": 15,
|
|
3034
|
+
"endIndex": 16
|
|
3035
|
+
},
|
|
3036
|
+
"releaseTag": "Public",
|
|
3037
|
+
"overloadIndex": 1,
|
|
3038
|
+
"parameters": [
|
|
3039
|
+
{
|
|
3040
|
+
"parameterName": "terminal",
|
|
3041
|
+
"parameterTypeTokenRange": {
|
|
3042
|
+
"startIndex": 1,
|
|
3043
|
+
"endIndex": 2
|
|
3044
|
+
},
|
|
3045
|
+
"isOptional": false
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
"parameterName": "metadata",
|
|
3049
|
+
"parameterTypeTokenRange": {
|
|
3050
|
+
"startIndex": 3,
|
|
3051
|
+
"endIndex": 4
|
|
3052
|
+
},
|
|
3053
|
+
"isOptional": false
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
"parameterName": "fetchPage",
|
|
3057
|
+
"parameterTypeTokenRange": {
|
|
3058
|
+
"startIndex": 5,
|
|
3059
|
+
"endIndex": 12
|
|
3060
|
+
},
|
|
3061
|
+
"isOptional": false
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
"parameterName": "serviceOptions",
|
|
3065
|
+
"parameterTypeTokenRange": {
|
|
3066
|
+
"startIndex": 13,
|
|
3067
|
+
"endIndex": 14
|
|
3068
|
+
},
|
|
3069
|
+
"isOptional": true
|
|
3070
|
+
}
|
|
3071
|
+
],
|
|
3072
|
+
"name": "provideTradeHistoryService"
|
|
3073
|
+
},
|
|
2956
3074
|
{
|
|
2957
3075
|
"kind": "TypeAlias",
|
|
2958
3076
|
"canonicalReference": "@yuants/exchange!SeriesFetchDirection:type",
|
package/temp/exchange.api.md
CHANGED
|
@@ -13,6 +13,7 @@ import { IProduct } from '@yuants/data-product';
|
|
|
13
13
|
import { IQuote } from '@yuants/data-quote';
|
|
14
14
|
import { IResponse } from '@yuants/protocol';
|
|
15
15
|
import { IServiceOptions } from '@yuants/protocol';
|
|
16
|
+
import { ITradeHistory } from '@yuants/data-trade';
|
|
16
17
|
import { JSONSchema7 } from 'json-schema';
|
|
17
18
|
import { Terminal } from '@yuants/protocol';
|
|
18
19
|
|
|
@@ -186,6 +187,17 @@ export const provideQuoteService: <K extends IQuoteField>(terminal: Terminal, me
|
|
|
186
187
|
dispose: () => void;
|
|
187
188
|
};
|
|
188
189
|
|
|
190
|
+
// Warning: (ae-forgotten-export) The symbol "IIngestInterestLedgerRequest_2" needs to be exported by the entry point index.d.ts
|
|
191
|
+
//
|
|
192
|
+
// @public (undocumented)
|
|
193
|
+
export const provideTradeHistoryService: (terminal: Terminal, metadata: {
|
|
194
|
+
direction: string;
|
|
195
|
+
type: string;
|
|
196
|
+
trade_type: string[];
|
|
197
|
+
}, fetchPage: (request: IIngestInterestLedgerRequest_2) => Promise<ITradeHistory[]>, serviceOptions?: IServiceOptions) => {
|
|
198
|
+
dispose: () => void;
|
|
199
|
+
};
|
|
200
|
+
|
|
189
201
|
// @public
|
|
190
202
|
export type SeriesFetchDirection = 'backward' | 'forward';
|
|
191
203
|
|
package/temp/package-deps.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"libraries/exchange/CHANGELOG.json": "
|
|
3
|
-
"libraries/exchange/CHANGELOG.md": "
|
|
2
|
+
"libraries/exchange/CHANGELOG.json": "0eaa41bd39f100fa3efa00127bf95c3ee8be46bc",
|
|
3
|
+
"libraries/exchange/CHANGELOG.md": "82b30b80a1630d83cf5e867a6b664c63656bd1b6",
|
|
4
4
|
"libraries/exchange/config/api-extractor.json": "62f4fd324425b9a235f0c117975967aab09ced0c",
|
|
5
5
|
"libraries/exchange/config/jest.config.json": "4bb17bde3ee911163a3edb36a6eb71491d80b1bd",
|
|
6
6
|
"libraries/exchange/config/rig.json": "f6c7b5537dc77a3170ba9f008bae3b6c3ee11956",
|
|
7
7
|
"libraries/exchange/config/typescript.json": "854907e8a821f2050f6533368db160c649c25348",
|
|
8
|
-
"libraries/exchange/etc/exchange.api.md": "
|
|
9
|
-
"libraries/exchange/package.json": "
|
|
10
|
-
"libraries/exchange/src/index.ts": "
|
|
8
|
+
"libraries/exchange/etc/exchange.api.md": "395a59dc1354013febe0138ee5990962b6704e56",
|
|
9
|
+
"libraries/exchange/package.json": "9fd47bfc9f3b23b0975da10a0efb7605527067ed",
|
|
10
|
+
"libraries/exchange/src/index.ts": "d50f575bee8bb10e0207dd0c54b0aef75890de2c",
|
|
11
11
|
"libraries/exchange/src/interest_rate.test.ts": "9197fe2ace778d3dd6ef6043926d776abf21ab89",
|
|
12
|
-
"libraries/exchange/src/interest_rate.ts": "
|
|
12
|
+
"libraries/exchange/src/interest_rate.ts": "59237e6bd393196f219c76c64d7bafa9d6a3f427",
|
|
13
13
|
"libraries/exchange/src/ohlc.test.ts": "975b880372c2c608d09944a37e294244bd6e488b",
|
|
14
14
|
"libraries/exchange/src/ohlc.ts": "32d5dbcdcac255a043a93bb62cdec955ac5b01bd",
|
|
15
15
|
"libraries/exchange/src/quote.test.ts": "2d50be70e6a924498719ad4fe940e0b95d0dfa09",
|
|
16
16
|
"libraries/exchange/src/quote.ts": "663393e8f22b1e11f675e05f6d3c19d06862366e",
|
|
17
|
+
"libraries/exchange/src/trade_history.ts": "4bc9308a68b292570c02bb33034acd243bd696d6",
|
|
17
18
|
"libraries/exchange/src/types.ts": "302d5383c38c053ac2ea8fac028b9d4921f1abe0",
|
|
18
19
|
"libraries/exchange/tsconfig.json": "22f94ca28b507f8ddcc21b9053158eefd3f726a9",
|
|
19
|
-
"libraries/exchange/.rush/temp/shrinkwrap-deps.json": "
|
|
20
|
+
"libraries/exchange/.rush/temp/shrinkwrap-deps.json": "fc455d2a7943aeea6a765630626bb78a9e60a7ba",
|
|
20
21
|
"libraries/protocol/temp/package-deps.json": "1ed7faa57c156fc1b7ff9f13fe5566aacda70447",
|
|
21
22
|
"libraries/data-account/temp/package-deps.json": "9bfd92d0e975a4ad3f2e79ce68233e832865b579",
|
|
23
|
+
"libraries/data-trade/temp/package-deps.json": "c73fc54c2d1e3d1a226fd4955d3c51beb071a422",
|
|
22
24
|
"libraries/data-order/temp/package-deps.json": "3495abc01b406b0c63a2725d361512a996a23a79",
|
|
23
25
|
"libraries/data-product/temp/package-deps.json": "2b9736cd4a54002df2be4e72f9a4b9641aa71201",
|
|
24
26
|
"libraries/data-quote/temp/package-deps.json": "ecee1e69820ccb2072ea6977a3971555e9e68e11",
|
|
Binary file
|
package/temp/test/jest/perf-cache-f50e7cc8db739b6ac2b07d506eb6fdee-da39a3ee5e6b4b0d3255bfef95601890
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/
|
|
1
|
+
{"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/ohlc.test.js":[1,1267],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/interest_rate.test.js":[1,1251],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/quote.test.js":[1,1364]}
|