@bulletxyz/bullet-sdk 0.25.2-rc.0 → 0.25.2-rc.1
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/node/index.js
CHANGED
|
@@ -6777,6 +6777,7 @@ var PerpLedger = z.object({
|
|
|
6777
6777
|
user_selected_max_leverage: U16Schema,
|
|
6778
6778
|
tpsls: createJsonMap(OrderId, Tpsl)
|
|
6779
6779
|
});
|
|
6780
|
+
var TpslOrderIdsToExecute = z.array(TpslOrderId);
|
|
6780
6781
|
var Schemas = {
|
|
6781
6782
|
DummyValue: z.number(),
|
|
6782
6783
|
OrderbookL2: z.object({
|
|
@@ -6934,6 +6935,10 @@ var Schemas = {
|
|
|
6934
6935
|
var ResponseSchemas = {
|
|
6935
6936
|
DummyValue: StateResponseSchemas.StateValue(Schemas.DummyValue),
|
|
6936
6937
|
Order: StateResponseSchemas.StateMapElement(OrderId, Order),
|
|
6938
|
+
TpslOrderIdsToExecute: StateResponseSchemas.StateMapElement(
|
|
6939
|
+
MarketId,
|
|
6940
|
+
TpslOrderIdsToExecute
|
|
6941
|
+
),
|
|
6937
6942
|
OraclePrices: StateResponseSchemas.StateValue(Schemas.OraclePrices),
|
|
6938
6943
|
PerpPrices: StateResponseSchemas.StateValue(Schemas.PerpPrices),
|
|
6939
6944
|
UsdcPnlPool: StateResponseSchemas.StateValue(Schemas.UsdcPnlPool),
|
|
@@ -7474,6 +7479,12 @@ var ExchangeConnection = class _ExchangeConnection extends BaseConnection {
|
|
|
7474
7479
|
const parsed = ResponseSchemas.MarginConfig.parse(response);
|
|
7475
7480
|
return parsed.data.value;
|
|
7476
7481
|
}
|
|
7482
|
+
async getTpslOrderIdsToExecute(market) {
|
|
7483
|
+
const path = `/modules/exchange/state/tpsl-order-ids-to-execute/items/${market}`;
|
|
7484
|
+
const response = await this.fetchApiResource(path);
|
|
7485
|
+
const parsed = ResponseSchemas.TpslOrderIdsToExecute.parse(response);
|
|
7486
|
+
return parsed.data.value;
|
|
7487
|
+
}
|
|
7477
7488
|
getWebSocketManager() {
|
|
7478
7489
|
if (!this.wsManager) {
|
|
7479
7490
|
throw new Error("WebSocket connection not configured");
|