@yuants/exchange 0.7.1 → 0.8.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.
Files changed (45) hide show
  1. package/dist/exchange.d.ts +88 -0
  2. package/dist/index.js +2 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/interest_rate.js +128 -0
  5. package/dist/interest_rate.js.map +1 -0
  6. package/dist/interest_rate.test.js +24 -0
  7. package/dist/interest_rate.test.js.map +1 -0
  8. package/dist/ohlc.js +153 -0
  9. package/dist/ohlc.js.map +1 -0
  10. package/dist/ohlc.test.js +26 -0
  11. package/dist/ohlc.test.js.map +1 -0
  12. package/dist/quote.test.js +31 -0
  13. package/dist/quote.test.js.map +1 -0
  14. package/dist/types.js.map +1 -1
  15. package/lib/index.d.ts +2 -0
  16. package/lib/index.d.ts.map +1 -1
  17. package/lib/index.js +2 -0
  18. package/lib/index.js.map +1 -1
  19. package/lib/interest_rate.d.ts +33 -0
  20. package/lib/interest_rate.d.ts.map +1 -0
  21. package/lib/interest_rate.js +133 -0
  22. package/lib/interest_rate.js.map +1 -0
  23. package/lib/interest_rate.test.d.ts +2 -0
  24. package/lib/interest_rate.test.d.ts.map +1 -0
  25. package/lib/interest_rate.test.js +26 -0
  26. package/lib/interest_rate.test.js.map +1 -0
  27. package/lib/ohlc.d.ts +35 -0
  28. package/lib/ohlc.d.ts.map +1 -0
  29. package/lib/ohlc.js +158 -0
  30. package/lib/ohlc.js.map +1 -0
  31. package/lib/ohlc.test.d.ts +2 -0
  32. package/lib/ohlc.test.d.ts.map +1 -0
  33. package/lib/ohlc.test.js +28 -0
  34. package/lib/ohlc.test.js.map +1 -0
  35. package/lib/quote.test.d.ts +2 -0
  36. package/lib/quote.test.d.ts.map +1 -0
  37. package/lib/quote.test.js +33 -0
  38. package/lib/quote.test.js.map +1 -0
  39. package/lib/types.d.ts +16 -0
  40. package/lib/types.d.ts.map +1 -1
  41. package/lib/types.js.map +1 -1
  42. package/package.json +3 -1
  43. package/temp/exchange.api.json +698 -0
  44. package/temp/exchange.api.md +76 -0
  45. package/temp/package-deps.json +14 -7
@@ -1049,6 +1049,402 @@
1049
1049
  ],
1050
1050
  "extendsTokenRanges": []
1051
1051
  },
1052
+ {
1053
+ "kind": "Interface",
1054
+ "canonicalReference": "@yuants/exchange!IIngestInterestRateRequest:interface",
1055
+ "docComment": "/**\n * Interest Rate Service Request from VEX to Vendor\n *\n * @public\n */\n",
1056
+ "excerptTokens": [
1057
+ {
1058
+ "kind": "Content",
1059
+ "text": "export interface IIngestInterestRateRequest "
1060
+ }
1061
+ ],
1062
+ "releaseTag": "Public",
1063
+ "name": "IIngestInterestRateRequest",
1064
+ "preserveMemberOrder": false,
1065
+ "members": [
1066
+ {
1067
+ "kind": "PropertySignature",
1068
+ "canonicalReference": "@yuants/exchange!IIngestInterestRateRequest#direction:member",
1069
+ "docComment": "",
1070
+ "excerptTokens": [
1071
+ {
1072
+ "kind": "Content",
1073
+ "text": "direction: "
1074
+ },
1075
+ {
1076
+ "kind": "Reference",
1077
+ "text": "SeriesFetchDirection",
1078
+ "canonicalReference": "@yuants/exchange!SeriesFetchDirection:type"
1079
+ },
1080
+ {
1081
+ "kind": "Content",
1082
+ "text": ";"
1083
+ }
1084
+ ],
1085
+ "isReadonly": false,
1086
+ "isOptional": false,
1087
+ "releaseTag": "Public",
1088
+ "name": "direction",
1089
+ "propertyTypeTokenRange": {
1090
+ "startIndex": 1,
1091
+ "endIndex": 2
1092
+ }
1093
+ },
1094
+ {
1095
+ "kind": "PropertySignature",
1096
+ "canonicalReference": "@yuants/exchange!IIngestInterestRateRequest#product_id:member",
1097
+ "docComment": "",
1098
+ "excerptTokens": [
1099
+ {
1100
+ "kind": "Content",
1101
+ "text": "product_id: "
1102
+ },
1103
+ {
1104
+ "kind": "Content",
1105
+ "text": "string"
1106
+ },
1107
+ {
1108
+ "kind": "Content",
1109
+ "text": ";"
1110
+ }
1111
+ ],
1112
+ "isReadonly": false,
1113
+ "isOptional": false,
1114
+ "releaseTag": "Public",
1115
+ "name": "product_id",
1116
+ "propertyTypeTokenRange": {
1117
+ "startIndex": 1,
1118
+ "endIndex": 2
1119
+ }
1120
+ },
1121
+ {
1122
+ "kind": "PropertySignature",
1123
+ "canonicalReference": "@yuants/exchange!IIngestInterestRateRequest#time:member",
1124
+ "docComment": "",
1125
+ "excerptTokens": [
1126
+ {
1127
+ "kind": "Content",
1128
+ "text": "time: "
1129
+ },
1130
+ {
1131
+ "kind": "Content",
1132
+ "text": "number"
1133
+ },
1134
+ {
1135
+ "kind": "Content",
1136
+ "text": ";"
1137
+ }
1138
+ ],
1139
+ "isReadonly": false,
1140
+ "isOptional": false,
1141
+ "releaseTag": "Public",
1142
+ "name": "time",
1143
+ "propertyTypeTokenRange": {
1144
+ "startIndex": 1,
1145
+ "endIndex": 2
1146
+ }
1147
+ }
1148
+ ],
1149
+ "extendsTokenRanges": []
1150
+ },
1151
+ {
1152
+ "kind": "Interface",
1153
+ "canonicalReference": "@yuants/exchange!IIngestOHLCRequest:interface",
1154
+ "docComment": "/**\n * OHLC Service Request from VEX to Vendor\n *\n * @public\n */\n",
1155
+ "excerptTokens": [
1156
+ {
1157
+ "kind": "Content",
1158
+ "text": "export interface IIngestOHLCRequest "
1159
+ }
1160
+ ],
1161
+ "releaseTag": "Public",
1162
+ "name": "IIngestOHLCRequest",
1163
+ "preserveMemberOrder": false,
1164
+ "members": [
1165
+ {
1166
+ "kind": "PropertySignature",
1167
+ "canonicalReference": "@yuants/exchange!IIngestOHLCRequest#direction:member",
1168
+ "docComment": "",
1169
+ "excerptTokens": [
1170
+ {
1171
+ "kind": "Content",
1172
+ "text": "direction: "
1173
+ },
1174
+ {
1175
+ "kind": "Reference",
1176
+ "text": "SeriesFetchDirection",
1177
+ "canonicalReference": "@yuants/exchange!SeriesFetchDirection:type"
1178
+ },
1179
+ {
1180
+ "kind": "Content",
1181
+ "text": ";"
1182
+ }
1183
+ ],
1184
+ "isReadonly": false,
1185
+ "isOptional": false,
1186
+ "releaseTag": "Public",
1187
+ "name": "direction",
1188
+ "propertyTypeTokenRange": {
1189
+ "startIndex": 1,
1190
+ "endIndex": 2
1191
+ }
1192
+ },
1193
+ {
1194
+ "kind": "PropertySignature",
1195
+ "canonicalReference": "@yuants/exchange!IIngestOHLCRequest#duration:member",
1196
+ "docComment": "",
1197
+ "excerptTokens": [
1198
+ {
1199
+ "kind": "Content",
1200
+ "text": "duration: "
1201
+ },
1202
+ {
1203
+ "kind": "Content",
1204
+ "text": "string"
1205
+ },
1206
+ {
1207
+ "kind": "Content",
1208
+ "text": ";"
1209
+ }
1210
+ ],
1211
+ "isReadonly": false,
1212
+ "isOptional": false,
1213
+ "releaseTag": "Public",
1214
+ "name": "duration",
1215
+ "propertyTypeTokenRange": {
1216
+ "startIndex": 1,
1217
+ "endIndex": 2
1218
+ }
1219
+ },
1220
+ {
1221
+ "kind": "PropertySignature",
1222
+ "canonicalReference": "@yuants/exchange!IIngestOHLCRequest#product_id:member",
1223
+ "docComment": "",
1224
+ "excerptTokens": [
1225
+ {
1226
+ "kind": "Content",
1227
+ "text": "product_id: "
1228
+ },
1229
+ {
1230
+ "kind": "Content",
1231
+ "text": "string"
1232
+ },
1233
+ {
1234
+ "kind": "Content",
1235
+ "text": ";"
1236
+ }
1237
+ ],
1238
+ "isReadonly": false,
1239
+ "isOptional": false,
1240
+ "releaseTag": "Public",
1241
+ "name": "product_id",
1242
+ "propertyTypeTokenRange": {
1243
+ "startIndex": 1,
1244
+ "endIndex": 2
1245
+ }
1246
+ },
1247
+ {
1248
+ "kind": "PropertySignature",
1249
+ "canonicalReference": "@yuants/exchange!IIngestOHLCRequest#time:member",
1250
+ "docComment": "",
1251
+ "excerptTokens": [
1252
+ {
1253
+ "kind": "Content",
1254
+ "text": "time: "
1255
+ },
1256
+ {
1257
+ "kind": "Content",
1258
+ "text": "number"
1259
+ },
1260
+ {
1261
+ "kind": "Content",
1262
+ "text": ";"
1263
+ }
1264
+ ],
1265
+ "isReadonly": false,
1266
+ "isOptional": false,
1267
+ "releaseTag": "Public",
1268
+ "name": "time",
1269
+ "propertyTypeTokenRange": {
1270
+ "startIndex": 1,
1271
+ "endIndex": 2
1272
+ }
1273
+ }
1274
+ ],
1275
+ "extendsTokenRanges": []
1276
+ },
1277
+ {
1278
+ "kind": "Interface",
1279
+ "canonicalReference": "@yuants/exchange!IInterestRateServiceMetadata:interface",
1280
+ "docComment": "/**\n * Interest Rate Service Metadata\n *\n * @public\n */\n",
1281
+ "excerptTokens": [
1282
+ {
1283
+ "kind": "Content",
1284
+ "text": "export interface IInterestRateServiceMetadata "
1285
+ }
1286
+ ],
1287
+ "releaseTag": "Public",
1288
+ "name": "IInterestRateServiceMetadata",
1289
+ "preserveMemberOrder": false,
1290
+ "members": [
1291
+ {
1292
+ "kind": "PropertySignature",
1293
+ "canonicalReference": "@yuants/exchange!IInterestRateServiceMetadata#direction:member",
1294
+ "docComment": "",
1295
+ "excerptTokens": [
1296
+ {
1297
+ "kind": "Content",
1298
+ "text": "direction: "
1299
+ },
1300
+ {
1301
+ "kind": "Reference",
1302
+ "text": "SeriesFetchDirection",
1303
+ "canonicalReference": "@yuants/exchange!SeriesFetchDirection:type"
1304
+ },
1305
+ {
1306
+ "kind": "Content",
1307
+ "text": ";"
1308
+ }
1309
+ ],
1310
+ "isReadonly": false,
1311
+ "isOptional": false,
1312
+ "releaseTag": "Public",
1313
+ "name": "direction",
1314
+ "propertyTypeTokenRange": {
1315
+ "startIndex": 1,
1316
+ "endIndex": 2
1317
+ }
1318
+ },
1319
+ {
1320
+ "kind": "PropertySignature",
1321
+ "canonicalReference": "@yuants/exchange!IInterestRateServiceMetadata#product_id_prefix:member",
1322
+ "docComment": "",
1323
+ "excerptTokens": [
1324
+ {
1325
+ "kind": "Content",
1326
+ "text": "product_id_prefix: "
1327
+ },
1328
+ {
1329
+ "kind": "Content",
1330
+ "text": "string"
1331
+ },
1332
+ {
1333
+ "kind": "Content",
1334
+ "text": ";"
1335
+ }
1336
+ ],
1337
+ "isReadonly": false,
1338
+ "isOptional": false,
1339
+ "releaseTag": "Public",
1340
+ "name": "product_id_prefix",
1341
+ "propertyTypeTokenRange": {
1342
+ "startIndex": 1,
1343
+ "endIndex": 2
1344
+ }
1345
+ }
1346
+ ],
1347
+ "extendsTokenRanges": []
1348
+ },
1349
+ {
1350
+ "kind": "Interface",
1351
+ "canonicalReference": "@yuants/exchange!IOHLCServiceMetadata:interface",
1352
+ "docComment": "/**\n * OHLC Service Metadata\n *\n * @public\n */\n",
1353
+ "excerptTokens": [
1354
+ {
1355
+ "kind": "Content",
1356
+ "text": "export interface IOHLCServiceMetadata "
1357
+ }
1358
+ ],
1359
+ "releaseTag": "Public",
1360
+ "name": "IOHLCServiceMetadata",
1361
+ "preserveMemberOrder": false,
1362
+ "members": [
1363
+ {
1364
+ "kind": "PropertySignature",
1365
+ "canonicalReference": "@yuants/exchange!IOHLCServiceMetadata#direction:member",
1366
+ "docComment": "",
1367
+ "excerptTokens": [
1368
+ {
1369
+ "kind": "Content",
1370
+ "text": "direction: "
1371
+ },
1372
+ {
1373
+ "kind": "Reference",
1374
+ "text": "SeriesFetchDirection",
1375
+ "canonicalReference": "@yuants/exchange!SeriesFetchDirection:type"
1376
+ },
1377
+ {
1378
+ "kind": "Content",
1379
+ "text": ";"
1380
+ }
1381
+ ],
1382
+ "isReadonly": false,
1383
+ "isOptional": false,
1384
+ "releaseTag": "Public",
1385
+ "name": "direction",
1386
+ "propertyTypeTokenRange": {
1387
+ "startIndex": 1,
1388
+ "endIndex": 2
1389
+ }
1390
+ },
1391
+ {
1392
+ "kind": "PropertySignature",
1393
+ "canonicalReference": "@yuants/exchange!IOHLCServiceMetadata#duration_list:member",
1394
+ "docComment": "",
1395
+ "excerptTokens": [
1396
+ {
1397
+ "kind": "Content",
1398
+ "text": "duration_list: "
1399
+ },
1400
+ {
1401
+ "kind": "Content",
1402
+ "text": "string[]"
1403
+ },
1404
+ {
1405
+ "kind": "Content",
1406
+ "text": ";"
1407
+ }
1408
+ ],
1409
+ "isReadonly": false,
1410
+ "isOptional": false,
1411
+ "releaseTag": "Public",
1412
+ "name": "duration_list",
1413
+ "propertyTypeTokenRange": {
1414
+ "startIndex": 1,
1415
+ "endIndex": 2
1416
+ }
1417
+ },
1418
+ {
1419
+ "kind": "PropertySignature",
1420
+ "canonicalReference": "@yuants/exchange!IOHLCServiceMetadata#product_id_prefix:member",
1421
+ "docComment": "",
1422
+ "excerptTokens": [
1423
+ {
1424
+ "kind": "Content",
1425
+ "text": "product_id_prefix: "
1426
+ },
1427
+ {
1428
+ "kind": "Content",
1429
+ "text": "string"
1430
+ },
1431
+ {
1432
+ "kind": "Content",
1433
+ "text": ";"
1434
+ }
1435
+ ],
1436
+ "isReadonly": false,
1437
+ "isOptional": false,
1438
+ "releaseTag": "Public",
1439
+ "name": "product_id_prefix",
1440
+ "propertyTypeTokenRange": {
1441
+ "startIndex": 1,
1442
+ "endIndex": 2
1443
+ }
1444
+ }
1445
+ ],
1446
+ "extendsTokenRanges": []
1447
+ },
1052
1448
  {
1053
1449
  "kind": "TypeAlias",
1054
1450
  "canonicalReference": "@yuants/exchange!IQuoteField:type",
@@ -1372,6 +1768,77 @@
1372
1768
  "endIndex": 11
1373
1769
  }
1374
1770
  },
1771
+ {
1772
+ "kind": "Interface",
1773
+ "canonicalReference": "@yuants/exchange!ISeriesIngestResult:interface",
1774
+ "docComment": "/**\n * 历史数据写库结果(不返回数据本体)\n *\n * @public\n */\n",
1775
+ "excerptTokens": [
1776
+ {
1777
+ "kind": "Content",
1778
+ "text": "export interface ISeriesIngestResult "
1779
+ }
1780
+ ],
1781
+ "releaseTag": "Public",
1782
+ "name": "ISeriesIngestResult",
1783
+ "preserveMemberOrder": false,
1784
+ "members": [
1785
+ {
1786
+ "kind": "PropertySignature",
1787
+ "canonicalReference": "@yuants/exchange!ISeriesIngestResult#range:member",
1788
+ "docComment": "",
1789
+ "excerptTokens": [
1790
+ {
1791
+ "kind": "Content",
1792
+ "text": "range?: "
1793
+ },
1794
+ {
1795
+ "kind": "Content",
1796
+ "text": "{\n start_time: string;\n end_time: string;\n }"
1797
+ },
1798
+ {
1799
+ "kind": "Content",
1800
+ "text": ";"
1801
+ }
1802
+ ],
1803
+ "isReadonly": false,
1804
+ "isOptional": true,
1805
+ "releaseTag": "Public",
1806
+ "name": "range",
1807
+ "propertyTypeTokenRange": {
1808
+ "startIndex": 1,
1809
+ "endIndex": 2
1810
+ }
1811
+ },
1812
+ {
1813
+ "kind": "PropertySignature",
1814
+ "canonicalReference": "@yuants/exchange!ISeriesIngestResult#wrote_count:member",
1815
+ "docComment": "",
1816
+ "excerptTokens": [
1817
+ {
1818
+ "kind": "Content",
1819
+ "text": "wrote_count: "
1820
+ },
1821
+ {
1822
+ "kind": "Content",
1823
+ "text": "number"
1824
+ },
1825
+ {
1826
+ "kind": "Content",
1827
+ "text": ";"
1828
+ }
1829
+ ],
1830
+ "isReadonly": false,
1831
+ "isOptional": false,
1832
+ "releaseTag": "Public",
1833
+ "name": "wrote_count",
1834
+ "propertyTypeTokenRange": {
1835
+ "startIndex": 1,
1836
+ "endIndex": 2
1837
+ }
1838
+ }
1839
+ ],
1840
+ "extendsTokenRanges": []
1841
+ },
1375
1842
  {
1376
1843
  "kind": "Variable",
1377
1844
  "canonicalReference": "@yuants/exchange!listProducts:var",
@@ -1488,6 +1955,60 @@
1488
1955
  "endIndex": 10
1489
1956
  }
1490
1957
  },
1958
+ {
1959
+ "kind": "Variable",
1960
+ "canonicalReference": "@yuants/exchange!parseInterestRateServiceMetadataFromSchema:var",
1961
+ "docComment": "/**\n * @public\n */\n",
1962
+ "excerptTokens": [
1963
+ {
1964
+ "kind": "Content",
1965
+ "text": "parseInterestRateServiceMetadataFromSchema: "
1966
+ },
1967
+ {
1968
+ "kind": "Content",
1969
+ "text": "(schema: any) => "
1970
+ },
1971
+ {
1972
+ "kind": "Reference",
1973
+ "text": "IInterestRateServiceMetadata",
1974
+ "canonicalReference": "@yuants/exchange!IInterestRateServiceMetadata:interface"
1975
+ }
1976
+ ],
1977
+ "isReadonly": true,
1978
+ "releaseTag": "Public",
1979
+ "name": "parseInterestRateServiceMetadataFromSchema",
1980
+ "variableTypeTokenRange": {
1981
+ "startIndex": 1,
1982
+ "endIndex": 3
1983
+ }
1984
+ },
1985
+ {
1986
+ "kind": "Variable",
1987
+ "canonicalReference": "@yuants/exchange!parseOHLCServiceMetadataFromSchema:var",
1988
+ "docComment": "/**\n * @public\n */\n",
1989
+ "excerptTokens": [
1990
+ {
1991
+ "kind": "Content",
1992
+ "text": "parseOHLCServiceMetadataFromSchema: "
1993
+ },
1994
+ {
1995
+ "kind": "Content",
1996
+ "text": "(schema: any) => "
1997
+ },
1998
+ {
1999
+ "kind": "Reference",
2000
+ "text": "IOHLCServiceMetadata",
2001
+ "canonicalReference": "@yuants/exchange!IOHLCServiceMetadata:interface"
2002
+ }
2003
+ ],
2004
+ "isReadonly": true,
2005
+ "releaseTag": "Public",
2006
+ "name": "parseOHLCServiceMetadataFromSchema",
2007
+ "variableTypeTokenRange": {
2008
+ "startIndex": 1,
2009
+ "endIndex": 3
2010
+ }
2011
+ },
1491
2012
  {
1492
2013
  "kind": "Variable",
1493
2014
  "canonicalReference": "@yuants/exchange!parseQuoteServiceMetadataFromSchema:var",
@@ -1555,6 +2076,158 @@
1555
2076
  "endIndex": 6
1556
2077
  }
1557
2078
  },
2079
+ {
2080
+ "kind": "Variable",
2081
+ "canonicalReference": "@yuants/exchange!provideInterestRateService:var",
2082
+ "docComment": "/**\n * @public\n */\n",
2083
+ "excerptTokens": [
2084
+ {
2085
+ "kind": "Content",
2086
+ "text": "provideInterestRateService: "
2087
+ },
2088
+ {
2089
+ "kind": "Content",
2090
+ "text": "(terminal: "
2091
+ },
2092
+ {
2093
+ "kind": "Reference",
2094
+ "text": "Terminal",
2095
+ "canonicalReference": "@yuants/protocol!Terminal:class"
2096
+ },
2097
+ {
2098
+ "kind": "Content",
2099
+ "text": ", metadata: "
2100
+ },
2101
+ {
2102
+ "kind": "Reference",
2103
+ "text": "IInterestRateServiceMetadata",
2104
+ "canonicalReference": "@yuants/exchange!IInterestRateServiceMetadata:interface"
2105
+ },
2106
+ {
2107
+ "kind": "Content",
2108
+ "text": ", fetchPage: (request: "
2109
+ },
2110
+ {
2111
+ "kind": "Reference",
2112
+ "text": "IIngestInterestRateRequest",
2113
+ "canonicalReference": "@yuants/exchange!IIngestInterestRateRequest:interface"
2114
+ },
2115
+ {
2116
+ "kind": "Content",
2117
+ "text": " & {\n series_id: string;\n}) => "
2118
+ },
2119
+ {
2120
+ "kind": "Reference",
2121
+ "text": "Promise",
2122
+ "canonicalReference": "!Promise:interface"
2123
+ },
2124
+ {
2125
+ "kind": "Content",
2126
+ "text": "<"
2127
+ },
2128
+ {
2129
+ "kind": "Reference",
2130
+ "text": "IInterestRate",
2131
+ "canonicalReference": "@yuants/data-interest-rate!IInterestRate:interface"
2132
+ },
2133
+ {
2134
+ "kind": "Content",
2135
+ "text": "[]>, serviceOptions?: "
2136
+ },
2137
+ {
2138
+ "kind": "Reference",
2139
+ "text": "IServiceOptions",
2140
+ "canonicalReference": "@yuants/protocol!IServiceOptions:interface"
2141
+ },
2142
+ {
2143
+ "kind": "Content",
2144
+ "text": ") => {\n dispose: () => void;\n}"
2145
+ }
2146
+ ],
2147
+ "isReadonly": true,
2148
+ "releaseTag": "Public",
2149
+ "name": "provideInterestRateService",
2150
+ "variableTypeTokenRange": {
2151
+ "startIndex": 1,
2152
+ "endIndex": 14
2153
+ }
2154
+ },
2155
+ {
2156
+ "kind": "Variable",
2157
+ "canonicalReference": "@yuants/exchange!provideOHLCService:var",
2158
+ "docComment": "/**\n * @public\n */\n",
2159
+ "excerptTokens": [
2160
+ {
2161
+ "kind": "Content",
2162
+ "text": "provideOHLCService: "
2163
+ },
2164
+ {
2165
+ "kind": "Content",
2166
+ "text": "(terminal: "
2167
+ },
2168
+ {
2169
+ "kind": "Reference",
2170
+ "text": "Terminal",
2171
+ "canonicalReference": "@yuants/protocol!Terminal:class"
2172
+ },
2173
+ {
2174
+ "kind": "Content",
2175
+ "text": ", metadata: "
2176
+ },
2177
+ {
2178
+ "kind": "Reference",
2179
+ "text": "IOHLCServiceMetadata",
2180
+ "canonicalReference": "@yuants/exchange!IOHLCServiceMetadata:interface"
2181
+ },
2182
+ {
2183
+ "kind": "Content",
2184
+ "text": ", fetchPage: (request: "
2185
+ },
2186
+ {
2187
+ "kind": "Reference",
2188
+ "text": "IIngestOHLCRequest",
2189
+ "canonicalReference": "@yuants/exchange!IIngestOHLCRequest:interface"
2190
+ },
2191
+ {
2192
+ "kind": "Content",
2193
+ "text": " & {\n series_id: string;\n}) => "
2194
+ },
2195
+ {
2196
+ "kind": "Reference",
2197
+ "text": "Promise",
2198
+ "canonicalReference": "!Promise:interface"
2199
+ },
2200
+ {
2201
+ "kind": "Content",
2202
+ "text": "<"
2203
+ },
2204
+ {
2205
+ "kind": "Reference",
2206
+ "text": "IOHLC",
2207
+ "canonicalReference": "@yuants/data-ohlc!IOHLC:interface"
2208
+ },
2209
+ {
2210
+ "kind": "Content",
2211
+ "text": "[]>, serviceOptions?: "
2212
+ },
2213
+ {
2214
+ "kind": "Reference",
2215
+ "text": "IServiceOptions",
2216
+ "canonicalReference": "@yuants/protocol!IServiceOptions:interface"
2217
+ },
2218
+ {
2219
+ "kind": "Content",
2220
+ "text": ") => {\n dispose: () => void;\n}"
2221
+ }
2222
+ ],
2223
+ "isReadonly": true,
2224
+ "releaseTag": "Public",
2225
+ "name": "provideOHLCService",
2226
+ "variableTypeTokenRange": {
2227
+ "startIndex": 1,
2228
+ "endIndex": 14
2229
+ }
2230
+ },
1558
2231
  {
1559
2232
  "kind": "Variable",
1560
2233
  "canonicalReference": "@yuants/exchange!provideQuoteService:var",
@@ -1649,6 +2322,31 @@
1649
2322
  "endIndex": 18
1650
2323
  }
1651
2324
  },
2325
+ {
2326
+ "kind": "TypeAlias",
2327
+ "canonicalReference": "@yuants/exchange!SeriesFetchDirection:type",
2328
+ "docComment": "/**\n * 历史数据翻页方向\n *\n * @public\n */\n",
2329
+ "excerptTokens": [
2330
+ {
2331
+ "kind": "Content",
2332
+ "text": "export declare type SeriesFetchDirection = "
2333
+ },
2334
+ {
2335
+ "kind": "Content",
2336
+ "text": "'backward' | 'forward'"
2337
+ },
2338
+ {
2339
+ "kind": "Content",
2340
+ "text": ";"
2341
+ }
2342
+ ],
2343
+ "releaseTag": "Public",
2344
+ "name": "SeriesFetchDirection",
2345
+ "typeTokenRange": {
2346
+ "startIndex": 1,
2347
+ "endIndex": 2
2348
+ }
2349
+ },
1652
2350
  {
1653
2351
  "kind": "Variable",
1654
2352
  "canonicalReference": "@yuants/exchange!submitOrder:var",