@xyo-network/tzero-stock-market-payload-plugin 3.4.2 → 3.4.4
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/types/Payload/PriceHistory/Payload.d.ts +17 -0
- package/dist/types/Payload/PriceHistory/Payload.d.ts.map +1 -0
- package/dist/types/Payload/PriceHistory/Schema.d.ts +3 -0
- package/dist/types/Payload/PriceHistory/Schema.d.ts.map +1 -0
- package/dist/types/Payload/PriceHistory/index.d.ts +3 -0
- package/dist/types/Payload/PriceHistory/index.d.ts.map +1 -0
- package/dist/types/Payload/Snapshot/Payload.d.ts +37 -0
- package/dist/types/Payload/Snapshot/Payload.d.ts.map +1 -0
- package/dist/types/Payload/Snapshot/Schema.d.ts +3 -0
- package/dist/types/Payload/Snapshot/Schema.d.ts.map +1 -0
- package/dist/types/Payload/Snapshot/index.d.ts +3 -0
- package/dist/types/Payload/Snapshot/index.d.ts.map +1 -0
- package/dist/types/Payload/index.d.ts +3 -0
- package/dist/types/Payload/index.d.ts.map +1 -0
- package/dist/types/Schema.d.ts +3 -0
- package/dist/types/Schema.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +7 -7
- package/dist/browser/index.d.ts +0 -53
- package/dist/neutral/index.d.ts +0 -53
- package/dist/node/index.d.ts +0 -53
|
@@ -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 type { 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,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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"}
|
|
@@ -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/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.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.9.
|
|
32
|
+
"@xyo-network/payload-model": "^3.9.36"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
36
|
-
"@xylabs/tsconfig": "^
|
|
37
|
-
"typescript": "^5.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
36
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
37
|
+
"typescript": "^5.8.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
package/dist/browser/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
2
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
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 };
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
2
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
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 };
|
package/dist/node/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
2
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
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 };
|