@nightlylabs/dex-sdk 0.1.51 → 0.1.53
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -918,7 +918,7 @@ var getTopicFromMessage = (data) => {
|
|
|
918
918
|
return data.content.userId;
|
|
919
919
|
case "PlacePerpMarketOrder":
|
|
920
920
|
return data.content.userId;
|
|
921
|
-
case "
|
|
921
|
+
case "CanceledPerpOrders":
|
|
922
922
|
return data.content.userId;
|
|
923
923
|
case "OrderFills":
|
|
924
924
|
return data.content.userId;
|
package/dist/index.d.cts
CHANGED
|
@@ -71,10 +71,10 @@ interface BorrowLendingHistoricalData {
|
|
|
71
71
|
borrowers: string;
|
|
72
72
|
timestamp: string;
|
|
73
73
|
}
|
|
74
|
-
interface
|
|
74
|
+
interface CanceledPerpOrders {
|
|
75
75
|
market: string;
|
|
76
76
|
userId: string;
|
|
77
|
-
|
|
77
|
+
ordersIds: string[];
|
|
78
78
|
}
|
|
79
79
|
interface ChartCandle {
|
|
80
80
|
marketName: string;
|
|
@@ -862,6 +862,7 @@ interface WsFill {
|
|
|
862
862
|
size: string;
|
|
863
863
|
price: string;
|
|
864
864
|
feePaid: string;
|
|
865
|
+
isTakerBid: boolean;
|
|
865
866
|
}
|
|
866
867
|
interface OrderFills {
|
|
867
868
|
market: string;
|
|
@@ -871,9 +872,8 @@ interface OrderFills {
|
|
|
871
872
|
}
|
|
872
873
|
interface OrderbookUpdate {
|
|
873
874
|
market: string;
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
size: string;
|
|
875
|
+
bidsUpdates: Record<string, string>;
|
|
876
|
+
asksUpdates: Record<string, string>;
|
|
877
877
|
}
|
|
878
878
|
interface PlacePerpLimitOrder {
|
|
879
879
|
market: string;
|
|
@@ -950,14 +950,17 @@ interface SubmitSponsoredTransactionResponse {
|
|
|
950
950
|
interface TimeResponse {
|
|
951
951
|
time: string;
|
|
952
952
|
}
|
|
953
|
-
interface
|
|
954
|
-
market: string;
|
|
953
|
+
interface Trade {
|
|
955
954
|
tradeId: string;
|
|
956
955
|
size: string;
|
|
957
956
|
price: string;
|
|
958
957
|
timestamp: string;
|
|
959
958
|
isTakerBid: boolean;
|
|
960
959
|
}
|
|
960
|
+
interface TradesUpdate {
|
|
961
|
+
market: string;
|
|
962
|
+
updates: Trade[];
|
|
963
|
+
}
|
|
961
964
|
interface UpdateUserFeeTier {
|
|
962
965
|
userId: string;
|
|
963
966
|
newTierIndex: string;
|
|
@@ -1168,8 +1171,8 @@ type WsMessage = {
|
|
|
1168
1171
|
type: "PlacePerpMarketOrder";
|
|
1169
1172
|
content: PlacePerpMarketOrder;
|
|
1170
1173
|
} | {
|
|
1171
|
-
type: "
|
|
1172
|
-
content:
|
|
1174
|
+
type: "CanceledPerpOrders";
|
|
1175
|
+
content: CanceledPerpOrders;
|
|
1173
1176
|
} | {
|
|
1174
1177
|
type: "OrderFills";
|
|
1175
1178
|
content: OrderFills;
|
|
@@ -1383,7 +1386,7 @@ type WsOracleUpdates = Extract<WsMessage, {
|
|
|
1383
1386
|
type: 'OracleUpdates';
|
|
1384
1387
|
}>;
|
|
1385
1388
|
type WsUserUpdates = Extract<WsMessage, {
|
|
1386
|
-
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | '
|
|
1389
|
+
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'CanceledPerpOrders' | 'OrderFills' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw';
|
|
1387
1390
|
}>;
|
|
1388
1391
|
type WsPerpMarketUpdates = Extract<WsMessage, {
|
|
1389
1392
|
type: 'OrderbookUpdate' | 'TradesUpdate' | 'MarketStatusChange';
|
|
@@ -1622,4 +1625,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1622
1625
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1623
1626
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1624
1627
|
|
|
1625
|
-
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type
|
|
1628
|
+
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, type NodeStatus, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, SpotMarketStatus, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,10 +71,10 @@ interface BorrowLendingHistoricalData {
|
|
|
71
71
|
borrowers: string;
|
|
72
72
|
timestamp: string;
|
|
73
73
|
}
|
|
74
|
-
interface
|
|
74
|
+
interface CanceledPerpOrders {
|
|
75
75
|
market: string;
|
|
76
76
|
userId: string;
|
|
77
|
-
|
|
77
|
+
ordersIds: string[];
|
|
78
78
|
}
|
|
79
79
|
interface ChartCandle {
|
|
80
80
|
marketName: string;
|
|
@@ -862,6 +862,7 @@ interface WsFill {
|
|
|
862
862
|
size: string;
|
|
863
863
|
price: string;
|
|
864
864
|
feePaid: string;
|
|
865
|
+
isTakerBid: boolean;
|
|
865
866
|
}
|
|
866
867
|
interface OrderFills {
|
|
867
868
|
market: string;
|
|
@@ -871,9 +872,8 @@ interface OrderFills {
|
|
|
871
872
|
}
|
|
872
873
|
interface OrderbookUpdate {
|
|
873
874
|
market: string;
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
size: string;
|
|
875
|
+
bidsUpdates: Record<string, string>;
|
|
876
|
+
asksUpdates: Record<string, string>;
|
|
877
877
|
}
|
|
878
878
|
interface PlacePerpLimitOrder {
|
|
879
879
|
market: string;
|
|
@@ -950,14 +950,17 @@ interface SubmitSponsoredTransactionResponse {
|
|
|
950
950
|
interface TimeResponse {
|
|
951
951
|
time: string;
|
|
952
952
|
}
|
|
953
|
-
interface
|
|
954
|
-
market: string;
|
|
953
|
+
interface Trade {
|
|
955
954
|
tradeId: string;
|
|
956
955
|
size: string;
|
|
957
956
|
price: string;
|
|
958
957
|
timestamp: string;
|
|
959
958
|
isTakerBid: boolean;
|
|
960
959
|
}
|
|
960
|
+
interface TradesUpdate {
|
|
961
|
+
market: string;
|
|
962
|
+
updates: Trade[];
|
|
963
|
+
}
|
|
961
964
|
interface UpdateUserFeeTier {
|
|
962
965
|
userId: string;
|
|
963
966
|
newTierIndex: string;
|
|
@@ -1168,8 +1171,8 @@ type WsMessage = {
|
|
|
1168
1171
|
type: "PlacePerpMarketOrder";
|
|
1169
1172
|
content: PlacePerpMarketOrder;
|
|
1170
1173
|
} | {
|
|
1171
|
-
type: "
|
|
1172
|
-
content:
|
|
1174
|
+
type: "CanceledPerpOrders";
|
|
1175
|
+
content: CanceledPerpOrders;
|
|
1173
1176
|
} | {
|
|
1174
1177
|
type: "OrderFills";
|
|
1175
1178
|
content: OrderFills;
|
|
@@ -1383,7 +1386,7 @@ type WsOracleUpdates = Extract<WsMessage, {
|
|
|
1383
1386
|
type: 'OracleUpdates';
|
|
1384
1387
|
}>;
|
|
1385
1388
|
type WsUserUpdates = Extract<WsMessage, {
|
|
1386
|
-
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | '
|
|
1389
|
+
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'CanceledPerpOrders' | 'OrderFills' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw';
|
|
1387
1390
|
}>;
|
|
1388
1391
|
type WsPerpMarketUpdates = Extract<WsMessage, {
|
|
1389
1392
|
type: 'OrderbookUpdate' | 'TradesUpdate' | 'MarketStatusChange';
|
|
@@ -1622,4 +1625,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1622
1625
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1623
1626
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1624
1627
|
|
|
1625
|
-
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type
|
|
1628
|
+
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, type NodeStatus, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, SpotMarketStatus, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.js
CHANGED
|
@@ -868,7 +868,7 @@ var getTopicFromMessage = (data) => {
|
|
|
868
868
|
return data.content.userId;
|
|
869
869
|
case "PlacePerpMarketOrder":
|
|
870
870
|
return data.content.userId;
|
|
871
|
-
case "
|
|
871
|
+
case "CanceledPerpOrders":
|
|
872
872
|
return data.content.userId;
|
|
873
873
|
case "OrderFills":
|
|
874
874
|
return data.content.userId;
|