@xyo-network/tzero-stock-market-payload-plugin 3.4.2 → 3.4.3
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/browser/Payload/PriceHistory/Payload.d.ts +17 -0
- package/dist/browser/Payload/PriceHistory/Payload.d.ts.map +1 -0
- package/dist/browser/Payload/PriceHistory/Schema.d.ts +3 -0
- package/dist/browser/Payload/PriceHistory/Schema.d.ts.map +1 -0
- package/dist/browser/Payload/PriceHistory/index.d.ts +3 -0
- package/dist/browser/Payload/PriceHistory/index.d.ts.map +1 -0
- package/dist/browser/Payload/Snapshot/Payload.d.ts +37 -0
- package/dist/browser/Payload/Snapshot/Payload.d.ts.map +1 -0
- package/dist/browser/Payload/Snapshot/Schema.d.ts +3 -0
- package/dist/browser/Payload/Snapshot/Schema.d.ts.map +1 -0
- package/dist/browser/Payload/Snapshot/index.d.ts +3 -0
- package/dist/browser/Payload/Snapshot/index.d.ts.map +1 -0
- package/dist/browser/Payload/index.d.ts +3 -0
- package/dist/browser/Payload/index.d.ts.map +1 -0
- package/dist/browser/Schema.d.ts +3 -0
- package/dist/browser/Schema.d.ts.map +1 -0
- package/dist/browser/index.d.ts +3 -53
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.mjs +4 -1
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/Payload/PriceHistory/Payload.d.ts +17 -0
- package/dist/neutral/Payload/PriceHistory/Payload.d.ts.map +1 -0
- package/dist/neutral/Payload/PriceHistory/Schema.d.ts +3 -0
- package/dist/neutral/Payload/PriceHistory/Schema.d.ts.map +1 -0
- package/dist/neutral/Payload/PriceHistory/index.d.ts +3 -0
- package/dist/neutral/Payload/PriceHistory/index.d.ts.map +1 -0
- package/dist/neutral/Payload/Snapshot/Payload.d.ts +37 -0
- package/dist/neutral/Payload/Snapshot/Payload.d.ts.map +1 -0
- package/dist/neutral/Payload/Snapshot/Schema.d.ts +3 -0
- package/dist/neutral/Payload/Snapshot/Schema.d.ts.map +1 -0
- package/dist/neutral/Payload/Snapshot/index.d.ts +3 -0
- package/dist/neutral/Payload/Snapshot/index.d.ts.map +1 -0
- package/dist/neutral/Payload/index.d.ts +3 -0
- package/dist/neutral/Payload/index.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +3 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +3 -53
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +4 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/Payload/PriceHistory/Payload.d.ts +17 -0
- package/dist/node/Payload/PriceHistory/Payload.d.ts.map +1 -0
- package/dist/node/Payload/PriceHistory/Schema.d.ts +3 -0
- package/dist/node/Payload/PriceHistory/Schema.d.ts.map +1 -0
- package/dist/node/Payload/PriceHistory/index.d.ts +3 -0
- package/dist/node/Payload/PriceHistory/index.d.ts.map +1 -0
- package/dist/node/Payload/Snapshot/Payload.d.ts +37 -0
- package/dist/node/Payload/Snapshot/Payload.d.ts.map +1 -0
- package/dist/node/Payload/Snapshot/Schema.d.ts +3 -0
- package/dist/node/Payload/Snapshot/Schema.d.ts.map +1 -0
- package/dist/node/Payload/Snapshot/index.d.ts +3 -0
- package/dist/node/Payload/Snapshot/index.d.ts.map +1 -0
- package/dist/node/Payload/index.d.ts +3 -0
- package/dist/node/Payload/index.d.ts.map +1 -0
- package/dist/node/Schema.d.ts +3 -0
- package/dist/node/Schema.d.ts.map +1 -0
- package/dist/node/index.d.ts +3 -53
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.mjs +4 -1
- package/dist/node/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/Payload/Snapshot/Payload.ts +3 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PriceHistory {
|
|
2
|
+
close: number | null;
|
|
3
|
+
date: string;
|
|
4
|
+
high: number | null;
|
|
5
|
+
low: number | null;
|
|
6
|
+
open: number | null;
|
|
7
|
+
symbol: string;
|
|
8
|
+
volume: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PriceHistoryPageFields {
|
|
11
|
+
currentPage: number;
|
|
12
|
+
priceHistories: PriceHistory[];
|
|
13
|
+
size: number;
|
|
14
|
+
totalCount: number;
|
|
15
|
+
totalPages: number;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,YAAY,EAAE,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,QAAsC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { SnapshotSchema } from './Schema.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The fields for a Snapshot
|
|
5
|
+
*/
|
|
6
|
+
export interface SnapshotFields {
|
|
7
|
+
askPrice: number | null;
|
|
8
|
+
askPriceRate: number | null;
|
|
9
|
+
askQtyBookTotal: number | null;
|
|
10
|
+
askQuantity: number | null;
|
|
11
|
+
bidPrice: number | null;
|
|
12
|
+
bidPriceRate: number | null;
|
|
13
|
+
bidQtyBookTotal: number | null;
|
|
14
|
+
bidQuantity: number | null;
|
|
15
|
+
high: number | null;
|
|
16
|
+
lastPrice: number | null;
|
|
17
|
+
lastQuantity: number | null;
|
|
18
|
+
low: number | null;
|
|
19
|
+
open: number | null;
|
|
20
|
+
prevClosePx: number | null;
|
|
21
|
+
symbol: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
volume: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The Snapshot payload
|
|
27
|
+
*/
|
|
28
|
+
export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
|
|
29
|
+
/**
|
|
30
|
+
* Identity function for determine if an object is a Snapshot
|
|
31
|
+
*/
|
|
32
|
+
export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
|
|
33
|
+
/**
|
|
34
|
+
* Identity function for determine if an object is a Snapshot with sources
|
|
35
|
+
*/
|
|
36
|
+
export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
|
|
37
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAuC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACrE,eAAO,MAAM,sBAAsB,EAAE,sBAAyD,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface PriceHistory {
|
|
5
|
-
close: number | null;
|
|
6
|
-
date: string;
|
|
7
|
-
high: number | null;
|
|
8
|
-
low: number | null;
|
|
9
|
-
open: number | null;
|
|
10
|
-
symbol: string;
|
|
11
|
-
volume: number;
|
|
12
|
-
}
|
|
13
|
-
interface PriceHistoryPageFields {
|
|
14
|
-
currentPage: number;
|
|
15
|
-
priceHistories: PriceHistory[];
|
|
16
|
-
size: number;
|
|
17
|
-
totalCount: number;
|
|
18
|
-
totalPages: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const PriceHistorySchema: string;
|
|
22
|
-
type PriceHistorySchema = typeof PriceHistorySchema;
|
|
23
|
-
|
|
24
|
-
declare const SnapshotSchema: string;
|
|
25
|
-
type SnapshotSchema = typeof SnapshotSchema;
|
|
26
|
-
|
|
27
|
-
interface SnapshotFields {
|
|
28
|
-
askPrice: number | null;
|
|
29
|
-
askPriceRate: number | null;
|
|
30
|
-
askQtyBookTotal: number | null;
|
|
31
|
-
askQuantity: number | null;
|
|
32
|
-
bidPrice: number | null;
|
|
33
|
-
bidPriceRate: number | null;
|
|
34
|
-
bidQtyBookTotal: number | null;
|
|
35
|
-
bidQuantity: number | null;
|
|
36
|
-
high: number | null;
|
|
37
|
-
lastPrice: number | null;
|
|
38
|
-
lastQuantity: number | null;
|
|
39
|
-
low: number | null;
|
|
40
|
-
open: number | null;
|
|
41
|
-
prevClosePx: number | null;
|
|
42
|
-
symbol: string;
|
|
43
|
-
timestamp: string;
|
|
44
|
-
volume: number;
|
|
45
|
-
}
|
|
46
|
-
type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
|
|
47
|
-
declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
|
|
48
|
-
declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Snapshot>;
|
|
49
|
-
|
|
50
|
-
type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
|
|
51
|
-
declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
|
|
52
|
-
|
|
53
|
-
export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithSources };
|
|
1
|
+
export * from './Payload/index.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -5,7 +5,10 @@ var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
|
|
|
5
5
|
var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
|
|
6
6
|
|
|
7
7
|
// src/Payload/Snapshot/Payload.ts
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
isPayloadOfSchemaType,
|
|
10
|
+
isPayloadOfSchemaTypeWithSources
|
|
11
|
+
} from "@xyo-network/payload-model";
|
|
9
12
|
|
|
10
13
|
// src/Payload/Snapshot/Schema.ts
|
|
11
14
|
var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\n} from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AACO,IAAM,yBAAiD;;;ACCvD,IAAM,qBAAqB,GAAG,sBAAsB;;;ACF3D;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACAA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADmChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PriceHistory {
|
|
2
|
+
close: number | null;
|
|
3
|
+
date: string;
|
|
4
|
+
high: number | null;
|
|
5
|
+
low: number | null;
|
|
6
|
+
open: number | null;
|
|
7
|
+
symbol: string;
|
|
8
|
+
volume: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PriceHistoryPageFields {
|
|
11
|
+
currentPage: number;
|
|
12
|
+
priceHistories: PriceHistory[];
|
|
13
|
+
size: number;
|
|
14
|
+
totalCount: number;
|
|
15
|
+
totalPages: number;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,YAAY,EAAE,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,QAAsC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { SnapshotSchema } from './Schema.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The fields for a Snapshot
|
|
5
|
+
*/
|
|
6
|
+
export interface SnapshotFields {
|
|
7
|
+
askPrice: number | null;
|
|
8
|
+
askPriceRate: number | null;
|
|
9
|
+
askQtyBookTotal: number | null;
|
|
10
|
+
askQuantity: number | null;
|
|
11
|
+
bidPrice: number | null;
|
|
12
|
+
bidPriceRate: number | null;
|
|
13
|
+
bidQtyBookTotal: number | null;
|
|
14
|
+
bidQuantity: number | null;
|
|
15
|
+
high: number | null;
|
|
16
|
+
lastPrice: number | null;
|
|
17
|
+
lastQuantity: number | null;
|
|
18
|
+
low: number | null;
|
|
19
|
+
open: number | null;
|
|
20
|
+
prevClosePx: number | null;
|
|
21
|
+
symbol: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
volume: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The Snapshot payload
|
|
27
|
+
*/
|
|
28
|
+
export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
|
|
29
|
+
/**
|
|
30
|
+
* Identity function for determine if an object is a Snapshot
|
|
31
|
+
*/
|
|
32
|
+
export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
|
|
33
|
+
/**
|
|
34
|
+
* Identity function for determine if an object is a Snapshot with sources
|
|
35
|
+
*/
|
|
36
|
+
export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
|
|
37
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAuC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACrE,eAAO,MAAM,sBAAsB,EAAE,sBAAyD,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface PriceHistory {
|
|
5
|
-
close: number | null;
|
|
6
|
-
date: string;
|
|
7
|
-
high: number | null;
|
|
8
|
-
low: number | null;
|
|
9
|
-
open: number | null;
|
|
10
|
-
symbol: string;
|
|
11
|
-
volume: number;
|
|
12
|
-
}
|
|
13
|
-
interface PriceHistoryPageFields {
|
|
14
|
-
currentPage: number;
|
|
15
|
-
priceHistories: PriceHistory[];
|
|
16
|
-
size: number;
|
|
17
|
-
totalCount: number;
|
|
18
|
-
totalPages: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const PriceHistorySchema: string;
|
|
22
|
-
type PriceHistorySchema = typeof PriceHistorySchema;
|
|
23
|
-
|
|
24
|
-
declare const SnapshotSchema: string;
|
|
25
|
-
type SnapshotSchema = typeof SnapshotSchema;
|
|
26
|
-
|
|
27
|
-
interface SnapshotFields {
|
|
28
|
-
askPrice: number | null;
|
|
29
|
-
askPriceRate: number | null;
|
|
30
|
-
askQtyBookTotal: number | null;
|
|
31
|
-
askQuantity: number | null;
|
|
32
|
-
bidPrice: number | null;
|
|
33
|
-
bidPriceRate: number | null;
|
|
34
|
-
bidQtyBookTotal: number | null;
|
|
35
|
-
bidQuantity: number | null;
|
|
36
|
-
high: number | null;
|
|
37
|
-
lastPrice: number | null;
|
|
38
|
-
lastQuantity: number | null;
|
|
39
|
-
low: number | null;
|
|
40
|
-
open: number | null;
|
|
41
|
-
prevClosePx: number | null;
|
|
42
|
-
symbol: string;
|
|
43
|
-
timestamp: string;
|
|
44
|
-
volume: number;
|
|
45
|
-
}
|
|
46
|
-
type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
|
|
47
|
-
declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
|
|
48
|
-
declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Snapshot>;
|
|
49
|
-
|
|
50
|
-
type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
|
|
51
|
-
declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
|
|
52
|
-
|
|
53
|
-
export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithSources };
|
|
1
|
+
export * from './Payload/index.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -5,7 +5,10 @@ var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
|
|
|
5
5
|
var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
|
|
6
6
|
|
|
7
7
|
// src/Payload/Snapshot/Payload.ts
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
isPayloadOfSchemaType,
|
|
10
|
+
isPayloadOfSchemaTypeWithSources
|
|
11
|
+
} from "@xyo-network/payload-model";
|
|
9
12
|
|
|
10
13
|
// src/Payload/Snapshot/Schema.ts
|
|
11
14
|
var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\n} from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AACO,IAAM,yBAAiD;;;ACCvD,IAAM,qBAAqB,GAAG,sBAAsB;;;ACF3D;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACAA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADmChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PriceHistory {
|
|
2
|
+
close: number | null;
|
|
3
|
+
date: string;
|
|
4
|
+
high: number | null;
|
|
5
|
+
low: number | null;
|
|
6
|
+
open: number | null;
|
|
7
|
+
symbol: string;
|
|
8
|
+
volume: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PriceHistoryPageFields {
|
|
11
|
+
currentPage: number;
|
|
12
|
+
priceHistories: PriceHistory[];
|
|
13
|
+
size: number;
|
|
14
|
+
totalCount: number;
|
|
15
|
+
totalPages: number;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,YAAY,EAAE,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,QAAsC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/PriceHistory/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { SnapshotSchema } from './Schema.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The fields for a Snapshot
|
|
5
|
+
*/
|
|
6
|
+
export interface SnapshotFields {
|
|
7
|
+
askPrice: number | null;
|
|
8
|
+
askPriceRate: number | null;
|
|
9
|
+
askQtyBookTotal: number | null;
|
|
10
|
+
askQuantity: number | null;
|
|
11
|
+
bidPrice: number | null;
|
|
12
|
+
bidPriceRate: number | null;
|
|
13
|
+
bidQtyBookTotal: number | null;
|
|
14
|
+
bidQuantity: number | null;
|
|
15
|
+
high: number | null;
|
|
16
|
+
lastPrice: number | null;
|
|
17
|
+
lastQuantity: number | null;
|
|
18
|
+
low: number | null;
|
|
19
|
+
open: number | null;
|
|
20
|
+
prevClosePx: number | null;
|
|
21
|
+
symbol: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
volume: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The Snapshot payload
|
|
27
|
+
*/
|
|
28
|
+
export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
|
|
29
|
+
/**
|
|
30
|
+
* Identity function for determine if an object is a Snapshot
|
|
31
|
+
*/
|
|
32
|
+
export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
|
|
33
|
+
/**
|
|
34
|
+
* Identity function for determine if an object is a Snapshot with sources
|
|
35
|
+
*/
|
|
36
|
+
export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
|
|
37
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,OAAO,EACjE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAuC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,gCAAgC,CAAA;AACrE,eAAO,MAAM,sBAAsB,EAAE,sBAAyD,CAAA"}
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface PriceHistory {
|
|
5
|
-
close: number | null;
|
|
6
|
-
date: string;
|
|
7
|
-
high: number | null;
|
|
8
|
-
low: number | null;
|
|
9
|
-
open: number | null;
|
|
10
|
-
symbol: string;
|
|
11
|
-
volume: number;
|
|
12
|
-
}
|
|
13
|
-
interface PriceHistoryPageFields {
|
|
14
|
-
currentPage: number;
|
|
15
|
-
priceHistories: PriceHistory[];
|
|
16
|
-
size: number;
|
|
17
|
-
totalCount: number;
|
|
18
|
-
totalPages: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const PriceHistorySchema: string;
|
|
22
|
-
type PriceHistorySchema = typeof PriceHistorySchema;
|
|
23
|
-
|
|
24
|
-
declare const SnapshotSchema: string;
|
|
25
|
-
type SnapshotSchema = typeof SnapshotSchema;
|
|
26
|
-
|
|
27
|
-
interface SnapshotFields {
|
|
28
|
-
askPrice: number | null;
|
|
29
|
-
askPriceRate: number | null;
|
|
30
|
-
askQtyBookTotal: number | null;
|
|
31
|
-
askQuantity: number | null;
|
|
32
|
-
bidPrice: number | null;
|
|
33
|
-
bidPriceRate: number | null;
|
|
34
|
-
bidQtyBookTotal: number | null;
|
|
35
|
-
bidQuantity: number | null;
|
|
36
|
-
high: number | null;
|
|
37
|
-
lastPrice: number | null;
|
|
38
|
-
lastQuantity: number | null;
|
|
39
|
-
low: number | null;
|
|
40
|
-
open: number | null;
|
|
41
|
-
prevClosePx: number | null;
|
|
42
|
-
symbol: string;
|
|
43
|
-
timestamp: string;
|
|
44
|
-
volume: number;
|
|
45
|
-
}
|
|
46
|
-
type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
|
|
47
|
-
declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
|
|
48
|
-
declare const isSnapshotWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<Snapshot>;
|
|
49
|
-
|
|
50
|
-
type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero';
|
|
51
|
-
declare const TZeroStockMarketSchema: TZeroStockMarketSchema;
|
|
52
|
-
|
|
53
|
-
export { type PriceHistory, type PriceHistoryPageFields, PriceHistorySchema, type Snapshot, type SnapshotFields, SnapshotSchema, TZeroStockMarketSchema, isSnapshot, isSnapshotWithSources };
|
|
1
|
+
export * from './Payload/index.ts';
|
|
2
|
+
export * from './Schema.ts';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -5,7 +5,10 @@ var TZeroStockMarketSchema = "network.xyo.stock.market.tzero";
|
|
|
5
5
|
var PriceHistorySchema = `${TZeroStockMarketSchema}.history`;
|
|
6
6
|
|
|
7
7
|
// src/Payload/Snapshot/Payload.ts
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
isPayloadOfSchemaType,
|
|
10
|
+
isPayloadOfSchemaTypeWithSources
|
|
11
|
+
} from "@xyo-network/payload-model";
|
|
9
12
|
|
|
10
13
|
// src/Payload/Snapshot/Schema.ts
|
|
11
14
|
var SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`;
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload/PriceHistory/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"sourcesContent":["export type TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\nexport const TZeroStockMarketSchema: TZeroStockMarketSchema = 'network.xyo.stock.market.tzero'\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = `${TZeroStockMarketSchema}.history`\nexport type PriceHistorySchema = typeof PriceHistorySchema\n","import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,\n} from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n","import { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = `${TZeroStockMarketSchema}.snapshot`\nexport type SnapshotSchema = typeof SnapshotSchema\n"],"mappings":";AACO,IAAM,yBAAiD;;;ACCvD,IAAM,qBAAqB,GAAG,sBAAsB;;;ACF3D;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACAA,IAAM,iBAAiB,GAAG,sBAAsB;;;ADmChD,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/tzero-stock-market-payload-plugin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.9.
|
|
32
|
+
"@xyo-network/payload-model": "^3.9.23"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
36
|
-
"@xylabs/tsconfig": "^5.0.
|
|
37
|
-
"typescript": "^5.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
36
|
+
"@xylabs/tsconfig": "^5.0.39",
|
|
37
|
+
"typescript": "^5.8.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, Payload,
|
|
3
|
+
} from '@xyo-network/payload-model'
|
|
3
4
|
|
|
4
5
|
import { SnapshotSchema } from './Schema.ts'
|
|
5
6
|
|