Skip to content

Bull Call Spread

The Bull Call Spread places two orders which both the legs will be call 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/bullCallSpread

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

Request Details

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

BCS = thefirstock.firstock_BullCallSpread(
    symbol="",
    callBuyStrikePrice="",
    callSellStrikePrice="",
    expiry="",
    product="",
    quantity="",
    remarks=""
)

print(BCS)
const Firstock = require('thefirstock');

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