@grvt/client 1.6.30 → 1.6.32
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/TDG/index.d.ts +2 -1
- package/TDG/index.js +7 -0
- package/interfaces/codegen/data.interface.d.ts +5372 -2184
- package/interfaces/codegen/enums/cluster-config-type.d.ts +3 -1
- package/interfaces/codegen/enums/cluster-config-type.js +7 -1
- package/interfaces/codegen/enums/transfer-type.d.ts +3 -1
- package/interfaces/codegen/enums/transfer-type.js +7 -1
- package/interfaces/codegen/schema-maps/api_query_list_sub_account_summary_response.js +3 -3
- package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.js +22 -0
- package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_query_trading_performance_trend_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_sub_account_summary.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_sub_account_summary.js +18 -0
- package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_trend.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_trend.js +16 -0
- package/interfaces/codegen/schema-maps/flat_public_trade.js +4 -2
- package/interfaces/codegen/schema-maps/funding_account_summary.js +6 -2
- package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_request.js +20 -0
- package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_response.js +13 -0
- package/interfaces/codegen/schema-maps/snap_sub_account_summary.js +10 -2
- package/interfaces/codegen/schema-maps/sub_account_trade_aggregation_by_interval_lite.d.ts +2 -0
- package/interfaces/codegen/schema-maps/sub_account_trade_aggregation_by_interval_lite.js +14 -0
- package/package.json +2 -2
|
@@ -81,6 +81,8 @@ export declare enum EClusterConfigType {
|
|
|
81
81
|
FLAG_SNAPSHOT_CURRENCY_STORE_FIRST = "FLAG_SNAPSHOT_CURRENCY_STORE_FIRST",
|
|
82
82
|
FLAG_ENABLE_POSITION_HISTORY = "FLAG_ENABLE_POSITION_HISTORY",
|
|
83
83
|
FLAG_PUBLISH_PRICE_DATA = "FLAG_PUBLISH_PRICE_DATA",
|
|
84
|
-
FLAG_DEVIATION_PENALTY = "FLAG_DEVIATION_PENALTY"
|
|
84
|
+
FLAG_DEVIATION_PENALTY = "FLAG_DEVIATION_PENALTY",
|
|
85
|
+
CASH_CURRENCIES = "CASH_CURRENCIES",
|
|
86
|
+
FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY = "FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY"
|
|
85
87
|
}
|
|
86
88
|
export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
|
|
@@ -169,6 +169,10 @@ var EClusterConfigType;
|
|
|
169
169
|
EClusterConfigType["FLAG_PUBLISH_PRICE_DATA"] = "FLAG_PUBLISH_PRICE_DATA";
|
|
170
170
|
// Flag to control deviation penalty logic on trading checks
|
|
171
171
|
EClusterConfigType["FLAG_DEVIATION_PENALTY"] = "FLAG_DEVIATION_PENALTY";
|
|
172
|
+
// List of currency IDs considered as cash (stablecoins) for balance aggregation
|
|
173
|
+
EClusterConfigType["CASH_CURRENCIES"] = "CASH_CURRENCIES";
|
|
174
|
+
// Configurable candlestick broadcast frequency (in seconds) for spot swap instruments. 0 means disabled.
|
|
175
|
+
EClusterConfigType["FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY"] = "FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY";
|
|
172
176
|
})(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
|
|
173
177
|
exports.EClusterConfigTypeInt = Object.freeze({
|
|
174
178
|
[EClusterConfigType.CLIENT_TIER]: 1,
|
|
@@ -253,5 +257,7 @@ exports.EClusterConfigTypeInt = Object.freeze({
|
|
|
253
257
|
[EClusterConfigType.FLAG_SNAPSHOT_CURRENCY_STORE_FIRST]: 80,
|
|
254
258
|
[EClusterConfigType.FLAG_ENABLE_POSITION_HISTORY]: 81,
|
|
255
259
|
[EClusterConfigType.FLAG_PUBLISH_PRICE_DATA]: 82,
|
|
256
|
-
[EClusterConfigType.FLAG_DEVIATION_PENALTY]: 83
|
|
260
|
+
[EClusterConfigType.FLAG_DEVIATION_PENALTY]: 83,
|
|
261
|
+
[EClusterConfigType.CASH_CURRENCIES]: 84,
|
|
262
|
+
[EClusterConfigType.FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY]: 85
|
|
257
263
|
});
|
|
@@ -7,6 +7,8 @@ export declare enum ETransferType {
|
|
|
7
7
|
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL",
|
|
8
8
|
ADHOC_INCENTIVE = "ADHOC_INCENTIVE",
|
|
9
9
|
REFERRAL_INCENTIVE = "REFERRAL_INCENTIVE",
|
|
10
|
-
TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE"
|
|
10
|
+
TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE",
|
|
11
|
+
TGE_VESTING = "TGE_VESTING",
|
|
12
|
+
TGE_AIRDROP = "TGE_AIRDROP"
|
|
11
13
|
}
|
|
12
14
|
export declare const ETransferTypeInt: Record<ETransferType, number>;
|
|
@@ -21,6 +21,10 @@ var ETransferType;
|
|
|
21
21
|
ETransferType["REFERRAL_INCENTIVE"] = "REFERRAL_INCENTIVE";
|
|
22
22
|
// Transfer type for trading deposit yield incentive
|
|
23
23
|
ETransferType["TRADING_DEPOSIT_YIELD_INCENTIVE"] = "TRADING_DEPOSIT_YIELD_INCENTIVE";
|
|
24
|
+
// Transfer type for TGE vesting distribution
|
|
25
|
+
ETransferType["TGE_VESTING"] = "TGE_VESTING";
|
|
26
|
+
// Transfer type for TGE airdrop distribution
|
|
27
|
+
ETransferType["TGE_AIRDROP"] = "TGE_AIRDROP";
|
|
24
28
|
})(ETransferType || (exports.ETransferType = ETransferType = {}));
|
|
25
29
|
exports.ETransferTypeInt = Object.freeze({
|
|
26
30
|
[ETransferType.UNSPECIFIED]: 0,
|
|
@@ -31,5 +35,7 @@ exports.ETransferTypeInt = Object.freeze({
|
|
|
31
35
|
[ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5,
|
|
32
36
|
[ETransferType.ADHOC_INCENTIVE]: 6,
|
|
33
37
|
[ETransferType.REFERRAL_INCENTIVE]: 7,
|
|
34
|
-
[ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8
|
|
38
|
+
[ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8,
|
|
39
|
+
[ETransferType.TGE_VESTING]: 9,
|
|
40
|
+
[ETransferType.TGE_AIRDROP]: 10
|
|
35
41
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = void 0;
|
|
4
|
-
const
|
|
4
|
+
const api_sub_account_summary_1 = require("./api_sub_account_summary");
|
|
5
5
|
// Schema map for the 'API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_RESPONSE' struct.
|
|
6
6
|
exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
result: ['r', [
|
|
8
|
+
result: ['r', [api_sub_account_summary_1.API_SUB_ACCOUNT_SUMMARY_MAP.FULL_TO_LITE]],
|
|
9
9
|
next: 'n'
|
|
10
10
|
},
|
|
11
11
|
LITE_TO_FULL: {
|
|
12
|
-
r: ['result', [
|
|
12
|
+
r: ['result', [api_sub_account_summary_1.API_SUB_ACCOUNT_SUMMARY_MAP.LITE_TO_FULL]],
|
|
13
13
|
n: 'next'
|
|
14
14
|
}
|
|
15
15
|
});
|
package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
time_interval: 'ti',
|
|
9
|
+
start_time: 'st',
|
|
10
|
+
end_time: 'et',
|
|
11
|
+
kind: 'k',
|
|
12
|
+
main_account_id: 'ma'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
sa: 'sub_account_id',
|
|
16
|
+
ti: 'time_interval',
|
|
17
|
+
st: 'start_time',
|
|
18
|
+
et: 'end_time',
|
|
19
|
+
k: 'kind',
|
|
20
|
+
ma: 'main_account_id'
|
|
21
|
+
}
|
|
22
|
+
});
|
package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_sub_account_trade_aggregation_trend_1 = require("./api_sub_account_trade_aggregation_trend");
|
|
5
|
+
// Schema map for the 'API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE' struct.
|
|
6
|
+
exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_sub_account_trade_aggregation_trend_1.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_sub_account_trade_aggregation_trend_1.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -7,12 +7,14 @@ exports.API_QUERY_TRADING_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
|
|
|
7
7
|
sub_account_id: 'sa',
|
|
8
8
|
time_interval: 'ti',
|
|
9
9
|
start_time: 'st',
|
|
10
|
-
end_time: 'et'
|
|
10
|
+
end_time: 'et',
|
|
11
|
+
main_account_id: 'ma'
|
|
11
12
|
},
|
|
12
13
|
LITE_TO_FULL: {
|
|
13
14
|
sa: 'sub_account_id',
|
|
14
15
|
ti: 'time_interval',
|
|
15
16
|
st: 'start_time',
|
|
16
|
-
et: 'end_time'
|
|
17
|
+
et: 'end_time',
|
|
18
|
+
ma: 'main_account_id'
|
|
17
19
|
}
|
|
18
20
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SUB_ACCOUNT_SUMMARY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_SUB_ACCOUNT_SUMMARY' struct.
|
|
5
|
+
exports.API_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
event_time: 'et',
|
|
8
|
+
total_equity: 'te',
|
|
9
|
+
total_spot_balance: 'ts',
|
|
10
|
+
total_future_equity: 'tf'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
et: 'event_time',
|
|
14
|
+
te: 'total_equity',
|
|
15
|
+
ts: 'total_spot_balance',
|
|
16
|
+
tf: 'total_future_equity'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND' struct.
|
|
5
|
+
exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
start_interval: 'si',
|
|
8
|
+
end_interval: 'ei',
|
|
9
|
+
trading_volume: 'tv'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
si: 'start_interval',
|
|
13
|
+
ei: 'end_interval',
|
|
14
|
+
tv: 'trading_volume'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -17,7 +17,8 @@ exports.TRADE_MAP = Object.freeze({
|
|
|
17
17
|
venue: 'v',
|
|
18
18
|
is_liquidation: 'il',
|
|
19
19
|
trade_index: 'ti1',
|
|
20
|
-
is_rpi: 'ir1'
|
|
20
|
+
is_rpi: 'ir1',
|
|
21
|
+
is_spot_dedust: 'is'
|
|
21
22
|
},
|
|
22
23
|
LITE_TO_FULL: {
|
|
23
24
|
et: 'event_time',
|
|
@@ -33,6 +34,7 @@ exports.TRADE_MAP = Object.freeze({
|
|
|
33
34
|
v: 'venue',
|
|
34
35
|
il: 'is_liquidation',
|
|
35
36
|
ti1: 'trade_index',
|
|
36
|
-
ir1: 'is_rpi'
|
|
37
|
+
ir1: 'is_rpi',
|
|
38
|
+
is: 'is_spot_dedust'
|
|
37
39
|
}
|
|
38
40
|
});
|
|
@@ -9,12 +9,16 @@ exports.FUNDING_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
9
9
|
main_account_id: 'ma',
|
|
10
10
|
total_equity: 'te',
|
|
11
11
|
spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
|
|
12
|
-
vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]]
|
|
12
|
+
vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]],
|
|
13
|
+
total_cash_balance: 'tc',
|
|
14
|
+
total_spot_asset_balance: 'ts'
|
|
13
15
|
},
|
|
14
16
|
LITE_TO_FULL: {
|
|
15
17
|
ma: 'main_account_id',
|
|
16
18
|
te: 'total_equity',
|
|
17
19
|
sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
|
|
18
|
-
vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]]
|
|
20
|
+
vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
|
|
21
|
+
tc: 'total_cash_balance',
|
|
22
|
+
ts: 'total_spot_asset_balance'
|
|
19
23
|
}
|
|
20
24
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST' struct.
|
|
5
|
+
exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_i_ds: 'sa',
|
|
8
|
+
time_interval: 'ti',
|
|
9
|
+
start_time: 'st',
|
|
10
|
+
end_time: 'et',
|
|
11
|
+
kind: 'k'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
sa: 'sub_account_i_ds',
|
|
15
|
+
ti: 'time_interval',
|
|
16
|
+
st: 'start_time',
|
|
17
|
+
et: 'end_time',
|
|
18
|
+
k: 'kind'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE_MAP = void 0;
|
|
4
|
+
const sub_account_trade_aggregation_by_interval_lite_1 = require("./sub_account_trade_aggregation_by_interval_lite");
|
|
5
|
+
// Schema map for the 'QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [sub_account_trade_aggregation_by_interval_lite_1.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [sub_account_trade_aggregation_by_interval_lite_1.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -14,7 +14,11 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
14
14
|
positions: ['p', [position_summary_1.POSITION_SUMMARY_MAP.FULL_TO_LITE]],
|
|
15
15
|
is_vault: 'iv',
|
|
16
16
|
vault_im_additions: 'vi',
|
|
17
|
-
spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]]
|
|
17
|
+
spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
|
|
18
|
+
sub_account_mode: 'sa1',
|
|
19
|
+
total_spot_balance: 'ts',
|
|
20
|
+
future_spot_balances: ['fs', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
|
|
21
|
+
total_future_equity: 'tf'
|
|
18
22
|
},
|
|
19
23
|
LITE_TO_FULL: {
|
|
20
24
|
et: 'event_time',
|
|
@@ -25,6 +29,10 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
25
29
|
p: ['positions', [position_summary_1.POSITION_SUMMARY_MAP.LITE_TO_FULL]],
|
|
26
30
|
iv: 'is_vault',
|
|
27
31
|
vi: 'vault_im_additions',
|
|
28
|
-
sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]]
|
|
32
|
+
sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
|
|
33
|
+
sa1: 'sub_account_mode',
|
|
34
|
+
ts: 'total_spot_balance',
|
|
35
|
+
fs: ['future_spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
|
|
36
|
+
tf: 'total_future_equity'
|
|
29
37
|
}
|
|
30
38
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE' struct.
|
|
5
|
+
exports.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
start_interval: 'si',
|
|
8
|
+
total_trade_volume: 'tt'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
si: 'start_interval',
|
|
12
|
+
tt: 'total_trade_volume'
|
|
13
|
+
}
|
|
14
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grvt/client",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.32",
|
|
4
4
|
"description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"start": "tsc --watch",
|
|
25
25
|
"prebuild": "rimraf dist",
|
|
26
26
|
"build": "tsc",
|
|
27
|
-
"postbuild": "cp package.json dist/ && cp README.md dist/ && cp LICENSE dist/",
|
|
27
|
+
"postbuild": "cp package.json dist/ && cp README.md dist/ && cp LICENSE dist/ && cp src/interfaces/codegen/data.interface.ts dist/interfaces/codegen/data.interface.d.ts",
|
|
28
28
|
"prerelease": "npm run build",
|
|
29
29
|
"release": "cd dist/ && npm publish --access public",
|
|
30
30
|
"link-local": "cp package.json dist/ && cd dist/ && npm link && cd ..",
|