@grvt/client 1.4.22 → 1.4.23
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/interfaces/codegen/data.interface.d.ts +36 -0
- package/interfaces/codegen/schema-maps/api_ecn_from_broker_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_ecn_from_broker_request.js +22 -0
- package/interfaces/codegen/schema-maps/api_ecn_from_broker_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_ecn_from_broker_response.js +12 -0
- package/interfaces/codegen/schema-maps/ecn_to_broker_feed.d.ts +2 -0
- package/interfaces/codegen/schema-maps/ecn_to_broker_feed.js +32 -0
- package/interfaces/codegen/schema-maps/index.d.ts +5 -0
- package/interfaces/codegen/schema-maps/index.js +5 -0
- package/interfaces/codegen/schema-maps/order_metadata.js +4 -2
- package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_data_v_1.d.ts +2 -0
- package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_data_v_1.js +21 -0
- package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_selector_v_1.d.ts +2 -0
- package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_selector_v_1.js +14 -0
- package/package.json +1 -1
|
@@ -350,6 +350,17 @@ export interface IApiDropClientWsRequest {
|
|
|
350
350
|
export interface IApiDropClientWsResponse {
|
|
351
351
|
num_dropped?: number;
|
|
352
352
|
}
|
|
353
|
+
export interface IApiECNFromBrokerRequest {
|
|
354
|
+
sub_account_id?: string;
|
|
355
|
+
order_id?: string;
|
|
356
|
+
client_order_id?: string;
|
|
357
|
+
asset?: string;
|
|
358
|
+
seq_no?: string;
|
|
359
|
+
cumulative_confirmed_size?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface IApiECNFromBrokerResponse {
|
|
362
|
+
result?: boolean;
|
|
363
|
+
}
|
|
353
364
|
export interface IApiFillHistoryRequest {
|
|
354
365
|
sub_account_id?: string;
|
|
355
366
|
kind?: EKind[];
|
|
@@ -1098,6 +1109,19 @@ export interface IDepositHistory {
|
|
|
1098
1109
|
confirmed_time?: string;
|
|
1099
1110
|
from_address?: string;
|
|
1100
1111
|
}
|
|
1112
|
+
export interface IECNToBrokerFeed {
|
|
1113
|
+
order_id?: string;
|
|
1114
|
+
client_order_id?: string;
|
|
1115
|
+
sub_account_id?: string;
|
|
1116
|
+
asset?: string;
|
|
1117
|
+
seq_no?: string;
|
|
1118
|
+
cumulative_request_size?: string;
|
|
1119
|
+
cumulative_filled_size?: string;
|
|
1120
|
+
cumulative_shortfall?: string;
|
|
1121
|
+
status?: EOrderStatus;
|
|
1122
|
+
reject_reason?: EOrderRejectReason;
|
|
1123
|
+
expiry_time?: string;
|
|
1124
|
+
}
|
|
1101
1125
|
export interface IEcosystemLeaderboardUser {
|
|
1102
1126
|
account_id?: string;
|
|
1103
1127
|
rank?: number;
|
|
@@ -1338,6 +1362,7 @@ export interface IOrderMetadata {
|
|
|
1338
1362
|
trigger?: ITriggerOrderMetadata;
|
|
1339
1363
|
broker?: EBrokerTag;
|
|
1340
1364
|
source?: ESource;
|
|
1365
|
+
is_ecn?: boolean;
|
|
1341
1366
|
}
|
|
1342
1367
|
export interface IOrderState {
|
|
1343
1368
|
status?: EOrderStatus;
|
|
@@ -1787,6 +1812,17 @@ export interface IWSDepositFeedDataV1 {
|
|
|
1787
1812
|
export interface IWSDepositFeedSelectorV1 {
|
|
1788
1813
|
main_account_id?: string;
|
|
1789
1814
|
}
|
|
1815
|
+
export interface IWSECNToBrokerFeedDataV1 {
|
|
1816
|
+
stream?: string;
|
|
1817
|
+
selector?: string;
|
|
1818
|
+
sequence_number?: string;
|
|
1819
|
+
feed?: IECNToBrokerFeed;
|
|
1820
|
+
prev_sequence_number?: string;
|
|
1821
|
+
}
|
|
1822
|
+
export interface IWSECNToBrokerFeedSelectorV1 {
|
|
1823
|
+
sub_account_id?: string;
|
|
1824
|
+
instrument?: string;
|
|
1825
|
+
}
|
|
1790
1826
|
export interface IWSFillFeedDataV1 {
|
|
1791
1827
|
stream?: string;
|
|
1792
1828
|
selector?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_ECN_FROM_BROKER_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_ECN_FROM_BROKER_REQUEST' struct.
|
|
5
|
+
exports.API_ECN_FROM_BROKER_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
order_id: 'oi',
|
|
9
|
+
client_order_id: 'co',
|
|
10
|
+
asset: 'a',
|
|
11
|
+
seq_no: 'sn',
|
|
12
|
+
cumulative_confirmed_size: 'cc'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
sa: 'sub_account_id',
|
|
16
|
+
oi: 'order_id',
|
|
17
|
+
co: 'client_order_id',
|
|
18
|
+
a: 'asset',
|
|
19
|
+
sn: 'seq_no',
|
|
20
|
+
cc: 'cumulative_confirmed_size'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_ECN_FROM_BROKER_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_ECN_FROM_BROKER_RESPONSE' struct.
|
|
5
|
+
exports.API_ECN_FROM_BROKER_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
result: 'r'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
r: 'result'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ECN_TO_BROKER_FEED_MAP = void 0;
|
|
4
|
+
// Schema map for the 'ECN_TO_BROKER_FEED' struct.
|
|
5
|
+
exports.ECN_TO_BROKER_FEED_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
order_id: 'oi',
|
|
8
|
+
client_order_id: 'co',
|
|
9
|
+
sub_account_id: 'sa',
|
|
10
|
+
asset: 'a',
|
|
11
|
+
seq_no: 'sn',
|
|
12
|
+
cumulative_request_size: 'cr',
|
|
13
|
+
cumulative_filled_size: 'cf',
|
|
14
|
+
cumulative_shortfall: 'cs',
|
|
15
|
+
status: 's',
|
|
16
|
+
reject_reason: 'rr',
|
|
17
|
+
expiry_time: 'et'
|
|
18
|
+
},
|
|
19
|
+
LITE_TO_FULL: {
|
|
20
|
+
oi: 'order_id',
|
|
21
|
+
co: 'client_order_id',
|
|
22
|
+
sa: 'sub_account_id',
|
|
23
|
+
a: 'asset',
|
|
24
|
+
sn: 'seq_no',
|
|
25
|
+
cr: 'cumulative_request_size',
|
|
26
|
+
cf: 'cumulative_filled_size',
|
|
27
|
+
cs: 'cumulative_shortfall',
|
|
28
|
+
s: 'status',
|
|
29
|
+
rr: 'reject_reason',
|
|
30
|
+
et: 'expiry_time'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -28,6 +28,8 @@ export * from './api_deposit_history_request';
|
|
|
28
28
|
export * from './api_deposit_history_response';
|
|
29
29
|
export * from './api_drop_client_ws_request';
|
|
30
30
|
export * from './api_drop_client_ws_response';
|
|
31
|
+
export * from './api_ecn_from_broker_request';
|
|
32
|
+
export * from './api_ecn_from_broker_response';
|
|
31
33
|
export * from './api_fill_history_request';
|
|
32
34
|
export * from './api_fill_history_response';
|
|
33
35
|
export * from './api_find_ecosystem_epoch_metric_response';
|
|
@@ -189,6 +191,7 @@ export * from './client_order_i_ds_by_group';
|
|
|
189
191
|
export * from './currency_detail';
|
|
190
192
|
export * from './deposit';
|
|
191
193
|
export * from './deposit_history';
|
|
194
|
+
export * from './ecn_to_broker_feed';
|
|
192
195
|
export * from './ecosystem_leaderboard_user';
|
|
193
196
|
export * from './ecosystem_metric';
|
|
194
197
|
export * from './ecosystem_point';
|
|
@@ -284,6 +287,8 @@ export * from './ws_candlestick_feed_data_v_1';
|
|
|
284
287
|
export * from './ws_candlestick_feed_selector_v_1';
|
|
285
288
|
export * from './ws_deposit_feed_data_v_1';
|
|
286
289
|
export * from './ws_deposit_feed_selector_v_1';
|
|
290
|
+
export * from './wsecn_to_broker_feed_data_v_1';
|
|
291
|
+
export * from './wsecn_to_broker_feed_selector_v_1';
|
|
287
292
|
export * from './ws_fill_feed_data_v_1';
|
|
288
293
|
export * from './ws_fill_feed_selector_v_1';
|
|
289
294
|
export * from './ws_list_streams_params';
|
|
@@ -44,6 +44,8 @@ __exportStar(require("./api_deposit_history_request"), exports);
|
|
|
44
44
|
__exportStar(require("./api_deposit_history_response"), exports);
|
|
45
45
|
__exportStar(require("./api_drop_client_ws_request"), exports);
|
|
46
46
|
__exportStar(require("./api_drop_client_ws_response"), exports);
|
|
47
|
+
__exportStar(require("./api_ecn_from_broker_request"), exports);
|
|
48
|
+
__exportStar(require("./api_ecn_from_broker_response"), exports);
|
|
47
49
|
__exportStar(require("./api_fill_history_request"), exports);
|
|
48
50
|
__exportStar(require("./api_fill_history_response"), exports);
|
|
49
51
|
__exportStar(require("./api_find_ecosystem_epoch_metric_response"), exports);
|
|
@@ -205,6 +207,7 @@ __exportStar(require("./client_order_i_ds_by_group"), exports);
|
|
|
205
207
|
__exportStar(require("./currency_detail"), exports);
|
|
206
208
|
__exportStar(require("./deposit"), exports);
|
|
207
209
|
__exportStar(require("./deposit_history"), exports);
|
|
210
|
+
__exportStar(require("./ecn_to_broker_feed"), exports);
|
|
208
211
|
__exportStar(require("./ecosystem_leaderboard_user"), exports);
|
|
209
212
|
__exportStar(require("./ecosystem_metric"), exports);
|
|
210
213
|
__exportStar(require("./ecosystem_point"), exports);
|
|
@@ -300,6 +303,8 @@ __exportStar(require("./ws_candlestick_feed_data_v_1"), exports);
|
|
|
300
303
|
__exportStar(require("./ws_candlestick_feed_selector_v_1"), exports);
|
|
301
304
|
__exportStar(require("./ws_deposit_feed_data_v_1"), exports);
|
|
302
305
|
__exportStar(require("./ws_deposit_feed_selector_v_1"), exports);
|
|
306
|
+
__exportStar(require("./wsecn_to_broker_feed_data_v_1"), exports);
|
|
307
|
+
__exportStar(require("./wsecn_to_broker_feed_selector_v_1"), exports);
|
|
303
308
|
__exportStar(require("./ws_fill_feed_data_v_1"), exports);
|
|
304
309
|
__exportStar(require("./ws_fill_feed_selector_v_1"), exports);
|
|
305
310
|
__exportStar(require("./ws_list_streams_params"), exports);
|
|
@@ -9,13 +9,15 @@ exports.ORDER_METADATA_MAP = Object.freeze({
|
|
|
9
9
|
create_time: 'ct',
|
|
10
10
|
trigger: ['t', trigger_order_metadata_1.TRIGGER_ORDER_METADATA_MAP.FULL_TO_LITE],
|
|
11
11
|
broker: 'b',
|
|
12
|
-
source: 's'
|
|
12
|
+
source: 's',
|
|
13
|
+
is_ecn: 'ie'
|
|
13
14
|
},
|
|
14
15
|
LITE_TO_FULL: {
|
|
15
16
|
co: 'client_order_id',
|
|
16
17
|
ct: 'create_time',
|
|
17
18
|
t: ['trigger', trigger_order_metadata_1.TRIGGER_ORDER_METADATA_MAP.LITE_TO_FULL],
|
|
18
19
|
b: 'broker',
|
|
19
|
-
s: 'source'
|
|
20
|
+
s: 'source',
|
|
21
|
+
ie: 'is_ecn'
|
|
20
22
|
}
|
|
21
23
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WSECN_TO_BROKER_FEED_DATA_V_1_MAP = void 0;
|
|
4
|
+
const ecn_to_broker_feed_1 = require("./ecn_to_broker_feed");
|
|
5
|
+
// Schema map for the 'WSECN_TO_BROKER_FEED_DATA_V_1' struct.
|
|
6
|
+
exports.WSECN_TO_BROKER_FEED_DATA_V_1_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
stream: 's',
|
|
9
|
+
selector: 's1',
|
|
10
|
+
sequence_number: 'sn',
|
|
11
|
+
feed: ['f', ecn_to_broker_feed_1.ECN_TO_BROKER_FEED_MAP.FULL_TO_LITE],
|
|
12
|
+
prev_sequence_number: 'ps'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
s: 'stream',
|
|
16
|
+
s1: 'selector',
|
|
17
|
+
sn: 'sequence_number',
|
|
18
|
+
f: ['feed', ecn_to_broker_feed_1.ECN_TO_BROKER_FEED_MAP.LITE_TO_FULL],
|
|
19
|
+
ps: 'prev_sequence_number'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WSECN_TO_BROKER_FEED_SELECTOR_V_1_MAP = void 0;
|
|
4
|
+
// Schema map for the 'WSECN_TO_BROKER_FEED_SELECTOR_V_1' struct.
|
|
5
|
+
exports.WSECN_TO_BROKER_FEED_SELECTOR_V_1_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
instrument: 'i'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
sa: 'sub_account_id',
|
|
12
|
+
i: 'instrument'
|
|
13
|
+
}
|
|
14
|
+
});
|