@yuants/exchange 0.8.11 → 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.
@@ -2454,7 +2454,7 @@
2454
2454
  },
2455
2455
  {
2456
2456
  "kind": "Content",
2457
- "text": "{\n direction: string;\n type: string;\n}"
2457
+ "text": "{\n direction: string;\n type: string;\n ledger_type: string[];\n}"
2458
2458
  },
2459
2459
  {
2460
2460
  "kind": "Content",
@@ -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",
@@ -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
 
@@ -159,6 +160,7 @@ export const provideExchangeServices: <T>(terminal: Terminal, exchange: IExchang
159
160
  export const provideInterestLedgerService: (terminal: Terminal, metadata: {
160
161
  direction: string;
161
162
  type: string;
163
+ ledger_type: string[];
162
164
  }, fetchPage: (request: IIngestInterestLedgerRequest) => Promise<IInterestLedger[]>, serviceOptions?: IServiceOptions) => {
163
165
  dispose: () => void;
164
166
  };
@@ -185,6 +187,17 @@ export const provideQuoteService: <K extends IQuoteField>(terminal: Terminal, me
185
187
  dispose: () => void;
186
188
  };
187
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
+
188
201
  // @public
189
202
  export type SeriesFetchDirection = 'backward' | 'forward';
190
203
 
@@ -1,24 +1,26 @@
1
1
  {
2
- "libraries/exchange/CHANGELOG.json": "c3036c4871e5b24cc2a1e757ce6a5922fa5bafc3",
3
- "libraries/exchange/CHANGELOG.md": "9ab3dbe16f0bd3b34be280b6248ca01e81b23620",
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": "3a5f30aee624ed51ee6353cd8e2b8ab50280201d",
9
- "libraries/exchange/package.json": "a3033a2b5f563eafe792ebeefa971df57e9795fd",
10
- "libraries/exchange/src/index.ts": "3eb2b464a88063b8730b8d7f671553bfdfc88ce6",
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": "836f773347b718657bbfc09b9cd8beff16af450b",
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": "0425fbc77749852bc988df8e24c9077a93c800df",
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",
@@ -1 +1 @@
1
- {"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/interest_rate.test.js":[1,1916],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/ohlc.test.js":[1,2360],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/quote.test.js":[1,2384]}
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]}