Bear Put Spread
The Bear Put Spread places two orders which both the legs will be put and in which the first one is bought and second
one is sold, the strike price can be defined by the users.
POST: /apiV2/strategies/bearPutSpread
https://connect.thefirstock.com/apiV2/strategies/bearPutSpread
Request Details
Parameter
Description
symbol
Trading Symbol e.g.("NIFTY", "BANKNIFTY")
putBuyStrikePrice
Strike Price of the symbol e.g.("17500", "16130")
putSellStrikePrice
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
jKey
Key Obtained on login success.
actId
Act Id of the login user
Code
curl --X POST 'https://connect.thefirstock.com/apiV2/strategies/bearPutSpread' \
--H 'Content-Type: application/json' \
--d '{
"symbol": "",
"putBuyStrikePrice": "",
"putSellStrikePrice": "",
"expiry": "",
"product": "",
"quantity": "",
"remarks": "",
"jKey": "",
"actId": ""
}'
from thefirstock import thefirstock
BPS = thefirstock . firstock_BearPutSpread (
symbol = "" ,
putBuyStrikePrice = "" ,
putSellStrikePrice = "" ,
expiry = "" ,
product = "" ,
quantity = "" ,
remarks = ""
)
print ( BPS )
const Firstock = require ( 'thefirstock' );
const firstock = new Firstock ();
firstock . bearPutSpread (
{
symbol : "NIFTY" ,
putBuyStrikePrice : "17500" ,
putSellStrikePrice : "17500" ,
expiry : "10NOV22" ,
product : "C" ,
quantity : "1" ,
remarks : "BearPutSpread" ,
},
( err , result ) => {
console . log ( "Error, " , err );
console . log ( "Result: " , result );
}
);
var result = firstock . bearPutSpread ( symbol : "NIFTY" ,
putBuyStrikePrice : "17500" ,
putSellStrikePrice : "16500" ,
expiry : "05DEC22" ,
product : "I" ,
quantity : "10" ,
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