Short Straddle
The Short Straddle places two orders which one leg will be call and another will be put,
the strike price can be defined by the users and both the strike prices should be same over here the user is able to
define hedge value which will then place two buy and two sell orders.
POST: /apiV2/strategies/shortStraddle
https://connect.thefirstock.com/apiV2/strategies/shortStraddle
Request Details
Parameter
Description
symbol
Trading Symbol e.g.("NIFTY", "BANKNIFTY")
strikePrice
Strike Price of the symbol e.g.("17500", "16130")
expiry
Date month year e.g.("03NOV22")
product
C / M / I C -> Cash and Carry, M -> F&O Normal, I -> Intraday
quantity
Order Quantity
remarks
User can send remarks for the order
hedge
This parameter enables the hedge to used or not, type: bool
hedgeValue
ATM value for the hedge to be placed, type: integer
jKey
Key Obtained on login success.
actId
Act Id of the login user
Code
curl --X POST 'https://connect.thefirstock.com/apiV2/strategies/shortStraddle' \
--H 'Content-Type: application/json' \
--d '{
"symbol": "",
"strikePrice": "",
"expiry": "",
"product": "",
"quantity": "",
"remarks": "",
"jKey": "",
"actId": "",
"hedge": True,
"hedgeValue": 300
}'
from thefirstock import thefirstock
SS = thefirstock . firstock_ShortStraddle (
symbol = "" ,
strikePrice = "" ,
expiry = "" ,
product = "" ,
quantity = "" ,
remarks = "" ,
hedgeValue = 300 ,
hedge = True
)
const Firstock = require ( 'thefirstock' );
const firstock = new Firstock ();
firstock . shortStraddle (
{
symbol : "NIFTY" ,
strikePrice : "17000" ,
expiry : "10NOV22" ,
product : "I" ,
quantity : "1" ,
remarks : "ShortStraddleWithoutHedge" ,
hedge : false ,
hedgeValue : 300 ,
},
( err , result ) => {
console . log ( "Error, " , err );
console . log ( "Result: " , result );
}
);
var result = firstock . shortStrangle ( symbol : "" ,
putStrikePrice : "" ,
callStrikePrice : "" ,
expiry : "" ,
product : "" ,
quantity : "" ,
remarks : ""
);
Success Response Details
Parameter
Description
data.requestTime
Response received time.
data.orderNumber
It will be present only on successful Order placement to OMS.
Failure Response Details
Parameter
Description
Status
Failed
data
Type of error
Sample Response