@nightlylabs/dex-sdk 0.1.32 → 0.1.33
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 +2 -2
- package/dist/index.d.cts +21 -28
- package/dist/index.d.ts +21 -28
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -889,9 +889,9 @@ var getTopicFromMessage = (data) => {
|
|
|
889
889
|
return data.content.userId;
|
|
890
890
|
case "PlacePerpMarketOrder":
|
|
891
891
|
return data.content.userId;
|
|
892
|
-
case "
|
|
892
|
+
case "CanceledPerpOrder":
|
|
893
893
|
return data.content.userId;
|
|
894
|
-
case "
|
|
894
|
+
case "OrderFill":
|
|
895
895
|
return data.content.userId;
|
|
896
896
|
case "SetAutoLend":
|
|
897
897
|
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 CanceledPerpOrder {
|
|
75
75
|
market: string;
|
|
76
76
|
userId: string;
|
|
77
|
-
|
|
77
|
+
orderId: string;
|
|
78
78
|
}
|
|
79
79
|
interface ChartCandle {
|
|
80
80
|
marketName: string;
|
|
@@ -839,23 +839,22 @@ interface Order {
|
|
|
839
839
|
postOnly: boolean;
|
|
840
840
|
reduceOnly: boolean;
|
|
841
841
|
timestamp: string;
|
|
842
|
+
orderType: OrderType;
|
|
842
843
|
}
|
|
843
|
-
interface
|
|
844
|
-
id: string;
|
|
845
|
-
size: string;
|
|
846
|
-
price: string;
|
|
847
|
-
feePaid: string;
|
|
848
|
-
}
|
|
849
|
-
interface OrderFills {
|
|
844
|
+
interface OrderFill {
|
|
850
845
|
market: string;
|
|
851
846
|
userId: string;
|
|
852
847
|
orderId: string;
|
|
853
|
-
|
|
848
|
+
fillId: string;
|
|
849
|
+
size: string;
|
|
850
|
+
price: string;
|
|
851
|
+
feePaid: string;
|
|
854
852
|
}
|
|
855
853
|
interface OrderbookUpdate {
|
|
856
854
|
market: string;
|
|
857
|
-
|
|
858
|
-
|
|
855
|
+
isBid: boolean;
|
|
856
|
+
price: string;
|
|
857
|
+
size: string;
|
|
859
858
|
}
|
|
860
859
|
interface PlacePerpLimitOrder {
|
|
861
860
|
market: string;
|
|
@@ -866,8 +865,6 @@ interface PlacePerpLimitOrder {
|
|
|
866
865
|
postOnly: boolean;
|
|
867
866
|
reduceOnly: boolean;
|
|
868
867
|
orderId: string;
|
|
869
|
-
filledSize: string;
|
|
870
|
-
fills: WsFill[];
|
|
871
868
|
}
|
|
872
869
|
interface PlacePerpMarketOrder {
|
|
873
870
|
market: string;
|
|
@@ -877,7 +874,6 @@ interface PlacePerpMarketOrder {
|
|
|
877
874
|
size: string;
|
|
878
875
|
reduceOnly: boolean;
|
|
879
876
|
orderId: string;
|
|
880
|
-
fills: WsFill[];
|
|
881
877
|
}
|
|
882
878
|
interface ReferralUpdate {
|
|
883
879
|
userId: string;
|
|
@@ -932,16 +928,13 @@ interface SubmitSponsoredTransactionResponse {
|
|
|
932
928
|
interface TimeResponse {
|
|
933
929
|
time: string;
|
|
934
930
|
}
|
|
935
|
-
interface
|
|
936
|
-
|
|
931
|
+
interface TradesUpdate {
|
|
932
|
+
market: string;
|
|
933
|
+
tradeId: string;
|
|
937
934
|
size: string;
|
|
938
935
|
price: string;
|
|
939
936
|
timestamp: string;
|
|
940
|
-
|
|
941
|
-
}
|
|
942
|
-
interface TradesUpdate {
|
|
943
|
-
market: string;
|
|
944
|
-
updates: Trade[];
|
|
937
|
+
isTakerBid: boolean;
|
|
945
938
|
}
|
|
946
939
|
interface UpdateUserFeeTier {
|
|
947
940
|
userId: string;
|
|
@@ -1152,11 +1145,11 @@ type WsMessage = {
|
|
|
1152
1145
|
type: "PlacePerpMarketOrder";
|
|
1153
1146
|
content: PlacePerpMarketOrder;
|
|
1154
1147
|
} | {
|
|
1155
|
-
type: "
|
|
1156
|
-
content:
|
|
1148
|
+
type: "CanceledPerpOrder";
|
|
1149
|
+
content: CanceledPerpOrder;
|
|
1157
1150
|
} | {
|
|
1158
|
-
type: "
|
|
1159
|
-
content:
|
|
1151
|
+
type: "OrderFill";
|
|
1152
|
+
content: OrderFill;
|
|
1160
1153
|
} | {
|
|
1161
1154
|
type: "SetAutoLend";
|
|
1162
1155
|
content: SetAutoLend;
|
|
@@ -1359,7 +1352,7 @@ type WsOracleUpdates = Extract<WsMessage, {
|
|
|
1359
1352
|
type: 'OracleUpdates';
|
|
1360
1353
|
}>;
|
|
1361
1354
|
type WsUserUpdates = Extract<WsMessage, {
|
|
1362
|
-
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | '
|
|
1355
|
+
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'CanceledPerpOrder' | 'OrderFill' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw';
|
|
1363
1356
|
}>;
|
|
1364
1357
|
type WsPerpMarketUpdates = Extract<WsMessage, {
|
|
1365
1358
|
type: 'OrderbookUpdate' | 'TradesUpdate' | 'MarketStatusChange';
|
|
@@ -1596,4 +1589,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1596
1589
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1597
1590
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1598
1591
|
|
|
1599
|
-
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
|
|
1592
|
+
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 CanceledPerpOrder, 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 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 OrderFill, 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, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, 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 CanceledPerpOrder {
|
|
75
75
|
market: string;
|
|
76
76
|
userId: string;
|
|
77
|
-
|
|
77
|
+
orderId: string;
|
|
78
78
|
}
|
|
79
79
|
interface ChartCandle {
|
|
80
80
|
marketName: string;
|
|
@@ -839,23 +839,22 @@ interface Order {
|
|
|
839
839
|
postOnly: boolean;
|
|
840
840
|
reduceOnly: boolean;
|
|
841
841
|
timestamp: string;
|
|
842
|
+
orderType: OrderType;
|
|
842
843
|
}
|
|
843
|
-
interface
|
|
844
|
-
id: string;
|
|
845
|
-
size: string;
|
|
846
|
-
price: string;
|
|
847
|
-
feePaid: string;
|
|
848
|
-
}
|
|
849
|
-
interface OrderFills {
|
|
844
|
+
interface OrderFill {
|
|
850
845
|
market: string;
|
|
851
846
|
userId: string;
|
|
852
847
|
orderId: string;
|
|
853
|
-
|
|
848
|
+
fillId: string;
|
|
849
|
+
size: string;
|
|
850
|
+
price: string;
|
|
851
|
+
feePaid: string;
|
|
854
852
|
}
|
|
855
853
|
interface OrderbookUpdate {
|
|
856
854
|
market: string;
|
|
857
|
-
|
|
858
|
-
|
|
855
|
+
isBid: boolean;
|
|
856
|
+
price: string;
|
|
857
|
+
size: string;
|
|
859
858
|
}
|
|
860
859
|
interface PlacePerpLimitOrder {
|
|
861
860
|
market: string;
|
|
@@ -866,8 +865,6 @@ interface PlacePerpLimitOrder {
|
|
|
866
865
|
postOnly: boolean;
|
|
867
866
|
reduceOnly: boolean;
|
|
868
867
|
orderId: string;
|
|
869
|
-
filledSize: string;
|
|
870
|
-
fills: WsFill[];
|
|
871
868
|
}
|
|
872
869
|
interface PlacePerpMarketOrder {
|
|
873
870
|
market: string;
|
|
@@ -877,7 +874,6 @@ interface PlacePerpMarketOrder {
|
|
|
877
874
|
size: string;
|
|
878
875
|
reduceOnly: boolean;
|
|
879
876
|
orderId: string;
|
|
880
|
-
fills: WsFill[];
|
|
881
877
|
}
|
|
882
878
|
interface ReferralUpdate {
|
|
883
879
|
userId: string;
|
|
@@ -932,16 +928,13 @@ interface SubmitSponsoredTransactionResponse {
|
|
|
932
928
|
interface TimeResponse {
|
|
933
929
|
time: string;
|
|
934
930
|
}
|
|
935
|
-
interface
|
|
936
|
-
|
|
931
|
+
interface TradesUpdate {
|
|
932
|
+
market: string;
|
|
933
|
+
tradeId: string;
|
|
937
934
|
size: string;
|
|
938
935
|
price: string;
|
|
939
936
|
timestamp: string;
|
|
940
|
-
|
|
941
|
-
}
|
|
942
|
-
interface TradesUpdate {
|
|
943
|
-
market: string;
|
|
944
|
-
updates: Trade[];
|
|
937
|
+
isTakerBid: boolean;
|
|
945
938
|
}
|
|
946
939
|
interface UpdateUserFeeTier {
|
|
947
940
|
userId: string;
|
|
@@ -1152,11 +1145,11 @@ type WsMessage = {
|
|
|
1152
1145
|
type: "PlacePerpMarketOrder";
|
|
1153
1146
|
content: PlacePerpMarketOrder;
|
|
1154
1147
|
} | {
|
|
1155
|
-
type: "
|
|
1156
|
-
content:
|
|
1148
|
+
type: "CanceledPerpOrder";
|
|
1149
|
+
content: CanceledPerpOrder;
|
|
1157
1150
|
} | {
|
|
1158
|
-
type: "
|
|
1159
|
-
content:
|
|
1151
|
+
type: "OrderFill";
|
|
1152
|
+
content: OrderFill;
|
|
1160
1153
|
} | {
|
|
1161
1154
|
type: "SetAutoLend";
|
|
1162
1155
|
content: SetAutoLend;
|
|
@@ -1359,7 +1352,7 @@ type WsOracleUpdates = Extract<WsMessage, {
|
|
|
1359
1352
|
type: 'OracleUpdates';
|
|
1360
1353
|
}>;
|
|
1361
1354
|
type WsUserUpdates = Extract<WsMessage, {
|
|
1362
|
-
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | '
|
|
1355
|
+
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'CanceledPerpOrder' | 'OrderFill' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw';
|
|
1363
1356
|
}>;
|
|
1364
1357
|
type WsPerpMarketUpdates = Extract<WsMessage, {
|
|
1365
1358
|
type: 'OrderbookUpdate' | 'TradesUpdate' | 'MarketStatusChange';
|
|
@@ -1596,4 +1589,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1596
1589
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1597
1590
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1598
1591
|
|
|
1599
|
-
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
|
|
1592
|
+
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 CanceledPerpOrder, 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 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 OrderFill, 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, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.js
CHANGED
|
@@ -839,9 +839,9 @@ var getTopicFromMessage = (data) => {
|
|
|
839
839
|
return data.content.userId;
|
|
840
840
|
case "PlacePerpMarketOrder":
|
|
841
841
|
return data.content.userId;
|
|
842
|
-
case "
|
|
842
|
+
case "CanceledPerpOrder":
|
|
843
843
|
return data.content.userId;
|
|
844
|
-
case "
|
|
844
|
+
case "OrderFill":
|
|
845
845
|
return data.content.userId;
|
|
846
846
|
case "SetAutoLend":
|
|
847
847
|
return data.content.userId;
|