PlaceMultiFOOptionsOrder

To get characters you need to make a POST call to the following url : https://amapi.algomojo.com/v1/PlaceMultiFOOptionsOrder

QUERY PARAMETERS

Request ParameterDescriptionMandatory

broker

Broker code

Yes

strategy

Strategy

Yes

spot_symbol

Spot symbol

Yes

expiry_date

Expiry date

Yes

action

Action

Yes

product

Product Type

Yes

pricetype

Price Type

Yes

quantity

Quantity

Yes

price

Price

Yes

option_type

Option type

Yes

strike_int

Strike Interval

Yes

offset

Offset

NO

trigger_price

Trigger Price

No

splitorder

split order

No

split_quantity

split quantity

No

# Here is a curl example
-X POST https://amapi.algomojo.com/v1/PlaceMultiFOOptionsOrder

Request example :
{
     "api_key":"your_api_key",
     "api_secret":"your_api_secret",
     "data":
       {
           "orders" : 
             [
                 {
                 "api_key":"your_api_key",
                 "api_secret":"your_api_secret",
                 "data":{
                         "broker":"ab",
                         "strategy":"Test Strategy",
                         "spot_symbol":"NIFTY",
                         "expiry_date":"22D08",
                         "action":"BUY",
                         "product":"NRML",
                         "pricetype":"MARKET",
                         "quantity":"150",
                         "price":"0",
                         "option_type":"CE",
                         "strike_int":"50",
                         "offset":"-2",
                         "trigger_price":"0",
                         "splitorder":"NO",
                         "split_quantity":"50"
                     }
                 },
                 {
                 "api_key":"your_api_key",
                 "api_secret":"your_api_secret",
                 "data":{
                         "broker":"ZB",
                         "strategy":"Test Strategy",
                         "spot_symbol":"NIFTY",
                         "expiry_date":"01DEC22",
                         "action":"BUY",
                         "product":"NRML",
                         "pricetype":"MARKET",
                         "quantity":"150",
                         "price":"0",
                         "option_type":"CE",
                         "strike_int":"50",
                         "offset":"-2",
                         "trigger_price":"0",
                         "splitorder":"YES",
                         "split_quantity":"50"
                     }
                 }
             ]
       }
 }

Response example:
 [
     {
         "status": "success",
         "data": {
             "broker": "AB",
             "symbol":"NIFTY22D0818700CE",
             "orderid": "221115000096536"
         }
     },
     {
         "status": "success",
         "data": {
             "broker": "ZB",
             "symbol":"NIFTY08DEC2218700CE",
             "orderid": "221115000017413"
         }
     }
 ]    

Last updated