@bulletxyz/bullet-sdk 0.25.0 → 0.25.2-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.
package/dist/types/client.d.ts
CHANGED
|
@@ -118,12 +118,13 @@ export declare class Client {
|
|
|
118
118
|
placeTpslsForMarket(market: Market, tpslOrders: PlacePositionTpslArgs): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
119
119
|
replaceOrder(options: ReplaceOrderOptions): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
120
120
|
cancelTpsl(tpslOrderId: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
121
|
-
cancelOrder(orderId
|
|
121
|
+
cancelOrder(orderId?: bigint, clientOrderId?: bigint): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
122
122
|
cancelAllOrdersForMarket(market: Market): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
123
123
|
updateOraclePrices(pricesToUpdate: OraclePriceUpdateArgs[], publishTimestamp?: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
124
124
|
updateMarkPrices(pricesToUpdate: MarkPriceUpdateArgs[], publishTimestamp?: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
125
125
|
updateMaxLeverageForMarket(market: Market, maxLeverage: number): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
126
126
|
updatePremiumIndexes(marketIds: Market[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
127
|
+
processTpslBufferForMarket(market: Market): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
127
128
|
updateFunding(marketIds: Market[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
128
129
|
applyFunding(addresses: Address[]): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
129
130
|
forceCancelOrders(address: Address): Promise<TransactionResult<Transaction<RuntimeCall>>>;
|
|
@@ -87,7 +87,8 @@ type ExchangeCallMessage = {
|
|
|
87
87
|
tpsl_order_id: string;
|
|
88
88
|
};
|
|
89
89
|
cancel_order: {
|
|
90
|
-
order_id: string;
|
|
90
|
+
order_id: string | null;
|
|
91
|
+
client_order_id: string | null;
|
|
91
92
|
};
|
|
92
93
|
cancel_all_orders_for_market: {
|
|
93
94
|
market_id: MarketId;
|
|
@@ -114,6 +115,9 @@ type ExchangeCallMessage = {
|
|
|
114
115
|
update_premium_indexes: {
|
|
115
116
|
market_ids: MarketId[];
|
|
116
117
|
};
|
|
118
|
+
process_tpsl_buffer_for_market: {
|
|
119
|
+
market_id: MarketId;
|
|
120
|
+
};
|
|
117
121
|
update_funding: {
|
|
118
122
|
market_ids: MarketId[];
|
|
119
123
|
};
|