@xoxno/types 1.0.288 → 1.0.290
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.
|
@@ -20,21 +20,37 @@ export declare class PerpCoinExtended extends PerpCoin {
|
|
|
20
20
|
export declare class PerpSpotCoinExtended extends PerpCoin {
|
|
21
21
|
ctx: ActiveSpotAssetCtxFull;
|
|
22
22
|
}
|
|
23
|
-
type CommonSlimSlice = 'midPx' | 'markPx' | 'prevDayPx' | 'dayNtlVlm'
|
|
24
|
-
declare type
|
|
25
|
-
export declare type
|
|
26
|
-
ctx: Pick<
|
|
23
|
+
type CommonSlimSlice = 'midPx' | 'markPx' | 'prevDayPx' | 'dayNtlVlm';
|
|
24
|
+
declare type PerpSpotCoinExtendedSlimWs_base = Pick<PerpCoin, "symbol">;
|
|
25
|
+
export declare type PerpSpotCoinExtendedSlimWs = PerpSpotCoinExtendedSlimWs_base & {
|
|
26
|
+
ctx: Pick<PerpSpotCoinExtended['ctx'], CommonSlimSlice | 'circulatingSupply'>;
|
|
27
27
|
};
|
|
28
|
-
declare const
|
|
29
|
-
export declare class
|
|
30
|
-
ctx: Pick<
|
|
28
|
+
declare const PerpSpotCoinExtendedSlimWsNest_base: import("@nestjs/common").Type<Pick<PerpCoin, "symbol">>;
|
|
29
|
+
export declare class PerpSpotCoinExtendedSlimWsNest extends PerpSpotCoinExtendedSlimWsNest_base {
|
|
30
|
+
ctx: Pick<PerpSpotCoinExtended['ctx'], CommonSlimSlice | 'circulatingSupply'>;
|
|
31
|
+
}
|
|
32
|
+
declare type PerpCoinExtendedSlimWs_base = Pick<PerpCoin, "symbol">;
|
|
33
|
+
export declare type PerpCoinExtendedSlimWs = PerpCoinExtendedSlimWs_base & {
|
|
34
|
+
ctx: Pick<PerpCoinExtended['ctx'], CommonSlimSlice | 'funding' | 'openInterest'>;
|
|
35
|
+
};
|
|
36
|
+
declare const PerpCoinExtendedSlimWsNest_base: import("@nestjs/common").Type<Pick<PerpCoin, "symbol">>;
|
|
37
|
+
export declare class PerpCoinExtendedSlimWsNest extends PerpCoinExtendedSlimWsNest_base {
|
|
38
|
+
ctx: Pick<PerpCoinExtended['ctx'], CommonSlimSlice | 'funding' | 'openInterest'>;
|
|
31
39
|
}
|
|
32
|
-
declare type PerpSpotCoinExtendedSlim_base =
|
|
40
|
+
declare type PerpSpotCoinExtendedSlim_base = Omit<PerpSpotCoinExtendedSlimWs, "ctx">;
|
|
33
41
|
export declare type PerpSpotCoinExtendedSlim = PerpSpotCoinExtendedSlim_base & {
|
|
34
|
-
ctx: Pick<PerpSpotCoinExtended['ctx'],
|
|
42
|
+
ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpSpotCoinExtended['ctx'], 'categories'>;
|
|
35
43
|
};
|
|
36
|
-
declare const PerpSpotCoinExtendedSlimNest_base: import("@nestjs/common").Type<
|
|
44
|
+
declare const PerpSpotCoinExtendedSlimNest_base: import("@nestjs/common").Type<Omit<PerpSpotCoinExtendedSlimWs, "ctx">>;
|
|
37
45
|
export declare class PerpSpotCoinExtendedSlimNest extends PerpSpotCoinExtendedSlimNest_base {
|
|
38
|
-
ctx: Pick<PerpSpotCoinExtended['ctx'],
|
|
46
|
+
ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpSpotCoinExtended['ctx'], 'categories'>;
|
|
47
|
+
}
|
|
48
|
+
declare type PerpCoinExtendedSlim_base = Omit<PerpCoinExtendedSlimWs, "ctx">;
|
|
49
|
+
export declare type PerpCoinExtendedSlim = PerpCoinExtendedSlim_base & {
|
|
50
|
+
ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpCoinExtended['ctx'], 'maxLeverage' | 'categories'>;
|
|
51
|
+
};
|
|
52
|
+
declare const PerpCoinExtendedSlimNest_base: import("@nestjs/common").Type<Omit<PerpCoinExtendedSlimWs, "ctx">>;
|
|
53
|
+
export declare class PerpCoinExtendedSlimNest extends PerpCoinExtendedSlimNest_base {
|
|
54
|
+
ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpCoinExtended['ctx'], 'maxLeverage' | 'categories'>;
|
|
39
55
|
}
|
|
40
56
|
export {};
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PerpSpotCoinExtendedSlim = exports.
|
|
12
|
+
exports.PerpCoinExtendedSlim = exports.PerpSpotCoinExtendedSlim = exports.PerpCoinExtendedSlimWs = exports.PerpSpotCoinExtendedSlimWs = exports.PerpSpotCoinExtended = exports.PerpCoinExtended = exports.PerpCoin = exports.PerpSingleCoin = exports.PerpConfig = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
class PerpConfig {
|
|
15
15
|
}
|
|
@@ -62,17 +62,29 @@ exports.PerpCoinExtended = PerpCoinExtended;
|
|
|
62
62
|
class PerpSpotCoinExtended extends PerpCoin {
|
|
63
63
|
}
|
|
64
64
|
exports.PerpSpotCoinExtended = PerpSpotCoinExtended;
|
|
65
|
-
class
|
|
65
|
+
class PerpSpotCoinExtendedSlimWs extends (0, swagger_1.PickType)(PerpCoin, [
|
|
66
66
|
'symbol',
|
|
67
67
|
]) {
|
|
68
68
|
}
|
|
69
|
-
exports.
|
|
70
|
-
class
|
|
69
|
+
exports.PerpSpotCoinExtendedSlimWs = PerpSpotCoinExtendedSlimWs;
|
|
70
|
+
class PerpCoinExtendedSlimWs extends (0, swagger_1.PickType)(PerpCoin, [
|
|
71
71
|
'symbol',
|
|
72
72
|
]) {
|
|
73
73
|
}
|
|
74
|
+
exports.PerpCoinExtendedSlimWs = PerpCoinExtendedSlimWs;
|
|
75
|
+
class PerpSpotCoinExtendedSlim extends (0, swagger_1.OmitType)(PerpSpotCoinExtendedSlimWs, ['ctx']) {
|
|
76
|
+
}
|
|
74
77
|
exports.PerpSpotCoinExtendedSlim = PerpSpotCoinExtendedSlim;
|
|
78
|
+
class PerpCoinExtendedSlim extends (0, swagger_1.OmitType)(PerpCoinExtendedSlimWs, [
|
|
79
|
+
'ctx',
|
|
80
|
+
]) {
|
|
81
|
+
}
|
|
82
|
+
exports.PerpCoinExtendedSlim = PerpCoinExtendedSlim;
|
|
75
83
|
|
|
76
|
-
exports.
|
|
84
|
+
exports.PerpSpotCoinExtendedSlimWsNest = PerpSpotCoinExtendedSlimWs;
|
|
85
|
+
|
|
86
|
+
exports.PerpCoinExtendedSlimWsNest = PerpCoinExtendedSlimWs;
|
|
77
87
|
|
|
78
88
|
exports.PerpSpotCoinExtendedSlimNest = PerpSpotCoinExtendedSlim;
|
|
89
|
+
|
|
90
|
+
exports.PerpCoinExtendedSlimNest = PerpCoinExtendedSlim;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PerpCoinTypes, PerpTradesSide } from '../../enums/perp.enum';
|
|
2
|
-
import {
|
|
3
|
-
import { PerpCoinExtendedSlim, PerpSpotCoinExtendedSlim } from './coins';
|
|
2
|
+
import { PerpCoinExtendedSlimWs, PerpSpotCoinExtendedSlimWs } from './coins';
|
|
4
3
|
import { MarginTable } from './margin-table';
|
|
4
|
+
import { ActiveAssetPerpEvent, ActiveAssetsPerpEvent, ActiveSpotAssetPerpEvent, ActiveSpotAssetsPerpEvent, L2BookPerpEvent, TradesPerpEvent } from './request';
|
|
5
5
|
export declare class L2BookPerpResponseSingle {
|
|
6
6
|
px: string;
|
|
7
7
|
sz: string;
|
|
@@ -40,7 +40,6 @@ export declare class ActivePerpAssetCtx extends AssetCtxCommon {
|
|
|
40
40
|
premium: string;
|
|
41
41
|
oraclePx: string;
|
|
42
42
|
impactTxs: string[];
|
|
43
|
-
maxLeverage: number;
|
|
44
43
|
}
|
|
45
44
|
export declare class ActiveSpotAssetCtxFull extends ActiveSpotAssetCtx {
|
|
46
45
|
categories: PerpCoinTypes[];
|
|
@@ -52,10 +51,12 @@ export declare class ActivePerpAssetCtxFull extends ActivePerpAssetCtx {
|
|
|
52
51
|
declare type ActivePerpAssetCtxHydrated_base = Omit<ActivePerpAssetCtxFull, "marginTableId">;
|
|
53
52
|
export declare type ActivePerpAssetCtxHydrated = ActivePerpAssetCtxHydrated_base & {
|
|
54
53
|
marginTable: MarginTable;
|
|
54
|
+
maxLeverage: number;
|
|
55
55
|
};
|
|
56
56
|
declare const ActivePerpAssetCtxHydratedNest_base: import("@nestjs/common").Type<Omit<ActivePerpAssetCtxFull, "marginTableId">>;
|
|
57
57
|
export declare class ActivePerpAssetCtxHydratedNest extends ActivePerpAssetCtxHydratedNest_base {
|
|
58
58
|
marginTable: MarginTable;
|
|
59
|
+
maxLeverage: number;
|
|
59
60
|
}
|
|
60
61
|
export declare class ActiveSpotAssetPerpResponse extends ActiveSpotAssetPerpEvent {
|
|
61
62
|
ctx: ActiveSpotAssetCtx;
|
|
@@ -64,10 +65,10 @@ export declare class ActiveAssetPerpResponse extends ActiveAssetPerpEvent {
|
|
|
64
65
|
ctx: ActivePerpAssetCtx;
|
|
65
66
|
}
|
|
66
67
|
export declare class ActiveSpotAssetsPerpResponse extends ActiveSpotAssetsPerpEvent {
|
|
67
|
-
tokens:
|
|
68
|
+
tokens: PerpSpotCoinExtendedSlimWs[];
|
|
68
69
|
}
|
|
69
70
|
export declare class ActiveAssetsPerpResponse extends ActiveAssetsPerpEvent {
|
|
70
|
-
tokens:
|
|
71
|
+
tokens: PerpCoinExtendedSlimWs[];
|
|
71
72
|
}
|
|
72
73
|
export declare class PerpResponse {
|
|
73
74
|
event: L2BookPerpResponse | TradesPerpResponse | ActiveSpotAssetPerpResponse | ActiveAssetPerpResponse | ActiveSpotAssetsPerpResponse | ActiveAssetsPerpResponse;
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PerpResponse = exports.ActiveAssetsPerpResponse = exports.ActiveSpotAssetsPerpResponse = exports.ActiveAssetPerpResponse = exports.ActiveSpotAssetPerpResponse = exports.ActivePerpAssetCtxHydrated = exports.ActivePerpAssetCtxFull = exports.ActiveSpotAssetCtxFull = exports.ActivePerpAssetCtx = exports.ActiveSpotAssetCtx = exports.AssetCtxCommon = exports.TradesPerpResponse = exports.TradesPerpResponseSingle = exports.L2BookPerpResponse = exports.L2BookPerpResponseSingle = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const perp_enum_1 = require("../../enums/perp.enum");
|
|
15
|
-
const request_1 = require("./request");
|
|
16
15
|
const margin_table_1 = require("./margin-table");
|
|
16
|
+
const request_1 = require("./request");
|
|
17
17
|
class L2BookPerpResponseSingle {
|
|
18
18
|
}
|
|
19
19
|
exports.L2BookPerpResponseSingle = L2BookPerpResponseSingle;
|
|
@@ -135,10 +135,6 @@ __decorate([
|
|
|
135
135
|
(0, swagger_1.ApiProperty)(),
|
|
136
136
|
__metadata("design:type", Array)
|
|
137
137
|
], ActivePerpAssetCtx.prototype, "impactTxs", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
(0, swagger_1.ApiProperty)(),
|
|
140
|
-
__metadata("design:type", Number)
|
|
141
|
-
], ActivePerpAssetCtx.prototype, "maxLeverage", void 0);
|
|
142
138
|
class ActiveSpotAssetCtxFull extends ActiveSpotAssetCtx {
|
|
143
139
|
}
|
|
144
140
|
exports.ActiveSpotAssetCtxFull = ActiveSpotAssetCtxFull;
|
|
@@ -164,6 +160,10 @@ __decorate([
|
|
|
164
160
|
(0, swagger_1.ApiProperty)(),
|
|
165
161
|
__metadata("design:type", margin_table_1.MarginTable)
|
|
166
162
|
], ActivePerpAssetCtxHydrated.prototype, "marginTable", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, swagger_1.ApiProperty)(),
|
|
165
|
+
__metadata("design:type", Number)
|
|
166
|
+
], ActivePerpAssetCtxHydrated.prototype, "maxLeverage", void 0);
|
|
167
167
|
class ActiveSpotAssetPerpResponse extends request_1.ActiveSpotAssetPerpEvent {
|
|
168
168
|
}
|
|
169
169
|
exports.ActiveSpotAssetPerpResponse = ActiveSpotAssetPerpResponse;
|