@nightlylabs/dex-sdk 0.0.84 → 0.0.85

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 CHANGED
@@ -41,7 +41,7 @@ __export(index_exports, {
41
41
  OrderSide: () => OrderSide,
42
42
  OrderStatus: () => OrderStatus,
43
43
  OrderType: () => OrderType,
44
- PerpetualMarketStatus: () => PerpetualMarketStatus,
44
+ SpotMarketStatus: () => SpotMarketStatus,
45
45
  Status: () => Status,
46
46
  TestFaucet: () => TestFaucet,
47
47
  TradeRole: () => TradeRole,
@@ -575,14 +575,6 @@ var ABI20 = {
575
575
  var claimDeposit_default = ABI20;
576
576
 
577
577
  // generated_types/typeshareTypes.ts
578
- var PerpetualMarketStatus = /* @__PURE__ */ ((PerpetualMarketStatus2) => {
579
- PerpetualMarketStatus2["Halted"] = "halted";
580
- PerpetualMarketStatus2["ReduceOnly"] = "reduceOnly";
581
- PerpetualMarketStatus2["PostOnly"] = "postOnly";
582
- PerpetualMarketStatus2["Live"] = "live";
583
- PerpetualMarketStatus2["Settled"] = "settled";
584
- return PerpetualMarketStatus2;
585
- })(PerpetualMarketStatus || {});
586
578
  var ChartInterval = /* @__PURE__ */ ((ChartInterval2) => {
587
579
  ChartInterval2["OneMinute"] = "OneMinute";
588
580
  ChartInterval2["FiveMinutes"] = "FiveMinutes";
@@ -652,6 +644,13 @@ var EndpointsV1 = /* @__PURE__ */ ((EndpointsV12) => {
652
644
  EndpointsV12["GetUserTradeStats"] = "/v1/get_user_trade_stats";
653
645
  return EndpointsV12;
654
646
  })(EndpointsV1 || {});
647
+ var SpotMarketStatus = /* @__PURE__ */ ((SpotMarketStatus2) => {
648
+ SpotMarketStatus2["Halted"] = "halted";
649
+ SpotMarketStatus2["ReduceOnly"] = "reduceOnly";
650
+ SpotMarketStatus2["PostOnly"] = "postOnly";
651
+ SpotMarketStatus2["Live"] = "live";
652
+ return SpotMarketStatus2;
653
+ })(SpotMarketStatus || {});
655
654
  var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
656
655
  UserStatus2["Active"] = "Active";
657
656
  UserStatus2["Locked"] = "Locked";
@@ -2184,7 +2183,7 @@ var TestFaucet = class _TestFaucet extends client_default {
2184
2183
  OrderSide,
2185
2184
  OrderStatus,
2186
2185
  OrderType,
2187
- PerpetualMarketStatus,
2186
+ SpotMarketStatus,
2188
2187
  Status,
2189
2188
  TestFaucet,
2190
2189
  TradeRole,
package/dist/index.d.cts CHANGED
@@ -107,13 +107,22 @@ interface MarginStep {
107
107
  maintenanceAmount: string;
108
108
  maxPositionInUsd: string;
109
109
  }
110
- declare enum PerpetualMarketStatus {
111
- Halted = "halted",
112
- ReduceOnly = "reduceOnly",
113
- PostOnly = "postOnly",
114
- Live = "live",
115
- Settled = "settled"
116
- }
110
+ type PerpetualMarketStatus = {
111
+ type: "halted";
112
+ content?: undefined;
113
+ } | {
114
+ type: "reduceOnly";
115
+ content?: undefined;
116
+ } | {
117
+ type: "postOnly";
118
+ content?: undefined;
119
+ } | {
120
+ type: "live";
121
+ content?: undefined;
122
+ } | {
123
+ type: "settled";
124
+ content: string;
125
+ };
117
126
  interface FundingRate {
118
127
  enabled: boolean;
119
128
  interestRateHourly: string;
@@ -319,6 +328,8 @@ interface GetUserAggregatedReferralStatsRequest {
319
328
  interface UserAggregatedReferralStats {
320
329
  referralOwnerId: string;
321
330
  referralUserId: string;
331
+ referralUserAlias: string;
332
+ referralUserRegistrationTimestamp: string;
322
333
  accReferralValue: string;
323
334
  referredUserVolume: string;
324
335
  }
@@ -343,6 +354,7 @@ interface UserAggregatedStats {
343
354
  spotTradesCountTaker: string;
344
355
  perpTradesCountMaker: string;
345
356
  perpTradesCountTaker: string;
357
+ earnedFee: string;
346
358
  }
347
359
  interface GetUserAggregatedStatsResponse {
348
360
  userAggregatedStats: UserAggregatedStats;
@@ -373,6 +385,7 @@ interface Vault {
373
385
  interface User {
374
386
  userId: string;
375
387
  alias: string;
388
+ registrationTimestamp: string;
376
389
  autolendEnabled: boolean;
377
390
  ownerAddress: string;
378
391
  userSignerAddress: string;
@@ -475,6 +488,7 @@ interface HistoricalTradeStats {
475
488
  tradeCountPerpTaker: string;
476
489
  paidFeeMaker: string;
477
490
  paidFeeTaker: string;
491
+ earnedFee: string;
478
492
  timestampOpen: string;
479
493
  timestampClose: string;
480
494
  }
@@ -676,6 +690,12 @@ declare enum EndpointsV1 {
676
690
  GetUserReferralStats = "/v1/get_user_referral_stats",
677
691
  GetUserTradeStats = "/v1/get_user_trade_stats"
678
692
  }
693
+ declare enum SpotMarketStatus {
694
+ Halted = "halted",
695
+ ReduceOnly = "reduceOnly",
696
+ PostOnly = "postOnly",
697
+ Live = "live"
698
+ }
679
699
  type Topic = {
680
700
  type: "Market";
681
701
  content: string;
@@ -1171,4 +1191,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
1171
1191
  declare const getTopicFromCommand: (data: WsCommand) => string;
1172
1192
  declare const getTopicFromMessage: (data: WsMessage) => string;
1173
1193
 
1174
- export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, 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 GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, 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, PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
1194
+ export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, 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 GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, 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 RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, SpotMarketStatus, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, 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
@@ -107,13 +107,22 @@ interface MarginStep {
107
107
  maintenanceAmount: string;
108
108
  maxPositionInUsd: string;
109
109
  }
110
- declare enum PerpetualMarketStatus {
111
- Halted = "halted",
112
- ReduceOnly = "reduceOnly",
113
- PostOnly = "postOnly",
114
- Live = "live",
115
- Settled = "settled"
116
- }
110
+ type PerpetualMarketStatus = {
111
+ type: "halted";
112
+ content?: undefined;
113
+ } | {
114
+ type: "reduceOnly";
115
+ content?: undefined;
116
+ } | {
117
+ type: "postOnly";
118
+ content?: undefined;
119
+ } | {
120
+ type: "live";
121
+ content?: undefined;
122
+ } | {
123
+ type: "settled";
124
+ content: string;
125
+ };
117
126
  interface FundingRate {
118
127
  enabled: boolean;
119
128
  interestRateHourly: string;
@@ -319,6 +328,8 @@ interface GetUserAggregatedReferralStatsRequest {
319
328
  interface UserAggregatedReferralStats {
320
329
  referralOwnerId: string;
321
330
  referralUserId: string;
331
+ referralUserAlias: string;
332
+ referralUserRegistrationTimestamp: string;
322
333
  accReferralValue: string;
323
334
  referredUserVolume: string;
324
335
  }
@@ -343,6 +354,7 @@ interface UserAggregatedStats {
343
354
  spotTradesCountTaker: string;
344
355
  perpTradesCountMaker: string;
345
356
  perpTradesCountTaker: string;
357
+ earnedFee: string;
346
358
  }
347
359
  interface GetUserAggregatedStatsResponse {
348
360
  userAggregatedStats: UserAggregatedStats;
@@ -373,6 +385,7 @@ interface Vault {
373
385
  interface User {
374
386
  userId: string;
375
387
  alias: string;
388
+ registrationTimestamp: string;
376
389
  autolendEnabled: boolean;
377
390
  ownerAddress: string;
378
391
  userSignerAddress: string;
@@ -475,6 +488,7 @@ interface HistoricalTradeStats {
475
488
  tradeCountPerpTaker: string;
476
489
  paidFeeMaker: string;
477
490
  paidFeeTaker: string;
491
+ earnedFee: string;
478
492
  timestampOpen: string;
479
493
  timestampClose: string;
480
494
  }
@@ -676,6 +690,12 @@ declare enum EndpointsV1 {
676
690
  GetUserReferralStats = "/v1/get_user_referral_stats",
677
691
  GetUserTradeStats = "/v1/get_user_trade_stats"
678
692
  }
693
+ declare enum SpotMarketStatus {
694
+ Halted = "halted",
695
+ ReduceOnly = "reduceOnly",
696
+ PostOnly = "postOnly",
697
+ Live = "live"
698
+ }
679
699
  type Topic = {
680
700
  type: "Market";
681
701
  content: string;
@@ -1171,4 +1191,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
1171
1191
  declare const getTopicFromCommand: (data: WsCommand) => string;
1172
1192
  declare const getTopicFromMessage: (data: WsMessage) => string;
1173
1193
 
1174
- export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, 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 GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, 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, PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
1194
+ export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, 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 GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, 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 RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, SpotMarketStatus, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, 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
@@ -526,14 +526,6 @@ var ABI20 = {
526
526
  var claimDeposit_default = ABI20;
527
527
 
528
528
  // generated_types/typeshareTypes.ts
529
- var PerpetualMarketStatus = /* @__PURE__ */ ((PerpetualMarketStatus2) => {
530
- PerpetualMarketStatus2["Halted"] = "halted";
531
- PerpetualMarketStatus2["ReduceOnly"] = "reduceOnly";
532
- PerpetualMarketStatus2["PostOnly"] = "postOnly";
533
- PerpetualMarketStatus2["Live"] = "live";
534
- PerpetualMarketStatus2["Settled"] = "settled";
535
- return PerpetualMarketStatus2;
536
- })(PerpetualMarketStatus || {});
537
529
  var ChartInterval = /* @__PURE__ */ ((ChartInterval2) => {
538
530
  ChartInterval2["OneMinute"] = "OneMinute";
539
531
  ChartInterval2["FiveMinutes"] = "FiveMinutes";
@@ -603,6 +595,13 @@ var EndpointsV1 = /* @__PURE__ */ ((EndpointsV12) => {
603
595
  EndpointsV12["GetUserTradeStats"] = "/v1/get_user_trade_stats";
604
596
  return EndpointsV12;
605
597
  })(EndpointsV1 || {});
598
+ var SpotMarketStatus = /* @__PURE__ */ ((SpotMarketStatus2) => {
599
+ SpotMarketStatus2["Halted"] = "halted";
600
+ SpotMarketStatus2["ReduceOnly"] = "reduceOnly";
601
+ SpotMarketStatus2["PostOnly"] = "postOnly";
602
+ SpotMarketStatus2["Live"] = "live";
603
+ return SpotMarketStatus2;
604
+ })(SpotMarketStatus || {});
606
605
  var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
607
606
  UserStatus2["Active"] = "Active";
608
607
  UserStatus2["Locked"] = "Locked";
@@ -2134,7 +2133,7 @@ export {
2134
2133
  OrderSide,
2135
2134
  OrderStatus,
2136
2135
  OrderType,
2137
- PerpetualMarketStatus,
2136
+ SpotMarketStatus,
2138
2137
  Status,
2139
2138
  TestFaucet,
2140
2139
  TradeRole,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlylabs/dex-sdk",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {