Skip to content

Commit 178ab86

Browse files
committed
feat: add example for getVirtualContractNote
1 parent 0ee6ec4 commit 178ab86

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

examples/kiteconnect_sample.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,41 @@
7777
]);
7878
echo "Trigger id is ".$place_GTT->trigger_id;
7979

80+
$orderParams = [[
81+
"order_id" => "111111111",
82+
"exchange" => "NSE",
83+
"tradingsymbol" => "SBIN",
84+
"transaction_type" => $kite::TRANSACTION_TYPE_BUY,
85+
"variety" => $kite::VARIETY_REGULAR,
86+
"product" => $kite::PRODUCT_CNC,
87+
"order_type" => $kite::ORDER_TYPE_MARKET,
88+
"quantity" => 1,
89+
"average_price" => 560
90+
],
91+
[
92+
"order_id" => "2222222222",
93+
"exchange" => "MCX",
94+
"tradingsymbol" => "GOLDPETAL23JULFUT",
95+
"transaction_type" => $kite::TRANSACTION_TYPE_SELL,
96+
"variety" => $kite::VARIETY_REGULAR,
97+
"product" => $kite::PRODUCT_NRML,
98+
"order_type" => $kite::ORDER_TYPE_LIMIT,
99+
"quantity" => 1,
100+
"average_price" => 5862
101+
],
102+
[
103+
"order_id" => "3333333333",
104+
"exchange" => "NFO",
105+
"tradingsymbol" => "NIFTY2371317900PE",
106+
"transaction_type" => $kite::TRANSACTION_TYPE_SELL,
107+
"variety" => $kite::VARIETY_REGULAR,
108+
"product" => $kite::PRODUCT_NRML,
109+
"order_type" => $kite::ORDER_TYPE_LIMIT,
110+
"quantity" => 100,
111+
"average_price" => 1.5
112+
]
113+
];
114+
115+
print_r($kite->getVirtualContractNote($orderParams));
116+
80117
?>

0 commit comments

Comments
 (0)