Overview
Create a long position with specified margin and leverage. Profits when price increases. Authentication required: Privy JWT tokenRequest Body
Margin amount in USD. Must be a positive number as a string.Minimum: 1 USD equivalent
Example: “100.0”
Example: “100.0”
Leverage multiplier for the position.Range: 1 to 1000
Example: 10
Example: 10
Trading pair symbol.Supported values: “BTC-USD”, “ETH-USD”, “SOL-USD”, “BNB-USD”, “XRP-USD”, “HYPE-USD”
Example: “BTC-USD”
Response Fields
Indicates if the position was created successfully
Success message describing the operation
Blockchain transaction hash for the position creation
Amount of gas consumed for the transaction
Position size in base asset units (positive for long, negative for short)
Leverage multiplier applied to the position
Position direction - “LONG” for long positions
Unique identifier for the created position
Price at which the position will be liquidated
Complete position object with detailed information:
id
: Position IDwallet_address
: Owner’s wallet addresssymbol
: Trading pair symbolszi
: Position size in base asset unitsmargin
: Margin amount usedentry_price
: Entry priceliquidation_price
: Liquidation pricestatus
: Position status (“open”)created_at
: ISO timestampleverage
: Calculated leverageposition_value
: Total position value
Position Mechanics
Size Calculation
Liquidation Price
The liquidation price is calculated based on:- Entry price
- Leverage used
- Trading fees
- Funding rate buffer
Profit/Loss
Long positions profit when the mark price is above the entry price:Business Logic
Balance Validation
- Your account balance must cover the margin requirement
- Reserved margin is immediately deducted from available balance
- Insufficient balance returns a 400 error
Market Conditions
- Position creation uses the current mark price as entry price
- Minimum position size: 1 USD equivalent after leverage
- Maximum leverage varies by market conditions
Fee Structure
Strike Protocol uses a dynamic fee structure:- Base fee: 0.1% of position size
- Additional fees: Applied based on position size and market impact
Error Responses
Invalid request parameters or insufficient balance
Missing or invalid authentication token
Rate limit exceeded (10 requests per minute for trading endpoints)
Usage Examples
Conservative Long Position
- Position size: 100 USD
- Lower risk, liquidation price further from entry
High Leverage Long Position
- Position size: 1,000 USD
- Higher risk, liquidation price closer to entry
Maximum Leverage Position
- Position size: 1,000 USD
- Maximum risk, very close liquidation price
Next Steps
After creating a long 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
Long positions are suitable when you expect the asset price to increase. Consider market conditions, volatility, and your risk tolerance when choosing leverage levels.
Authorizations
Strike Protocol API key authentication
Body
application/json