@bulletxyz/bullet-sdk 0.21.0-rc.0 → 0.21.0-rc.4
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
|
@@ -9175,10 +9175,10 @@ var Client = class _Client {
|
|
|
9175
9175
|
}
|
|
9176
9176
|
});
|
|
9177
9177
|
}
|
|
9178
|
-
async
|
|
9178
|
+
async placeTpslsForAsset(asset, tpslOrders) {
|
|
9179
9179
|
return await this.submitTransaction({
|
|
9180
9180
|
exchange: {
|
|
9181
|
-
|
|
9181
|
+
place_tpsls_for_asset: {
|
|
9182
9182
|
asset_id: asset,
|
|
9183
9183
|
tpsls: tpslOrders.map(
|
|
9184
9184
|
({
|
|
@@ -9265,10 +9265,10 @@ var Client = class _Client {
|
|
|
9265
9265
|
}
|
|
9266
9266
|
});
|
|
9267
9267
|
}
|
|
9268
|
-
async
|
|
9268
|
+
async cancelAllOrdersForAsset(asset) {
|
|
9269
9269
|
return await this.submitTransaction({
|
|
9270
9270
|
exchange: {
|
|
9271
|
-
|
|
9271
|
+
cancel_all_orders_for_asset: {
|
|
9272
9272
|
asset_id: asset
|
|
9273
9273
|
}
|
|
9274
9274
|
}
|
|
@@ -9359,10 +9359,10 @@ var Client = class _Client {
|
|
|
9359
9359
|
}
|
|
9360
9360
|
});
|
|
9361
9361
|
}
|
|
9362
|
-
async
|
|
9362
|
+
async liquidatePerpPositions(address, positions) {
|
|
9363
9363
|
return await this.submitTransaction({
|
|
9364
9364
|
exchange: {
|
|
9365
|
-
|
|
9365
|
+
liquidate_perps_positions: {
|
|
9366
9366
|
address,
|
|
9367
9367
|
positions: positions?.map(({ asset, size }) => ({
|
|
9368
9368
|
asset_id: asset,
|