@xoxno/types 1.0.295 → 1.0.296

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.
@@ -0,0 +1,48 @@
1
+ export declare class ExchangeDto {
2
+ value: string;
3
+ name: string;
4
+ desc: string;
5
+ }
6
+ export declare class SymbolTypeDto {
7
+ name: string;
8
+ value: string;
9
+ }
10
+ export declare class DatafeedConfigurationDto {
11
+ supports_search: boolean;
12
+ supports_group_request: boolean;
13
+ supports_marks: boolean;
14
+ supports_timescale_marks: boolean;
15
+ supports_time: boolean;
16
+ supported_resolutions: string[];
17
+ exchanges: ExchangeDto[];
18
+ symbols_types: SymbolTypeDto[];
19
+ }
20
+ export declare class SymbolInfoDto {
21
+ name: string;
22
+ ticker: string;
23
+ description: string;
24
+ type: string;
25
+ session: string;
26
+ timezone: string;
27
+ exchange: string;
28
+ minmov: number;
29
+ pricescale: number;
30
+ has_intraday: boolean;
31
+ supported_resolutions: string[];
32
+ volume_precision: number;
33
+ data_status: 'streaming' | 'endofday' | 'pulsed' | 'delayed_streaming';
34
+ }
35
+ export declare class PeriodParamsDto {
36
+ from: number;
37
+ to: number;
38
+ countBack: number;
39
+ firstDataRequest: boolean;
40
+ }
41
+ export declare class BarDto {
42
+ time: number;
43
+ open: number;
44
+ high: number;
45
+ low: number;
46
+ close: number;
47
+ volume: number;
48
+ }
@@ -0,0 +1,241 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BarDto = exports.PeriodParamsDto = exports.SymbolInfoDto = exports.DatafeedConfigurationDto = exports.SymbolTypeDto = exports.ExchangeDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ class ExchangeDto {
15
+ }
16
+ exports.ExchangeDto = ExchangeDto;
17
+ __decorate([
18
+ (0, swagger_1.ApiProperty)({ example: 'BINANCE', description: 'Exchange code identifier' }),
19
+ __metadata("design:type", String)
20
+ ], ExchangeDto.prototype, "value", void 0);
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({ example: 'Binance', description: 'Exchange display name' }),
23
+ __metadata("design:type", String)
24
+ ], ExchangeDto.prototype, "name", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({
27
+ example: 'Binance Cryptocurrency Exchange',
28
+ description: 'Exchange description',
29
+ }),
30
+ __metadata("design:type", String)
31
+ ], ExchangeDto.prototype, "desc", void 0);
32
+ class SymbolTypeDto {
33
+ }
34
+ exports.SymbolTypeDto = SymbolTypeDto;
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ example: 'Crypto', description: 'Symbol type display name' }),
37
+ __metadata("design:type", String)
38
+ ], SymbolTypeDto.prototype, "name", void 0);
39
+ __decorate([
40
+ (0, swagger_1.ApiProperty)({
41
+ example: 'crypto',
42
+ description: 'Symbol type value identifier',
43
+ }),
44
+ __metadata("design:type", String)
45
+ ], SymbolTypeDto.prototype, "value", void 0);
46
+ class DatafeedConfigurationDto {
47
+ }
48
+ exports.DatafeedConfigurationDto = DatafeedConfigurationDto;
49
+ __decorate([
50
+ (0, swagger_1.ApiProperty)({
51
+ example: true,
52
+ description: 'Whether the datafeed supports symbol search',
53
+ }),
54
+ __metadata("design:type", Boolean)
55
+ ], DatafeedConfigurationDto.prototype, "supports_search", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({
58
+ example: false,
59
+ description: 'Whether the datafeed supports grouped symbol requests (legacy)',
60
+ }),
61
+ __metadata("design:type", Boolean)
62
+ ], DatafeedConfigurationDto.prototype, "supports_group_request", void 0);
63
+ __decorate([
64
+ (0, swagger_1.ApiProperty)({
65
+ example: false,
66
+ description: 'Whether the datafeed supports chart marks',
67
+ }),
68
+ __metadata("design:type", Boolean)
69
+ ], DatafeedConfigurationDto.prototype, "supports_marks", void 0);
70
+ __decorate([
71
+ (0, swagger_1.ApiProperty)({
72
+ example: false,
73
+ description: 'Whether the datafeed supports time-scale marks',
74
+ }),
75
+ __metadata("design:type", Boolean)
76
+ ], DatafeedConfigurationDto.prototype, "supports_timescale_marks", void 0);
77
+ __decorate([
78
+ (0, swagger_1.ApiProperty)({
79
+ example: true,
80
+ description: 'Whether the datafeed provides server time',
81
+ }),
82
+ __metadata("design:type", Boolean)
83
+ ], DatafeedConfigurationDto.prototype, "supports_time", void 0);
84
+ __decorate([
85
+ (0, swagger_1.ApiProperty)({
86
+ example: ['1', '5', '15', '60', '1D', '1W', '1M'],
87
+ description: 'List of supported resolutions',
88
+ isArray: true,
89
+ }),
90
+ __metadata("design:type", Array)
91
+ ], DatafeedConfigurationDto.prototype, "supported_resolutions", void 0);
92
+ __decorate([
93
+ (0, swagger_1.ApiProperty)({
94
+ type: [ExchangeDto],
95
+ description: 'Available exchanges for the datafeed',
96
+ }),
97
+ __metadata("design:type", Array)
98
+ ], DatafeedConfigurationDto.prototype, "exchanges", void 0);
99
+ __decorate([
100
+ (0, swagger_1.ApiProperty)({
101
+ type: [SymbolTypeDto],
102
+ description: 'Available symbol types (e.g. crypto, stock, futures)',
103
+ }),
104
+ __metadata("design:type", Array)
105
+ ], DatafeedConfigurationDto.prototype, "symbols_types", void 0);
106
+ class SymbolInfoDto {
107
+ }
108
+ exports.SymbolInfoDto = SymbolInfoDto;
109
+ __decorate([
110
+ (0, swagger_1.ApiProperty)({ example: 'BTCUSDT', description: 'Unique symbol name' }),
111
+ __metadata("design:type", String)
112
+ ], SymbolInfoDto.prototype, "name", void 0);
113
+ __decorate([
114
+ (0, swagger_1.ApiProperty)({ example: 'BTCUSDT', description: 'Symbol ticker identifier' }),
115
+ __metadata("design:type", String)
116
+ ], SymbolInfoDto.prototype, "ticker", void 0);
117
+ __decorate([
118
+ (0, swagger_1.ApiProperty)({
119
+ example: 'Bitcoin / Tether',
120
+ description: 'Symbol description',
121
+ }),
122
+ __metadata("design:type", String)
123
+ ], SymbolInfoDto.prototype, "description", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiProperty)({
126
+ example: 'crypto',
127
+ description: 'Symbol type (crypto, stock, etc.)',
128
+ }),
129
+ __metadata("design:type", String)
130
+ ], SymbolInfoDto.prototype, "type", void 0);
131
+ __decorate([
132
+ (0, swagger_1.ApiProperty)({ example: '24x7', description: 'Trading session hours' }),
133
+ __metadata("design:type", String)
134
+ ], SymbolInfoDto.prototype, "session", void 0);
135
+ __decorate([
136
+ (0, swagger_1.ApiProperty)({ example: 'Etc/UTC', description: 'Timezone for this symbol' }),
137
+ __metadata("design:type", String)
138
+ ], SymbolInfoDto.prototype, "timezone", void 0);
139
+ __decorate([
140
+ (0, swagger_1.ApiProperty)({ example: 'BINANCE', description: 'Exchange name or code' }),
141
+ __metadata("design:type", String)
142
+ ], SymbolInfoDto.prototype, "exchange", void 0);
143
+ __decorate([
144
+ (0, swagger_1.ApiProperty)({
145
+ example: 1,
146
+ description: 'Minimal price movement (tick size multiplier)',
147
+ }),
148
+ __metadata("design:type", Number)
149
+ ], SymbolInfoDto.prototype, "minmov", void 0);
150
+ __decorate([
151
+ (0, swagger_1.ApiProperty)({
152
+ example: 100,
153
+ description: 'Price scale factor (e.g. 100 = 2 decimal places)',
154
+ }),
155
+ __metadata("design:type", Number)
156
+ ], SymbolInfoDto.prototype, "pricescale", void 0);
157
+ __decorate([
158
+ (0, swagger_1.ApiProperty)({
159
+ example: true,
160
+ description: 'Whether intraday resolutions are supported',
161
+ }),
162
+ __metadata("design:type", Boolean)
163
+ ], SymbolInfoDto.prototype, "has_intraday", void 0);
164
+ __decorate([
165
+ (0, swagger_1.ApiProperty)({
166
+ example: ['1', '5', '15', '60', '1D'],
167
+ description: 'Resolutions supported for this symbol',
168
+ isArray: true,
169
+ }),
170
+ __metadata("design:type", Array)
171
+ ], SymbolInfoDto.prototype, "supported_resolutions", void 0);
172
+ __decorate([
173
+ (0, swagger_1.ApiProperty)({ example: 2, description: 'Precision of volume values' }),
174
+ __metadata("design:type", Number)
175
+ ], SymbolInfoDto.prototype, "volume_precision", void 0);
176
+ __decorate([
177
+ (0, swagger_1.ApiProperty)({
178
+ example: 'streaming',
179
+ enum: ['streaming', 'endofday', 'pulsed', 'delayed_streaming'],
180
+ description: 'Data status mode of the feed',
181
+ }),
182
+ __metadata("design:type", String)
183
+ ], SymbolInfoDto.prototype, "data_status", void 0);
184
+ class PeriodParamsDto {
185
+ }
186
+ exports.PeriodParamsDto = PeriodParamsDto;
187
+ __decorate([
188
+ (0, swagger_1.ApiProperty)({
189
+ example: 1730342400,
190
+ description: 'Start of requested period (Unix timestamp, seconds)',
191
+ }),
192
+ __metadata("design:type", Number)
193
+ ], PeriodParamsDto.prototype, "from", void 0);
194
+ __decorate([
195
+ (0, swagger_1.ApiProperty)({
196
+ example: 1730428800,
197
+ description: 'End of requested period (Unix timestamp, seconds)',
198
+ }),
199
+ __metadata("design:type", Number)
200
+ ], PeriodParamsDto.prototype, "to", void 0);
201
+ __decorate([
202
+ (0, swagger_1.ApiProperty)({ example: 500, description: 'Number of bars requested' }),
203
+ __metadata("design:type", Number)
204
+ ], PeriodParamsDto.prototype, "countBack", void 0);
205
+ __decorate([
206
+ (0, swagger_1.ApiProperty)({
207
+ example: true,
208
+ description: 'Whether this is the first data request (initial load)',
209
+ }),
210
+ __metadata("design:type", Boolean)
211
+ ], PeriodParamsDto.prototype, "firstDataRequest", void 0);
212
+ class BarDto {
213
+ }
214
+ exports.BarDto = BarDto;
215
+ __decorate([
216
+ (0, swagger_1.ApiProperty)({
217
+ example: 1730428800000,
218
+ description: 'Unix timestamp in milliseconds',
219
+ }),
220
+ __metadata("design:type", Number)
221
+ ], BarDto.prototype, "time", void 0);
222
+ __decorate([
223
+ (0, swagger_1.ApiProperty)({ example: 35000, description: 'Open price of the bar' }),
224
+ __metadata("design:type", Number)
225
+ ], BarDto.prototype, "open", void 0);
226
+ __decorate([
227
+ (0, swagger_1.ApiProperty)({ example: 35100, description: 'High price of the bar' }),
228
+ __metadata("design:type", Number)
229
+ ], BarDto.prototype, "high", void 0);
230
+ __decorate([
231
+ (0, swagger_1.ApiProperty)({ example: 34900, description: 'Low price of the bar' }),
232
+ __metadata("design:type", Number)
233
+ ], BarDto.prototype, "low", void 0);
234
+ __decorate([
235
+ (0, swagger_1.ApiProperty)({ example: 35050, description: 'Close price of the bar' }),
236
+ __metadata("design:type", Number)
237
+ ], BarDto.prototype, "close", void 0);
238
+ __decorate([
239
+ (0, swagger_1.ApiProperty)({ example: 125.34, description: 'Trading volume for the bar' }),
240
+ __metadata("design:type", Number)
241
+ ], BarDto.prototype, "volume", void 0);
package/dist/index.d.ts CHANGED
@@ -134,6 +134,7 @@ export * from './entities/perp/coins';
134
134
  export * from './entities/perp/margin-table';
135
135
  export * from './entities/perp/request';
136
136
  export * from './entities/perp/response';
137
+ export * from './entities/perp/tradingview';
137
138
  export * from './entities/search-data/collection-data-search.type';
138
139
  export * from './entities/search-data/event-guest-data-search.type';
139
140
  export * from './entities/search-data/event-guest-invitation-search.type';
package/dist/index.js CHANGED
@@ -150,6 +150,7 @@ __exportStar(require("./entities/perp/coins"), exports);
150
150
  __exportStar(require("./entities/perp/margin-table"), exports);
151
151
  __exportStar(require("./entities/perp/request"), exports);
152
152
  __exportStar(require("./entities/perp/response"), exports);
153
+ __exportStar(require("./entities/perp/tradingview"), exports);
153
154
  __exportStar(require("./entities/search-data/collection-data-search.type"), exports);
154
155
  __exportStar(require("./entities/search-data/event-guest-data-search.type"), exports);
155
156
  __exportStar(require("./entities/search-data/event-guest-invitation-search.type"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.295",
3
+ "version": "1.0.296",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {