@bulletxyz/bullet-sdk 0.26.0 → 0.26.2

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.
@@ -93,6 +93,7 @@ export declare class Client {
93
93
  funding_payments_on_position: Decimal;
94
94
  };
95
95
  user_selected_max_leverage: number;
96
+ fee_tier: "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4";
96
97
  tpsls: Map<bigint, {
97
98
  size: Decimal | null;
98
99
  tpsl_order_id: bigint;
@@ -104,9 +105,56 @@ export declare class Client {
104
105
  side: "Bid" | "Ask";
105
106
  market_id: number;
106
107
  owner: string;
108
+ last_update_timestamp: bigint;
107
109
  linked_tpsl_order_id: bigint | null;
108
110
  }>;
109
111
  }>;
112
+ spot_orders: Map<number, Map<bigint, {
113
+ side: "Bid" | "Ask";
114
+ market_id: number;
115
+ order_id: bigint;
116
+ price: Decimal;
117
+ remaining_size: Decimal;
118
+ reduce_only: boolean;
119
+ filled_size: Decimal;
120
+ average_filled_price: Decimal;
121
+ owner: string;
122
+ pending_tpsl: {
123
+ tp: {
124
+ tpsl_order_id: bigint;
125
+ order_price: Decimal;
126
+ trigger_price: Decimal;
127
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
128
+ price_condition: "Mark" | "Oracle" | "LastTrade";
129
+ dynamic_size: boolean;
130
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
131
+ } | null;
132
+ sl: {
133
+ tpsl_order_id: bigint;
134
+ order_price: Decimal;
135
+ trigger_price: Decimal;
136
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
137
+ price_condition: "Mark" | "Oracle" | "LastTrade";
138
+ dynamic_size: boolean;
139
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
140
+ } | null;
141
+ };
142
+ }>>;
143
+ spot_tpsls: Map<number, Map<bigint, {
144
+ size: Decimal | null;
145
+ tpsl_order_id: bigint;
146
+ order_price: Decimal;
147
+ trigger_price: Decimal;
148
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
149
+ price_condition: "Mark" | "Oracle" | "LastTrade";
150
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
151
+ side: "Bid" | "Ask";
152
+ market_id: number;
153
+ owner: string;
154
+ last_update_timestamp: bigint;
155
+ linked_tpsl_order_id: bigint | null;
156
+ }>>;
157
+ spot_fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
110
158
  }>;
111
159
  submitTransaction(runtimeCall: RuntimeCall): Promise<TransactionResult<Transaction<RuntimeCall>>>;
112
160
  transfer(to: Address, amount: bigint, tokenId: TokenId): Promise<TransactionResult<Transaction<RuntimeCall>>>;
@@ -5,7 +5,7 @@ import { type Endpoints } from "./constants";
5
5
  import type { Orderbook } from "./orderbook";
6
6
  import type { Address, AssetName, MarketName, Network } from "./types";
7
7
  import type { OrderType, PlaceOrderArgs, Side } from "./types";
8
- import { type AccountAddresses, type AssetRegistry, type BorrowLendPools as BorrowLendPools, type GlobalParameters, type MarginConfig, type MarketRegistry, type OraclePrices, type Order, type OrderbookL2, type PerpMarket, type PerpPrices, type TpslOrderIdsToExecute, type UsdcInsuranceFund, type UsdcPnlPool, type UserAccount } from "./zod-types/rest";
8
+ import { type AccountAddresses, type AssetRegistry, type BorrowLendPools, type GlobalParameters, type MarginConfig, type MarketRegistry, type OraclePrices, type Order, type OrderbookL2, type PerpMarket, type PerpPrices, type TpslOrderIdsToExecute, type UsdcInsuranceFund, type UsdcPnlPool, type UserAccount } from "./zod-types/rest";
9
9
  export declare class ExchangeConnection extends BaseConnection {
10
10
  private wsManager?;
11
11
  private assetRegistry?;