@bulletxyz/bullet-sdk 0.27.3 → 0.28.1-rc.0

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.
@@ -53,7 +53,7 @@ export declare class Client {
53
53
  unsettled_perp_profit: Decimal;
54
54
  };
55
55
  client_order_ids: Map<bigint, bigint>;
56
- spot_ledgers: Map<number, {
56
+ balances: Map<number, {
57
57
  asset: Decimal;
58
58
  liability: Decimal;
59
59
  }>;
@@ -100,7 +100,6 @@ export declare class Client {
100
100
  funding_payments_on_position: Decimal;
101
101
  };
102
102
  user_selected_max_leverage: number;
103
- fee_tier: "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4";
104
103
  tpsls: Map<bigint, {
105
104
  size: Decimal | null;
106
105
  tpsl_order_id: bigint;
@@ -116,53 +115,55 @@ export declare class Client {
116
115
  linked_tpsl_order_id: bigint | null;
117
116
  }>;
118
117
  }>;
119
- spot_orders: Map<number, Map<bigint, {
120
- side: "Bid" | "Ask";
121
- market_id: number;
122
- order_id: bigint;
123
- client_order_id: bigint | null;
124
- price: Decimal;
125
- remaining_size: Decimal;
126
- reduce_only: boolean;
127
- filled_size: Decimal;
128
- average_filled_price: Decimal;
129
- owner: string;
130
- pending_tpsl: {
131
- tp: {
132
- tpsl_order_id: bigint;
133
- order_price: Decimal;
134
- trigger_price: Decimal;
135
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
136
- price_condition: "Mark" | "Oracle" | "LastTrade";
137
- dynamic_size: boolean;
138
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
139
- } | null;
140
- sl: {
141
- tpsl_order_id: bigint;
142
- order_price: Decimal;
143
- trigger_price: Decimal;
144
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
145
- price_condition: "Mark" | "Oracle" | "LastTrade";
146
- dynamic_size: boolean;
147
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
148
- } | null;
149
- };
150
- }>>;
151
- spot_tpsls: Map<number, Map<bigint, {
152
- size: Decimal | null;
153
- tpsl_order_id: bigint;
154
- order_price: Decimal;
155
- trigger_price: Decimal;
156
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
157
- price_condition: "Mark" | "Oracle" | "LastTrade";
158
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
159
- side: "Bid" | "Ask";
160
- market_id: number;
161
- owner: string;
162
- last_update_timestamp: bigint;
163
- linked_tpsl_order_id: bigint | null;
164
- }>>;
165
- spot_fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
118
+ spot_ledgers: Map<number, {
119
+ orders: Map<bigint, {
120
+ side: "Bid" | "Ask";
121
+ market_id: number;
122
+ order_id: bigint;
123
+ client_order_id: bigint | null;
124
+ price: Decimal;
125
+ remaining_size: Decimal;
126
+ reduce_only: boolean;
127
+ filled_size: Decimal;
128
+ average_filled_price: Decimal;
129
+ owner: string;
130
+ pending_tpsl: {
131
+ tp: {
132
+ tpsl_order_id: bigint;
133
+ order_price: Decimal;
134
+ trigger_price: Decimal;
135
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
136
+ price_condition: "Mark" | "Oracle" | "LastTrade";
137
+ dynamic_size: boolean;
138
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
139
+ } | null;
140
+ sl: {
141
+ tpsl_order_id: bigint;
142
+ order_price: Decimal;
143
+ trigger_price: Decimal;
144
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
145
+ price_condition: "Mark" | "Oracle" | "LastTrade";
146
+ dynamic_size: boolean;
147
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
148
+ } | null;
149
+ };
150
+ }>;
151
+ tpsls: Map<bigint, {
152
+ size: Decimal | null;
153
+ tpsl_order_id: bigint;
154
+ order_price: Decimal;
155
+ trigger_price: Decimal;
156
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
157
+ price_condition: "Mark" | "Oracle" | "LastTrade";
158
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
159
+ side: "Bid" | "Ask";
160
+ market_id: number;
161
+ owner: string;
162
+ last_update_timestamp: bigint;
163
+ linked_tpsl_order_id: bigint | null;
164
+ }>;
165
+ }>;
166
+ fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
166
167
  }>;
167
168
  submitTransaction(runtimeCall: RuntimeCall): Promise<TransactionResult<Transaction<RuntimeCall>>>;
168
169
  transfer(to: Address, amount: bigint, tokenId: TokenId): Promise<TransactionResult<Transaction<RuntimeCall>>>;