Trading Operations
Create Long Position
Open a long position with specified margin and leverage
POST
Overview
Create a long position with specified margin and leverage. Profits when price increases. Authentication required: API keyRequest 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”, “BNB-USD”, “XRP-USD”, “HYPE-USD”
Example: “BTC-USD”
Response Fields
boolean
Indicates if the position was created successfully
string
Success message describing the operation
string
Blockchain transaction hash for the position creation
integer
Amount of gas consumed for the transaction
string
Position size in base asset units (positive for long, negative for short)
integer
Leverage multiplier applied to the position
string
Position direction - “LONG” for long positions
integer
Unique identifier for the created position
string
Price at which the position will be liquidated
object
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
Error Responses
object
Invalid request parameters or insufficient balance
object
Missing or invalid authentication token
object
Rate limit exceeded (10 requests per minute for trading endpoints)
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
Authorizations
Strike Protocol API key authentication
Body
application/json