@yuants/exchange 0.8.24 → 0.8.26

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.
@@ -889,7 +889,7 @@
889
889
  "excerptTokens": [
890
890
  {
891
891
  "kind": "Content",
892
- "text": "getOrderByOrderId?(credential: "
892
+ "text": "getOrderByOrderId(credential: "
893
893
  },
894
894
  {
895
895
  "kind": "Content",
@@ -926,7 +926,7 @@
926
926
  "text": ";"
927
927
  }
928
928
  ],
929
- "isOptional": true,
929
+ "isOptional": false,
930
930
  "returnTypeTokenRange": {
931
931
  "startIndex": 6,
932
932
  "endIndex": 8
@@ -1390,7 +1390,7 @@
1390
1390
  },
1391
1391
  {
1392
1392
  "kind": "Content",
1393
- "text": "<{\n order_id: string;\n }>"
1393
+ "text": "<{\n order_id: string;\n order_detail?: any;\n }>"
1394
1394
  },
1395
1395
  {
1396
1396
  "kind": "Content",
@@ -52,7 +52,7 @@ export interface IExchange<T = any> {
52
52
  cancelOrder(credential: T, order: IOrder): Promise<void>;
53
53
  credentialSchema: JSONSchema7;
54
54
  getCredentialId(credential: T): Promise<string>;
55
- getOrderByOrderId?(credential: T, params: Record<string, unknown>): Promise<any>;
55
+ getOrderByOrderId(credential: T, params: Record<string, unknown>): Promise<any>;
56
56
  getOrders(credential: T): Promise<IOrder[]>;
57
57
  getOrdersByProductId(credential: T, product_id: string): Promise<IOrder[]>;
58
58
  getPositions(credential: T): Promise<IPosition[]>;
@@ -62,6 +62,7 @@ export interface IExchange<T = any> {
62
62
  name: string;
63
63
  submitOrder(credential: T, order: IOrder): Promise<{
64
64
  order_id: string;
65
+ order_detail?: any;
65
66
  }>;
66
67
  }
67
68
 
@@ -1,13 +1,13 @@
1
1
  {
2
- "libraries/exchange/CHANGELOG.json": "482e9682ecc1ad5e08a64d829b80718ed551117b",
3
- "libraries/exchange/CHANGELOG.md": "756024f66298bbf28c2c1004d7f9d0406c3e8d20",
2
+ "libraries/exchange/CHANGELOG.json": "e32364bb63919fab849a8058461421ccebf4a86a",
3
+ "libraries/exchange/CHANGELOG.md": "1fe47453701df09793081d6b97b23920326685d5",
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": "3f30bae94d7663dad2ec7bbc3eb33395f2a5398f",
9
- "libraries/exchange/package.json": "e9e9bd60d1a0a330d761c4a4a46496937f9d0158",
10
- "libraries/exchange/src/index.ts": "ee7b7eaaa52b2cb8e4766a3b5549ff4840cbe210",
8
+ "libraries/exchange/etc/exchange.api.md": "4bda8410d203924d684163ef8880e7a8a82fedc1",
9
+ "libraries/exchange/package.json": "2a8de746752731827653be0531a11ad3ef850ab7",
10
+ "libraries/exchange/src/index.ts": "dd11546fa21d17667adb58acb0eb5b4d5fca449d",
11
11
  "libraries/exchange/src/interest_rate.test.ts": "9197fe2ace778d3dd6ef6043926d776abf21ab89",
12
12
  "libraries/exchange/src/interest_rate.ts": "4a0a0ade0a5508fd5660af96a3ade416c97f5436",
13
13
  "libraries/exchange/src/ohlc.test.ts": "975b880372c2c608d09944a37e294244bd6e488b",
@@ -1 +1 @@
1
- {"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/quote.test.js":[1,918],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/ohlc.test.js":[1,919],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/interest_rate.test.js":[1,933]}
1
+ {"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/quote.test.js":[1,850],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/interest_rate.test.js":[1,905],"/home/runner/work/Yuan/Yuan/libraries/exchange/lib/ohlc.test.js":[1,933]}