Skip to content

Long Strangle

The Long Strangle places two orders which one leg will be call and another will be put, the strike price can be defined by the users for both the call and put leg.


POST: /apiV2/strategies/longStrangle

https://connect.thefirstock.com/apiV2/strategies/longStrangle

Request Details

Parameter Description
symbol Trading Symbol e.g.("NIFTY", "BANKNIFTY")
callStrikePrice Strike Price of the symbol e.g.("17500", "16130")
putStrikePrice 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/longStrangle' \
--H 'Content-Type: application/json' \
--d '{
    "symbol": "",
    "callStrikePrice": "",
    "putStrikePrice": "",
    "expiry": "",
    "product": "",
    "quantity": "",
    "remarks": "",
    "jKey": "",
    "actId": ""
}'
from thefirstock import thefirstock

LS = thefirstock.firstock_LongStrangle(
    symbol="",
    callStrikePrice="",
    putStrikePrice="",
    expiry="",
    product="",
    quantity="",
    remarks=""
)
const Firstock = require('thefirstock');

const firstock = new Firstock();
 firstock.longStrangle(
{
symbol: "NIFTY",
callStrikePrice: "18000",
putStrikePrice: "17000",
expiry: "10NOV22",
product: "I",
quantity: "1",
remarks: "longStrangle",
},
(err, result) => {
console.log("Error, ", err);
console.log("Result: ", result);
}
);
          var result = firstock.longStrangle(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

[
{
    "Status": "Success",
    "data": {
        "requestTime": "14:49:28 07-11-2022",
        "orderNumber": ""
    }
},
{
    "Status": "Success",
    "data": {
        "requestTime": "14:49:28 07-11-2022",
        "orderNumber": ""
    }
}
]
[
{
  "Status": "Failed",
  "data": "Invalid Input :   Invalid Trading Symbol"
},
{
  "Status": "Failed",
  "data": "Invalid Input :   Invalid Trading Symbol"
}
]