curl -X DELETE "https://api.liquid.tf/api/dev/buy_orders" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_SITE_API_KEY"
const response = await fetch('https://api.liquid.tf/api/dev/buy_orders', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_SITE_API_KEY'
}
});
const data = await response.json();
console.log(`Deleted ${data.deleted_count} buy orders`);
import requests
response = requests.delete(
'https://api.liquid.tf/api/dev/buy_orders',
headers={'X-API-Key': 'YOUR_SITE_API_KEY'}
)
data = response.json()
print(f"Deleted {data['deleted_count']} buy orders")
{
"success": true,
"deleted_count": 123
}
Buy Order Management
Delete All Buy Orders
Remove all your buy orders at once
DELETE
/
api
/
dev
/
buy_orders
curl -X DELETE "https://api.liquid.tf/api/dev/buy_orders" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_SITE_API_KEY"
const response = await fetch('https://api.liquid.tf/api/dev/buy_orders', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_SITE_API_KEY'
}
});
const data = await response.json();
console.log(`Deleted ${data.deleted_count} buy orders`);
import requests
response = requests.delete(
'https://api.liquid.tf/api/dev/buy_orders',
headers={'X-API-Key': 'YOUR_SITE_API_KEY'}
)
data = response.json()
print(f"Deleted {data['deleted_count']} buy orders")
{
"success": true,
"deleted_count": 123
}
Overview
Deletes all of your buy orders in a single operation.This action cannot be undone! All your buy orders will be permanently removed.
No funds are returned when deleting buy orders since funds are never reserved when creating them. Payment only happens when a seller fulfills your order.
Authentication
string
required
Your site API key
Rate Limit
1 request per minuteResponse
boolean
Returns
true if all buy orders were successfully deletedinteger
Number of buy orders that were deleted
curl -X DELETE "https://api.liquid.tf/api/dev/buy_orders" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_SITE_API_KEY"
const response = await fetch('https://api.liquid.tf/api/dev/buy_orders', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_SITE_API_KEY'
}
});
const data = await response.json();
console.log(`Deleted ${data.deleted_count} buy orders`);
import requests
response = requests.delete(
'https://api.liquid.tf/api/dev/buy_orders',
headers={'X-API-Key': 'YOUR_SITE_API_KEY'}
)
data = response.json()
print(f"Deleted {data['deleted_count']} buy orders")
{
"success": true,
"deleted_count": 123
}
What Gets Deleted
This endpoint deletes:- ✅ Active buy orders
- ✅ Inactive buy orders
- ✅ Partially filled buy orders (unfilled portion)
- ❌ Completed buy order trades
- ❌ Pending trades (use trade management endpoints)
- ❌ Your marketplace listings
Safety Tips
Before calling this endpoint:- Confirm intent - Make sure you really want to delete all buy orders
- Export data - Save your buy order data if you need it later
- Consider scope - This affects all buy orders, not just a subset
The
deleted_count in the response shows how many buy orders were removed. Use this to verify the operation completed as expected.Use Cases
Bot Shutdown
Bot Shutdown
Cleanly remove all buy orders when shutting down your trading bot
Strategy Change
Strategy Change
Clear all existing orders before implementing a new trading strategy
Account Cleanup
Account Cleanup
Remove old or outdated buy orders in bulk
Emergency Stop
Emergency Stop
Quickly halt all buying activity across all items
