@grvt/client 1.6.4 → 1.6.6
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 +60 -4
- package/interfaces/codegen/enums/cluster-config-type.d.ts +6 -1
- package/interfaces/codegen/enums/cluster-config-type.js +16 -1
- package/interfaces/codegen/enums/order-reject-reason.d.ts +2 -1
- package/interfaces/codegen/enums/order-reject-reason.js +4 -1
- package/interfaces/codegen/enums/transaction-type.d.ts +2 -1
- package/interfaces/codegen/enums/transaction-type.js +3 -1
- package/interfaces/codegen/enums/transfer-type.d.ts +4 -1
- package/interfaces/codegen/enums/transfer-type.js +10 -1
- package/interfaces/codegen/schema-maps/aggregated_account_summary.js +4 -2
- package/interfaces/codegen/schema-maps/api_get_all_instruments_response.js +3 -3
- package/interfaces/codegen/schema-maps/api_get_cev_access_tiers_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_cev_access_tiers_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_get_filtered_instruments_response.js +3 -3
- package/interfaces/codegen/schema-maps/api_get_instrument_response.js +3 -3
- package/interfaces/codegen/schema-maps/api_set_cev_access_tiers_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_set_cev_access_tiers_request.js +18 -0
- package/interfaces/codegen/schema-maps/api_transfer_history_request.js +4 -2
- package/interfaces/codegen/schema-maps/cev_access_tier.d.ts +2 -0
- package/interfaces/codegen/schema-maps/cev_access_tier.js +20 -0
- package/interfaces/codegen/schema-maps/cev_access_tier_overwrite.d.ts +2 -0
- package/interfaces/codegen/schema-maps/cev_access_tier_overwrite.js +16 -0
- package/interfaces/codegen/schema-maps/epoch_point.js +4 -2
- package/interfaces/codegen/schema-maps/first_session_airdrop_info.d.ts +2 -0
- package/interfaces/codegen/schema-maps/first_session_airdrop_info.js +20 -0
- package/interfaces/codegen/schema-maps/funding_info.d.ts +2 -0
- package/interfaces/codegen/schema-maps/funding_info.js +18 -0
- package/interfaces/codegen/schema-maps/instrument_display.d.ts +2 -0
- package/interfaces/codegen/schema-maps/{instrument.js → instrument_display.js} +13 -5
- package/interfaces/codegen/schema-maps/order_metadata.js +4 -2
- package/interfaces/codegen/schema-maps/query_first_session_airdrop_info_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_first_session_airdrop_info_request.js +12 -0
- package/interfaces/codegen/schema-maps/query_first_session_airdrop_info_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_first_session_airdrop_info_response.js +13 -0
- package/interfaces/codegen/schema-maps/reward_metric_point_metadata.js +4 -2
- package/interfaces/codegen/schema-maps/signature.js +4 -2
- package/interfaces/codegen/schema-maps/snap_ticker.js +8 -2
- package/interfaces/codegen/schema-maps/sub_account_trading_performance.js +4 -2
- package/interfaces/codegen/schema-maps/trading_performance.js +4 -2
- package/interfaces/codegen/schema-maps/trading_performance_trend_point.js +4 -2
- package/package.json +1 -1
- package/interfaces/codegen/schema-maps/instrument.d.ts +0 -2
|
@@ -47,6 +47,7 @@ export interface IAggregatedAccountSummary {
|
|
|
47
47
|
total_equity?: string;
|
|
48
48
|
spot_balances?: ISpotBalance[];
|
|
49
49
|
vault_investments?: IVaultInvestment[];
|
|
50
|
+
total_sub_account_balance?: string;
|
|
50
51
|
}
|
|
51
52
|
export interface IApiAggregatedAccountSummaryResponse {
|
|
52
53
|
result?: IAggregatedAccountSummary;
|
|
@@ -398,7 +399,11 @@ export interface IApiGetAllInstrumentsRequest {
|
|
|
398
399
|
is_active?: boolean;
|
|
399
400
|
}
|
|
400
401
|
export interface IApiGetAllInstrumentsResponse {
|
|
401
|
-
result?:
|
|
402
|
+
result?: IInstrumentDisplay[];
|
|
403
|
+
}
|
|
404
|
+
export interface IApiGetCEVAccessTiersResponse {
|
|
405
|
+
enabled?: boolean;
|
|
406
|
+
tiers?: ICEVAccessTier[];
|
|
402
407
|
}
|
|
403
408
|
export interface IApiGetClientTiersResponse {
|
|
404
409
|
tiers?: IClientTier[];
|
|
@@ -438,13 +443,13 @@ export interface IApiGetFilteredInstrumentsRequest {
|
|
|
438
443
|
limit?: number;
|
|
439
444
|
}
|
|
440
445
|
export interface IApiGetFilteredInstrumentsResponse {
|
|
441
|
-
result?:
|
|
446
|
+
result?: IInstrumentDisplay[];
|
|
442
447
|
}
|
|
443
448
|
export interface IApiGetInstrumentRequest {
|
|
444
449
|
instrument?: string;
|
|
445
450
|
}
|
|
446
451
|
export interface IApiGetInstrumentResponse {
|
|
447
|
-
result?:
|
|
452
|
+
result?: IInstrumentDisplay;
|
|
448
453
|
}
|
|
449
454
|
export interface IApiGetLPInfoRequest {
|
|
450
455
|
kind?: EKind;
|
|
@@ -795,6 +800,11 @@ export interface IApiRewardLeaderboardItem {
|
|
|
795
800
|
rank?: number;
|
|
796
801
|
point?: string;
|
|
797
802
|
}
|
|
803
|
+
export interface IApiSetCEVAccessTiersRequest {
|
|
804
|
+
enabled?: boolean;
|
|
805
|
+
tiers?: ICEVAccessTier[];
|
|
806
|
+
overwrites?: ICEVAccessTierOverwrite[];
|
|
807
|
+
}
|
|
798
808
|
export interface IApiSetClientTiersRequest {
|
|
799
809
|
tiers?: IClientTier[];
|
|
800
810
|
}
|
|
@@ -931,6 +941,7 @@ export interface IApiTransferHistoryRequest {
|
|
|
931
941
|
cursor?: string;
|
|
932
942
|
tx_id?: string;
|
|
933
943
|
main_account_id?: string;
|
|
944
|
+
transfer_types?: ETransferType[];
|
|
934
945
|
}
|
|
935
946
|
export interface IApiTransferHistoryResponse {
|
|
936
947
|
result?: ITransferHistory[];
|
|
@@ -1125,6 +1136,18 @@ export interface IBatchCreateAccountMultiplierElement {
|
|
|
1125
1136
|
account_type?: EAccountType;
|
|
1126
1137
|
multiplier?: number;
|
|
1127
1138
|
}
|
|
1139
|
+
export interface ICEVAccessTier {
|
|
1140
|
+
idx?: number;
|
|
1141
|
+
lifetime_trading_volume_range_start?: string;
|
|
1142
|
+
lifetime_trading_volume_range_end?: string;
|
|
1143
|
+
allocation_total_equity_percentage_centi_beeps?: number;
|
|
1144
|
+
allocation_max_cap?: string;
|
|
1145
|
+
}
|
|
1146
|
+
export interface ICEVAccessTierOverwrite {
|
|
1147
|
+
main_account_id?: string;
|
|
1148
|
+
access_tier_level?: number;
|
|
1149
|
+
allocation_max_cap?: string;
|
|
1150
|
+
}
|
|
1128
1151
|
export interface ICEVAllocStatsAccOverview {
|
|
1129
1152
|
total_allocation?: string;
|
|
1130
1153
|
total_invested?: string;
|
|
@@ -1319,6 +1342,7 @@ export interface IEpochPoint {
|
|
|
1319
1342
|
epoch?: number;
|
|
1320
1343
|
off_chain_account_id?: string;
|
|
1321
1344
|
point?: string;
|
|
1345
|
+
reserve_point?: string;
|
|
1322
1346
|
}
|
|
1323
1347
|
export interface IEpochPointStats {
|
|
1324
1348
|
epoch?: number;
|
|
@@ -1360,6 +1384,13 @@ export interface IFill {
|
|
|
1360
1384
|
is_rpi?: boolean;
|
|
1361
1385
|
source?: ESource;
|
|
1362
1386
|
}
|
|
1387
|
+
export interface IFirstSessionAirdropInfo {
|
|
1388
|
+
off_chain_account_id?: string;
|
|
1389
|
+
airdrop_ratio?: string;
|
|
1390
|
+
total_ecosystem_point?: string;
|
|
1391
|
+
total_trader_point?: string;
|
|
1392
|
+
total_lp_point?: string;
|
|
1393
|
+
}
|
|
1363
1394
|
export interface IFlatReferral {
|
|
1364
1395
|
account_id?: string;
|
|
1365
1396
|
referrer_id?: string;
|
|
@@ -1379,6 +1410,12 @@ export interface IFundingAccountSummary {
|
|
|
1379
1410
|
spot_balances?: ISpotBalance[];
|
|
1380
1411
|
vault_investments?: IVaultInvestment[];
|
|
1381
1412
|
}
|
|
1413
|
+
export interface IFundingInfo {
|
|
1414
|
+
interval_hours?: number;
|
|
1415
|
+
funding_rate_high_pct?: string;
|
|
1416
|
+
funding_rate_low_pct?: string;
|
|
1417
|
+
update_time?: string;
|
|
1418
|
+
}
|
|
1382
1419
|
export interface IFundingPayment {
|
|
1383
1420
|
event_time?: string;
|
|
1384
1421
|
sub_account_id?: string;
|
|
@@ -1405,7 +1442,7 @@ export interface IInitialLeverageResult {
|
|
|
1405
1442
|
min_leverage?: string;
|
|
1406
1443
|
max_leverage?: string;
|
|
1407
1444
|
}
|
|
1408
|
-
export interface
|
|
1445
|
+
export interface IInstrumentDisplay {
|
|
1409
1446
|
instrument?: string;
|
|
1410
1447
|
instrument_hash?: string;
|
|
1411
1448
|
base?: string;
|
|
@@ -1422,6 +1459,10 @@ export interface IInstrument {
|
|
|
1422
1459
|
min_block_trade_size?: string;
|
|
1423
1460
|
create_time?: string;
|
|
1424
1461
|
max_position_size?: string;
|
|
1462
|
+
funding_methodology_version?: number;
|
|
1463
|
+
funding_interval_hours?: number;
|
|
1464
|
+
adjusted_funding_rate_cap?: string;
|
|
1465
|
+
adjusted_funding_rate_floor?: string;
|
|
1425
1466
|
}
|
|
1426
1467
|
export interface IJSONRPCRequest {
|
|
1427
1468
|
jsonrpc?: string;
|
|
@@ -1531,6 +1572,7 @@ export interface IOrderMetadata {
|
|
|
1531
1572
|
source?: ESource;
|
|
1532
1573
|
is_ecn?: boolean;
|
|
1533
1574
|
is_position_transfer?: boolean;
|
|
1575
|
+
allow_crossing?: boolean;
|
|
1534
1576
|
}
|
|
1535
1577
|
export interface IOrderState {
|
|
1536
1578
|
status?: EOrderStatus;
|
|
@@ -1637,6 +1679,12 @@ export interface IQueryFindEpochRequest {
|
|
|
1637
1679
|
export interface IQueryFindEpochResponse {
|
|
1638
1680
|
epoch?: IEpoch;
|
|
1639
1681
|
}
|
|
1682
|
+
export interface IQueryFirstSessionAirdropInfoRequest {
|
|
1683
|
+
off_chain_account_id?: string;
|
|
1684
|
+
}
|
|
1685
|
+
export interface IQueryFirstSessionAirdropInfoResponse {
|
|
1686
|
+
info?: IFirstSessionAirdropInfo;
|
|
1687
|
+
}
|
|
1640
1688
|
export interface IQueryGetLatestLPSnapshotResponse {
|
|
1641
1689
|
snapshot?: ILPSnapshot;
|
|
1642
1690
|
}
|
|
@@ -1734,6 +1782,7 @@ export interface IRewardEpochInfo {
|
|
|
1734
1782
|
export interface IRewardMetricPointMetadata {
|
|
1735
1783
|
band_index?: number;
|
|
1736
1784
|
account_multiplier?: string;
|
|
1785
|
+
note?: string;
|
|
1737
1786
|
}
|
|
1738
1787
|
export interface IRewardReferralPoint {
|
|
1739
1788
|
off_chain_account_id?: string;
|
|
@@ -1754,6 +1803,7 @@ export interface ISignature {
|
|
|
1754
1803
|
v?: number;
|
|
1755
1804
|
expiration?: string;
|
|
1756
1805
|
nonce?: number;
|
|
1806
|
+
chain_id?: string;
|
|
1757
1807
|
}
|
|
1758
1808
|
export interface ISnapAccountSummary {
|
|
1759
1809
|
start_interval?: string;
|
|
@@ -1838,6 +1888,7 @@ export interface ISubAccountTradingPerformance {
|
|
|
1838
1888
|
unrealized_pnl?: string;
|
|
1839
1889
|
is_unrealized_pnl_snapshotted?: boolean;
|
|
1840
1890
|
funding_payment_amount?: string;
|
|
1891
|
+
filled_order_count?: string;
|
|
1841
1892
|
}
|
|
1842
1893
|
export interface ITPSLOrderMetadata {
|
|
1843
1894
|
trigger_by?: ETriggerBy;
|
|
@@ -1869,6 +1920,9 @@ export interface ITicker {
|
|
|
1869
1920
|
open_price?: string;
|
|
1870
1921
|
open_interest?: string;
|
|
1871
1922
|
long_short_ratio?: string;
|
|
1923
|
+
funding_rate?: string;
|
|
1924
|
+
funding_interval_hours?: number;
|
|
1925
|
+
next_funding_time?: string;
|
|
1872
1926
|
}
|
|
1873
1927
|
export interface ITimedAssetExposureSummary {
|
|
1874
1928
|
start_interval?: string;
|
|
@@ -1911,6 +1965,7 @@ export interface ITradingPerformance {
|
|
|
1911
1965
|
is_unrealized_pnl_snapshotted?: boolean;
|
|
1912
1966
|
last_start_interval?: string;
|
|
1913
1967
|
funding_payment_amount?: string;
|
|
1968
|
+
filled_order_count?: string;
|
|
1914
1969
|
}
|
|
1915
1970
|
export interface ITradingPerformanceTrendPoint {
|
|
1916
1971
|
start_interval?: string;
|
|
@@ -1922,6 +1977,7 @@ export interface ITradingPerformanceTrendPoint {
|
|
|
1922
1977
|
unrealized_pnl?: string;
|
|
1923
1978
|
is_unrealized_pnl_snapshotted?: boolean;
|
|
1924
1979
|
funding_payment_amount?: string;
|
|
1980
|
+
filled_order_count?: string;
|
|
1925
1981
|
}
|
|
1926
1982
|
export interface ITransferHistory {
|
|
1927
1983
|
tx_id?: string;
|
|
@@ -39,6 +39,11 @@ export declare enum EClusterConfigType {
|
|
|
39
39
|
FLAG_ENABLE_MSG_TIMER = "FLAG_ENABLE_MSG_TIMER",
|
|
40
40
|
FLAG_ENABLE_POSITION_TRANSFER = "FLAG_ENABLE_POSITION_TRANSFER",
|
|
41
41
|
FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT = "FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT",
|
|
42
|
-
FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE"
|
|
42
|
+
FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE",
|
|
43
|
+
FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES = "FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES",
|
|
44
|
+
FLAG_ENABLE_SESSION_KEY_PERMISSION_EXTENSION = "FLAG_ENABLE_SESSION_KEY_PERMISSION_EXTENSION",
|
|
45
|
+
FUNDING_V_2 = "FUNDING_V_2",
|
|
46
|
+
FLAG_ALLOW_POST_ONLY_TO_CROSS_ORDERBOOK = "FLAG_ALLOW_POST_ONLY_TO_CROSS_ORDERBOOK",
|
|
47
|
+
FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX = "FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX"
|
|
43
48
|
}
|
|
44
49
|
export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
|
|
@@ -85,6 +85,16 @@ var EClusterConfigType;
|
|
|
85
85
|
EClusterConfigType["FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT"] = "FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT";
|
|
86
86
|
// Flag to let scribe write to local file storage
|
|
87
87
|
EClusterConfigType["FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE"] = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE";
|
|
88
|
+
// Flag to exclude liquidation from public trades
|
|
89
|
+
EClusterConfigType["FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES"] = "FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES";
|
|
90
|
+
// Flag to enable session key permission extension for internal transfer, vault redeem and invest
|
|
91
|
+
EClusterConfigType["FLAG_ENABLE_SESSION_KEY_PERMISSION_EXTENSION"] = "FLAG_ENABLE_SESSION_KEY_PERMISSION_EXTENSION";
|
|
92
|
+
// Configs for migrating GRVT funding rate v2 methodology
|
|
93
|
+
EClusterConfigType["FUNDING_V_2"] = "FUNDING_V_2";
|
|
94
|
+
// Flag to enable post-only to cross orderbook
|
|
95
|
+
EClusterConfigType["FLAG_ALLOW_POST_ONLY_TO_CROSS_ORDERBOOK"] = "FLAG_ALLOW_POST_ONLY_TO_CROSS_ORDERBOOK";
|
|
96
|
+
// Flag to enable update funding info fix
|
|
97
|
+
EClusterConfigType["FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX"] = "FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX";
|
|
88
98
|
})(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
|
|
89
99
|
exports.EClusterConfigTypeInt = Object.freeze({
|
|
90
100
|
[EClusterConfigType.CLIENT_TIER]: 1,
|
|
@@ -127,5 +137,10 @@ exports.EClusterConfigTypeInt = Object.freeze({
|
|
|
127
137
|
[EClusterConfigType.FLAG_ENABLE_MSG_TIMER]: 38,
|
|
128
138
|
[EClusterConfigType.FLAG_ENABLE_POSITION_TRANSFER]: 39,
|
|
129
139
|
[EClusterConfigType.FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT]: 40,
|
|
130
|
-
[EClusterConfigType.FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE]: 41
|
|
140
|
+
[EClusterConfigType.FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE]: 41,
|
|
141
|
+
[EClusterConfigType.FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES]: 42,
|
|
142
|
+
[EClusterConfigType.FLAG_ENABLE_SESSION_KEY_PERMISSION_EXTENSION]: 43,
|
|
143
|
+
[EClusterConfigType.FUNDING_V_2]: 44,
|
|
144
|
+
[EClusterConfigType.FLAG_ALLOW_POST_ONLY_TO_CROSS_ORDERBOOK]: 45,
|
|
145
|
+
[EClusterConfigType.FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX]: 46
|
|
131
146
|
});
|
|
@@ -36,6 +36,7 @@ export declare enum EOrderRejectReason {
|
|
|
36
36
|
DERISK_MUST_BE_REDUCE_ONLY = "DERISK_MUST_BE_REDUCE_ONLY",
|
|
37
37
|
DERISK_NOT_SUPPORTED = "DERISK_NOT_SUPPORTED",
|
|
38
38
|
INVALID_ORDER_TYPE = "INVALID_ORDER_TYPE",
|
|
39
|
-
CURRENCY_NOT_DEFINED = "CURRENCY_NOT_DEFINED"
|
|
39
|
+
CURRENCY_NOT_DEFINED = "CURRENCY_NOT_DEFINED",
|
|
40
|
+
INVALID_CHAIN_ID = "INVALID_CHAIN_ID"
|
|
40
41
|
}
|
|
41
42
|
export declare const EOrderRejectReasonInt: Record<EOrderRejectReason, number>;
|
|
@@ -79,6 +79,8 @@ var EOrderRejectReason;
|
|
|
79
79
|
EOrderRejectReason["INVALID_ORDER_TYPE"] = "INVALID_ORDER_TYPE";
|
|
80
80
|
// the currency is not defined
|
|
81
81
|
EOrderRejectReason["CURRENCY_NOT_DEFINED"] = "CURRENCY_NOT_DEFINED";
|
|
82
|
+
// the chain ID is invalid
|
|
83
|
+
EOrderRejectReason["INVALID_CHAIN_ID"] = "INVALID_CHAIN_ID";
|
|
82
84
|
})(EOrderRejectReason || (exports.EOrderRejectReason = EOrderRejectReason = {}));
|
|
83
85
|
exports.EOrderRejectReasonInt = Object.freeze({
|
|
84
86
|
[EOrderRejectReason.UNSPECIFIED]: 0,
|
|
@@ -118,5 +120,6 @@ exports.EOrderRejectReasonInt = Object.freeze({
|
|
|
118
120
|
[EOrderRejectReason.DERISK_MUST_BE_REDUCE_ONLY]: 34,
|
|
119
121
|
[EOrderRejectReason.DERISK_NOT_SUPPORTED]: 35,
|
|
120
122
|
[EOrderRejectReason.INVALID_ORDER_TYPE]: 36,
|
|
121
|
-
[EOrderRejectReason.CURRENCY_NOT_DEFINED]: 37
|
|
123
|
+
[EOrderRejectReason.CURRENCY_NOT_DEFINED]: 37,
|
|
124
|
+
[EOrderRejectReason.INVALID_CHAIN_ID]: 38
|
|
122
125
|
});
|
|
@@ -47,6 +47,7 @@ export declare enum ETransactionType {
|
|
|
47
47
|
VAULT_MANAGEMENT_FEE_TICK = "VAULT_MANAGEMENT_FEE_TICK",
|
|
48
48
|
ADD_CURRENCY = "ADD_CURRENCY",
|
|
49
49
|
SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO",
|
|
50
|
-
VAULT_CROSS_EXCHANGE_UPDATE = "VAULT_CROSS_EXCHANGE_UPDATE"
|
|
50
|
+
VAULT_CROSS_EXCHANGE_UPDATE = "VAULT_CROSS_EXCHANGE_UPDATE",
|
|
51
|
+
UPDATE_FUNDING_INFO = "UPDATE_FUNDING_INFO"
|
|
51
52
|
}
|
|
52
53
|
export declare const ETransactionTypeInt: Record<ETransactionType, number>;
|
|
@@ -52,6 +52,7 @@ var ETransactionType;
|
|
|
52
52
|
ETransactionType["ADD_CURRENCY"] = "ADD_CURRENCY";
|
|
53
53
|
ETransactionType["SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"] = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO";
|
|
54
54
|
ETransactionType["VAULT_CROSS_EXCHANGE_UPDATE"] = "VAULT_CROSS_EXCHANGE_UPDATE";
|
|
55
|
+
ETransactionType["UPDATE_FUNDING_INFO"] = "UPDATE_FUNDING_INFO";
|
|
55
56
|
})(ETransactionType || (exports.ETransactionType = ETransactionType = {}));
|
|
56
57
|
exports.ETransactionTypeInt = Object.freeze({
|
|
57
58
|
[ETransactionType.UNSPECIFIED_1]: 1,
|
|
@@ -102,5 +103,6 @@ exports.ETransactionTypeInt = Object.freeze({
|
|
|
102
103
|
[ETransactionType.VAULT_MANAGEMENT_FEE_TICK]: 46,
|
|
103
104
|
[ETransactionType.ADD_CURRENCY]: 47,
|
|
104
105
|
[ETransactionType.SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO]: 48,
|
|
105
|
-
[ETransactionType.VAULT_CROSS_EXCHANGE_UPDATE]: 49
|
|
106
|
+
[ETransactionType.VAULT_CROSS_EXCHANGE_UPDATE]: 49,
|
|
107
|
+
[ETransactionType.UPDATE_FUNDING_INFO]: 50
|
|
106
108
|
});
|
|
@@ -4,6 +4,9 @@ export declare enum ETransferType {
|
|
|
4
4
|
FAST_ARB_DEPOSIT = "FAST_ARB_DEPOSIT",
|
|
5
5
|
FAST_ARB_WITHDRAWAL = "FAST_ARB_WITHDRAWAL",
|
|
6
6
|
NON_NATIVE_BRIDGE_DEPOSIT = "NON_NATIVE_BRIDGE_DEPOSIT",
|
|
7
|
-
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL"
|
|
7
|
+
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL",
|
|
8
|
+
ADHOC_INCENTIVE = "ADHOC_INCENTIVE",
|
|
9
|
+
REFERRAL_INCENTIVE = "REFERRAL_INCENTIVE",
|
|
10
|
+
TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE"
|
|
8
11
|
}
|
|
9
12
|
export declare const ETransferTypeInt: Record<ETransferType, number>;
|
|
@@ -15,6 +15,12 @@ var ETransferType;
|
|
|
15
15
|
ETransferType["NON_NATIVE_BRIDGE_DEPOSIT"] = "NON_NATIVE_BRIDGE_DEPOSIT";
|
|
16
16
|
// Transfer type for non native bridging withdrawal
|
|
17
17
|
ETransferType["NON_NATIVE_BRIDGE_WITHDRAWAL"] = "NON_NATIVE_BRIDGE_WITHDRAWAL";
|
|
18
|
+
// Transfer type for adhoc incentive
|
|
19
|
+
ETransferType["ADHOC_INCENTIVE"] = "ADHOC_INCENTIVE";
|
|
20
|
+
// Transfer type for referral incentive
|
|
21
|
+
ETransferType["REFERRAL_INCENTIVE"] = "REFERRAL_INCENTIVE";
|
|
22
|
+
// Transfer type for trading deposit yield incentive
|
|
23
|
+
ETransferType["TRADING_DEPOSIT_YIELD_INCENTIVE"] = "TRADING_DEPOSIT_YIELD_INCENTIVE";
|
|
18
24
|
})(ETransferType || (exports.ETransferType = ETransferType = {}));
|
|
19
25
|
exports.ETransferTypeInt = Object.freeze({
|
|
20
26
|
[ETransferType.UNSPECIFIED]: 0,
|
|
@@ -22,5 +28,8 @@ exports.ETransferTypeInt = Object.freeze({
|
|
|
22
28
|
[ETransferType.FAST_ARB_DEPOSIT]: 2,
|
|
23
29
|
[ETransferType.FAST_ARB_WITHDRAWAL]: 3,
|
|
24
30
|
[ETransferType.NON_NATIVE_BRIDGE_DEPOSIT]: 4,
|
|
25
|
-
[ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5
|
|
31
|
+
[ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5,
|
|
32
|
+
[ETransferType.ADHOC_INCENTIVE]: 6,
|
|
33
|
+
[ETransferType.REFERRAL_INCENTIVE]: 7,
|
|
34
|
+
[ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8
|
|
26
35
|
});
|
|
@@ -9,12 +9,14 @@ exports.AGGREGATED_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_sub_account_balance: 'ts'
|
|
13
14
|
},
|
|
14
15
|
LITE_TO_FULL: {
|
|
15
16
|
ma: 'main_account_id',
|
|
16
17
|
te: 'total_equity',
|
|
17
18
|
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]]
|
|
19
|
+
vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
|
|
20
|
+
ts: 'total_sub_account_balance'
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_GET_ALL_INSTRUMENTS_RESPONSE_MAP = void 0;
|
|
4
|
-
const
|
|
4
|
+
const instrument_display_1 = require("./instrument_display");
|
|
5
5
|
// Schema map for the 'API_GET_ALL_INSTRUMENTS_RESPONSE' struct.
|
|
6
6
|
exports.API_GET_ALL_INSTRUMENTS_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
result: ['r', [
|
|
8
|
+
result: ['r', [instrument_display_1.INSTRUMENT_DISPLAY_MAP.FULL_TO_LITE]]
|
|
9
9
|
},
|
|
10
10
|
LITE_TO_FULL: {
|
|
11
|
-
r: ['result', [
|
|
11
|
+
r: ['result', [instrument_display_1.INSTRUMENT_DISPLAY_MAP.LITE_TO_FULL]]
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = void 0;
|
|
4
|
+
const cev_access_tier_1 = require("./cev_access_tier");
|
|
5
|
+
// Schema map for the 'API_GET_CEV_ACCESS_TIERS_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
enabled: 'e',
|
|
9
|
+
tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
e: 'enabled',
|
|
13
|
+
t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_GET_FILTERED_INSTRUMENTS_RESPONSE_MAP = void 0;
|
|
4
|
-
const
|
|
4
|
+
const instrument_display_1 = require("./instrument_display");
|
|
5
5
|
// Schema map for the 'API_GET_FILTERED_INSTRUMENTS_RESPONSE' struct.
|
|
6
6
|
exports.API_GET_FILTERED_INSTRUMENTS_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
result: ['r', [
|
|
8
|
+
result: ['r', [instrument_display_1.INSTRUMENT_DISPLAY_MAP.FULL_TO_LITE]]
|
|
9
9
|
},
|
|
10
10
|
LITE_TO_FULL: {
|
|
11
|
-
r: ['result', [
|
|
11
|
+
r: ['result', [instrument_display_1.INSTRUMENT_DISPLAY_MAP.LITE_TO_FULL]]
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_GET_INSTRUMENT_RESPONSE_MAP = void 0;
|
|
4
|
-
const
|
|
4
|
+
const instrument_display_1 = require("./instrument_display");
|
|
5
5
|
// Schema map for the 'API_GET_INSTRUMENT_RESPONSE' struct.
|
|
6
6
|
exports.API_GET_INSTRUMENT_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
result: ['r',
|
|
8
|
+
result: ['r', instrument_display_1.INSTRUMENT_DISPLAY_MAP.FULL_TO_LITE]
|
|
9
9
|
},
|
|
10
10
|
LITE_TO_FULL: {
|
|
11
|
-
r: ['result',
|
|
11
|
+
r: ['result', instrument_display_1.INSTRUMENT_DISPLAY_MAP.LITE_TO_FULL]
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SET_CEV_ACCESS_TIERS_REQUEST_MAP = void 0;
|
|
4
|
+
const cev_access_tier_1 = require("./cev_access_tier");
|
|
5
|
+
const cev_access_tier_overwrite_1 = require("./cev_access_tier_overwrite");
|
|
6
|
+
// Schema map for the 'API_SET_CEV_ACCESS_TIERS_REQUEST' struct.
|
|
7
|
+
exports.API_SET_CEV_ACCESS_TIERS_REQUEST_MAP = Object.freeze({
|
|
8
|
+
FULL_TO_LITE: {
|
|
9
|
+
enabled: 'e',
|
|
10
|
+
tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]],
|
|
11
|
+
overwrites: ['o', [cev_access_tier_overwrite_1.CEV_ACCESS_TIER_OVERWRITE_MAP.FULL_TO_LITE]]
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
e: 'enabled',
|
|
15
|
+
t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]],
|
|
16
|
+
o: ['overwrites', [cev_access_tier_overwrite_1.CEV_ACCESS_TIER_OVERWRITE_MAP.LITE_TO_FULL]]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -10,7 +10,8 @@ exports.API_TRANSFER_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
10
10
|
limit: 'l',
|
|
11
11
|
cursor: 'c1',
|
|
12
12
|
tx_id: 'ti',
|
|
13
|
-
main_account_id: 'ma'
|
|
13
|
+
main_account_id: 'ma',
|
|
14
|
+
transfer_types: 'tt'
|
|
14
15
|
},
|
|
15
16
|
LITE_TO_FULL: {
|
|
16
17
|
c: 'currency',
|
|
@@ -19,6 +20,7 @@ exports.API_TRANSFER_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
19
20
|
l: 'limit',
|
|
20
21
|
c1: 'cursor',
|
|
21
22
|
ti: 'tx_id',
|
|
22
|
-
ma: 'main_account_id'
|
|
23
|
+
ma: 'main_account_id',
|
|
24
|
+
tt: 'transfer_types'
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CEV_ACCESS_TIER_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CEV_ACCESS_TIER' struct.
|
|
5
|
+
exports.CEV_ACCESS_TIER_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
idx: 'i',
|
|
8
|
+
lifetime_trading_volume_range_start: 'lt',
|
|
9
|
+
lifetime_trading_volume_range_end: 'lt1',
|
|
10
|
+
allocation_total_equity_percentage_centi_beeps: 'at',
|
|
11
|
+
allocation_max_cap: 'am'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
i: 'idx',
|
|
15
|
+
lt: 'lifetime_trading_volume_range_start',
|
|
16
|
+
lt1: 'lifetime_trading_volume_range_end',
|
|
17
|
+
at: 'allocation_total_equity_percentage_centi_beeps',
|
|
18
|
+
am: 'allocation_max_cap'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CEV_ACCESS_TIER_OVERWRITE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CEV_ACCESS_TIER_OVERWRITE' struct.
|
|
5
|
+
exports.CEV_ACCESS_TIER_OVERWRITE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
main_account_id: 'ma',
|
|
8
|
+
access_tier_level: 'at',
|
|
9
|
+
allocation_max_cap: 'am'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
ma: 'main_account_id',
|
|
13
|
+
at: 'access_tier_level',
|
|
14
|
+
am: 'allocation_max_cap'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -6,11 +6,13 @@ exports.EPOCH_POINT_MAP = Object.freeze({
|
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
epoch: 'e',
|
|
8
8
|
off_chain_account_id: 'oc',
|
|
9
|
-
point: 'p'
|
|
9
|
+
point: 'p',
|
|
10
|
+
reserve_point: 'rp'
|
|
10
11
|
},
|
|
11
12
|
LITE_TO_FULL: {
|
|
12
13
|
e: 'epoch',
|
|
13
14
|
oc: 'off_chain_account_id',
|
|
14
|
-
p: 'point'
|
|
15
|
+
p: 'point',
|
|
16
|
+
rp: 'reserve_point'
|
|
15
17
|
}
|
|
16
18
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FIRST_SESSION_AIRDROP_INFO_MAP = void 0;
|
|
4
|
+
// Schema map for the 'FIRST_SESSION_AIRDROP_INFO' struct.
|
|
5
|
+
exports.FIRST_SESSION_AIRDROP_INFO_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc',
|
|
8
|
+
airdrop_ratio: 'ar',
|
|
9
|
+
total_ecosystem_point: 'te',
|
|
10
|
+
total_trader_point: 'tt',
|
|
11
|
+
total_lp_point: 'tl'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
oc: 'off_chain_account_id',
|
|
15
|
+
ar: 'airdrop_ratio',
|
|
16
|
+
te: 'total_ecosystem_point',
|
|
17
|
+
tt: 'total_trader_point',
|
|
18
|
+
tl: 'total_lp_point'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FUNDING_INFO_MAP = void 0;
|
|
4
|
+
// Schema map for the 'FUNDING_INFO' struct.
|
|
5
|
+
exports.FUNDING_INFO_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
interval_hours: 'ih',
|
|
8
|
+
funding_rate_high_pct: 'fr',
|
|
9
|
+
funding_rate_low_pct: 'fr1',
|
|
10
|
+
update_time: 'ut'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
ih: 'interval_hours',
|
|
14
|
+
fr: 'funding_rate_high_pct',
|
|
15
|
+
fr1: 'funding_rate_low_pct',
|
|
16
|
+
ut: 'update_time'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
// Schema map for the '
|
|
5
|
-
exports.
|
|
3
|
+
exports.INSTRUMENT_DISPLAY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'INSTRUMENT_DISPLAY' struct.
|
|
5
|
+
exports.INSTRUMENT_DISPLAY_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
instrument: 'i',
|
|
8
8
|
instrument_hash: 'ih',
|
|
@@ -19,7 +19,11 @@ exports.INSTRUMENT_MAP = Object.freeze({
|
|
|
19
19
|
min_size: 'ms',
|
|
20
20
|
min_block_trade_size: 'mb',
|
|
21
21
|
create_time: 'ct',
|
|
22
|
-
max_position_size: 'mp'
|
|
22
|
+
max_position_size: 'mp',
|
|
23
|
+
funding_methodology_version: 'fm',
|
|
24
|
+
funding_interval_hours: 'fi',
|
|
25
|
+
adjusted_funding_rate_cap: 'af',
|
|
26
|
+
adjusted_funding_rate_floor: 'af1'
|
|
23
27
|
},
|
|
24
28
|
LITE_TO_FULL: {
|
|
25
29
|
i: 'instrument',
|
|
@@ -37,6 +41,10 @@ exports.INSTRUMENT_MAP = Object.freeze({
|
|
|
37
41
|
ms: 'min_size',
|
|
38
42
|
mb: 'min_block_trade_size',
|
|
39
43
|
ct: 'create_time',
|
|
40
|
-
mp: 'max_position_size'
|
|
44
|
+
mp: 'max_position_size',
|
|
45
|
+
fm: 'funding_methodology_version',
|
|
46
|
+
fi: 'funding_interval_hours',
|
|
47
|
+
af: 'adjusted_funding_rate_cap',
|
|
48
|
+
af1: 'adjusted_funding_rate_floor'
|
|
41
49
|
}
|
|
42
50
|
});
|
|
@@ -11,7 +11,8 @@ exports.ORDER_METADATA_MAP = Object.freeze({
|
|
|
11
11
|
broker: 'b',
|
|
12
12
|
source: 's',
|
|
13
13
|
is_ecn: 'ie',
|
|
14
|
-
is_position_transfer: 'ip'
|
|
14
|
+
is_position_transfer: 'ip',
|
|
15
|
+
allow_crossing: 'ac'
|
|
15
16
|
},
|
|
16
17
|
LITE_TO_FULL: {
|
|
17
18
|
co: 'client_order_id',
|
|
@@ -20,6 +21,7 @@ exports.ORDER_METADATA_MAP = Object.freeze({
|
|
|
20
21
|
b: 'broker',
|
|
21
22
|
s: 'source',
|
|
22
23
|
ie: 'is_ecn',
|
|
23
|
-
ip: 'is_position_transfer'
|
|
24
|
+
ip: 'is_position_transfer',
|
|
25
|
+
ac: 'allow_crossing'
|
|
24
26
|
}
|
|
25
27
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_FIRST_SESSION_AIRDROP_INFO_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_FIRST_SESSION_AIRDROP_INFO_REQUEST' struct.
|
|
5
|
+
exports.QUERY_FIRST_SESSION_AIRDROP_INFO_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
oc: 'off_chain_account_id'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_FIRST_SESSION_AIRDROP_INFO_RESPONSE_MAP = void 0;
|
|
4
|
+
const first_session_airdrop_info_1 = require("./first_session_airdrop_info");
|
|
5
|
+
// Schema map for the 'QUERY_FIRST_SESSION_AIRDROP_INFO_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_FIRST_SESSION_AIRDROP_INFO_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
info: ['i', first_session_airdrop_info_1.FIRST_SESSION_AIRDROP_INFO_MAP.FULL_TO_LITE]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
i: ['info', first_session_airdrop_info_1.FIRST_SESSION_AIRDROP_INFO_MAP.LITE_TO_FULL]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -5,10 +5,12 @@ exports.REWARD_METRIC_POINT_METADATA_MAP = void 0;
|
|
|
5
5
|
exports.REWARD_METRIC_POINT_METADATA_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
band_index: 'bi',
|
|
8
|
-
account_multiplier: 'am'
|
|
8
|
+
account_multiplier: 'am',
|
|
9
|
+
note: 'n'
|
|
9
10
|
},
|
|
10
11
|
LITE_TO_FULL: {
|
|
11
12
|
bi: 'band_index',
|
|
12
|
-
am: 'account_multiplier'
|
|
13
|
+
am: 'account_multiplier',
|
|
14
|
+
n: 'note'
|
|
13
15
|
}
|
|
14
16
|
});
|
|
@@ -9,7 +9,8 @@ exports.SIGNATURE_MAP = Object.freeze({
|
|
|
9
9
|
s: 's1',
|
|
10
10
|
v: 'v',
|
|
11
11
|
expiration: 'e',
|
|
12
|
-
nonce: 'n'
|
|
12
|
+
nonce: 'n',
|
|
13
|
+
chain_id: 'ci'
|
|
13
14
|
},
|
|
14
15
|
LITE_TO_FULL: {
|
|
15
16
|
s: 'signer',
|
|
@@ -17,6 +18,7 @@ exports.SIGNATURE_MAP = Object.freeze({
|
|
|
17
18
|
s1: 's',
|
|
18
19
|
v: 'v',
|
|
19
20
|
e: 'expiration',
|
|
20
|
-
n: 'nonce'
|
|
21
|
+
n: 'nonce',
|
|
22
|
+
ci: 'chain_id'
|
|
21
23
|
}
|
|
22
24
|
});
|
|
@@ -27,7 +27,10 @@ exports.TICKER_MAP = Object.freeze({
|
|
|
27
27
|
low_price: 'lp1',
|
|
28
28
|
open_price: 'op',
|
|
29
29
|
open_interest: 'oi',
|
|
30
|
-
long_short_ratio: 'ls1'
|
|
30
|
+
long_short_ratio: 'ls1',
|
|
31
|
+
funding_rate: 'fr2',
|
|
32
|
+
funding_interval_hours: 'fi',
|
|
33
|
+
next_funding_time: 'nf'
|
|
31
34
|
},
|
|
32
35
|
LITE_TO_FULL: {
|
|
33
36
|
et: 'event_time',
|
|
@@ -53,6 +56,9 @@ exports.TICKER_MAP = Object.freeze({
|
|
|
53
56
|
lp1: 'low_price',
|
|
54
57
|
op: 'open_price',
|
|
55
58
|
oi: 'open_interest',
|
|
56
|
-
ls1: 'long_short_ratio'
|
|
59
|
+
ls1: 'long_short_ratio',
|
|
60
|
+
fr2: 'funding_rate',
|
|
61
|
+
fi: 'funding_interval_hours',
|
|
62
|
+
nf: 'next_funding_time'
|
|
57
63
|
}
|
|
58
64
|
});
|
|
@@ -13,7 +13,8 @@ exports.SUB_ACCOUNT_TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
13
13
|
realized_pnl: 'rp',
|
|
14
14
|
unrealized_pnl: 'up',
|
|
15
15
|
is_unrealized_pnl_snapshotted: 'iu',
|
|
16
|
-
funding_payment_amount: 'fp'
|
|
16
|
+
funding_payment_amount: 'fp',
|
|
17
|
+
filled_order_count: 'fo'
|
|
17
18
|
},
|
|
18
19
|
LITE_TO_FULL: {
|
|
19
20
|
si: 'start_interval',
|
|
@@ -25,6 +26,7 @@ exports.SUB_ACCOUNT_TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
25
26
|
rp: 'realized_pnl',
|
|
26
27
|
up: 'unrealized_pnl',
|
|
27
28
|
iu: 'is_unrealized_pnl_snapshotted',
|
|
28
|
-
fp: 'funding_payment_amount'
|
|
29
|
+
fp: 'funding_payment_amount',
|
|
30
|
+
fo: 'filled_order_count'
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -13,7 +13,8 @@ exports.TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
13
13
|
unrealized_pnl: 'up',
|
|
14
14
|
is_unrealized_pnl_snapshotted: 'iu',
|
|
15
15
|
last_start_interval: 'ls',
|
|
16
|
-
funding_payment_amount: 'fp'
|
|
16
|
+
funding_payment_amount: 'fp',
|
|
17
|
+
filled_order_count: 'fo'
|
|
17
18
|
},
|
|
18
19
|
LITE_TO_FULL: {
|
|
19
20
|
sa: 'sub_account_id',
|
|
@@ -25,6 +26,7 @@ exports.TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
25
26
|
up: 'unrealized_pnl',
|
|
26
27
|
iu: 'is_unrealized_pnl_snapshotted',
|
|
27
28
|
ls: 'last_start_interval',
|
|
28
|
-
fp: 'funding_payment_amount'
|
|
29
|
+
fp: 'funding_payment_amount',
|
|
30
|
+
fo: 'filled_order_count'
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -12,7 +12,8 @@ exports.TRADING_PERFORMANCE_TREND_POINT_MAP = Object.freeze({
|
|
|
12
12
|
realized_pnl: 'rp',
|
|
13
13
|
unrealized_pnl: 'up',
|
|
14
14
|
is_unrealized_pnl_snapshotted: 'iu',
|
|
15
|
-
funding_payment_amount: 'fp'
|
|
15
|
+
funding_payment_amount: 'fp',
|
|
16
|
+
filled_order_count: 'fo'
|
|
16
17
|
},
|
|
17
18
|
LITE_TO_FULL: {
|
|
18
19
|
si: 'start_interval',
|
|
@@ -23,6 +24,7 @@ exports.TRADING_PERFORMANCE_TREND_POINT_MAP = Object.freeze({
|
|
|
23
24
|
rp: 'realized_pnl',
|
|
24
25
|
up: 'unrealized_pnl',
|
|
25
26
|
iu: 'is_unrealized_pnl_snapshotted',
|
|
26
|
-
fp: 'funding_payment_amount'
|
|
27
|
+
fp: 'funding_payment_amount',
|
|
28
|
+
fo: 'filled_order_count'
|
|
27
29
|
}
|
|
28
30
|
});
|
package/package.json
CHANGED