curl -X POST "https://api.strike.markets/short" \
-H "X-API-Key: stk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"margin": "100.0",
"leverage": 10,
"symbol": "BTC-USD"
}'
const response = await fetch('https://api.strike.markets/short', {
method: 'POST',
headers: {
'X-API-Key': 'stk_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
margin: "100.0",
leverage: 10,
symbol: "BTC-USD"
})
});
const data = await response.json();
console.log('Short position created:', data);
import requests
response = requests.post(
'https://api.strike.markets/short',
headers={
'X-API-Key': 'stk_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'margin': '100.0',
'leverage': 10,
'symbol': 'BTC-USD'
}
)
data = response.json()
print('Short position created:', data)
{
"success": true,
"message": "Short position created successfully",
"txHash": "0x1234567890abcdef1234567890abcdef12345679",
"gasUsed": 180000,
"positionId": 12346,
"symbol": "BTC-USD",
"szi": "-0.002217",
"margin": "100.0",
"entryPrice": "45123.50",
"liquidationPrice": "49012.85",
"status": "open",
"createdAt": "2024-01-15T14:30:00Z",
"spread": "5.25"
}
Trading Operations
Create Short Position
Open a short position with specified margin and leverage
POST
/
short
curl -X POST "https://api.strike.markets/short" \
-H "X-API-Key: stk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"margin": "100.0",
"leverage": 10,
"symbol": "BTC-USD"
}'
const response = await fetch('https://api.strike.markets/short', {
method: 'POST',
headers: {
'X-API-Key': 'stk_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
margin: "100.0",
leverage: 10,
symbol: "BTC-USD"
})
});
const data = await response.json();
console.log('Short position created:', data);
import requests
response = requests.post(
'https://api.strike.markets/short',
headers={
'X-API-Key': 'stk_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'margin': '100.0',
'leverage': 10,
'symbol': 'BTC-USD'
}
)
data = response.json()
print('Short position created:', data)
{
"success": true,
"message": "Short position created successfully",
"txHash": "0x1234567890abcdef1234567890abcdef12345679",
"gasUsed": 180000,
"positionId": 12346,
"symbol": "BTC-USD",
"szi": "-0.002217",
"margin": "100.0",
"entryPrice": "45123.50",
"liquidationPrice": "49012.85",
"status": "open",
"createdAt": "2024-01-15T14:30:00Z",
"spread": "5.25"
}
curl -X POST "https://api.strike.markets/short" \
-H "X-API-Key: stk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"margin": "100.0",
"leverage": 10,
"symbol": "BTC-USD"
}'
const response = await fetch('https://api.strike.markets/short', {
method: 'POST',
headers: {
'X-API-Key': 'stk_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
margin: "100.0",
leverage: 10,
symbol: "BTC-USD"
})
});
const data = await response.json();
console.log('Short position created:', data);
import requests
response = requests.post(
'https://api.strike.markets/short',
headers={
'X-API-Key': 'stk_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'margin': '100.0',
'leverage': 10,
'symbol': 'BTC-USD'
}
)
data = response.json()
print('Short position created:', data)
{
"success": true,
"message": "Short position created successfully",
"txHash": "0x1234567890abcdef1234567890abcdef12345679",
"gasUsed": 180000,
"positionId": 12346,
"symbol": "BTC-USD",
"szi": "-0.002217",
"margin": "100.0",
"entryPrice": "45123.50",
"liquidationPrice": "49012.85",
"status": "open",
"createdAt": "2024-01-15T14:30:00Z",
"spread": "5.25"
}
Overview
Create a short position on Strike Protocol with specified margin and leverage. A short position profits when the asset price decreases.This endpoint requires authentication with a valid API key.
Authentication
Include your API key in the X-API-Key header:X-API-Key: stk_your_api_key_here
Request Body
string
required
Margin amount in USD. Must be a positive number as a string.Minimum: 1 USD equivalent
Example: “100.0”
Example: “100.0”
integer
required
Leverage multiplier for the position.Range: 1 to 1000
Example: 10
Example: 10
string
required
Trading pair symbol.Supported values: “BTC-USD”, “ETH-USD”, “SOL-USD”
Example: “BTC-USD”
Example: “BTC-USD”
Response Fields
boolean
Indicates if the position was created successfully
integer
Unique identifier for the created position
string
Blockchain transaction hash for the position creation
string
Margin amount used for the position
integer
Leverage multiplier applied
string
Total position size (margin × leverage)
string
Price at which the position was opened
string
Price at which the position will be liquidated
Error Responses
object
Invalid request parameters or insufficient balance
{
"error": 400,
"message": "Insufficient balance for margin requirement"
}
object
Missing or invalid authentication token
{
"error": 401,
"message": "Authorization header missing"
}
object
Rate limit exceeded (10 requests per minute for trading endpoints)
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Please wait 45 seconds.",
"retry_after": 45
}
Next Steps
After creating a short position:- Monitor Position - Use Get Positions to track your position
- Check Dashboard - View comprehensive data with Dashboard
- Close Position - Manually close with Close Position
- Emergency Exit - Use Emergency Exit if needed
Short positions carry unlimited loss potential and require careful risk management. Monitor positions closely and consider using stop losses.
Short positions are suitable when you expect the asset price to decrease. Consider using lower leverage for short positions due to their higher risk profile.
Authorizations
Strike Protocol API key authentication
Body
application/json