Skip to content

Commit

Permalink
Add: fetch order margin example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakesh Ranjan committed Dec 9, 2020
1 parent 8f52d87 commit fda9d7e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/kiteconnect_sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,15 @@
])["order_id"];

echo "Order id is ".$order_id;

// fetch order margin
$order_param = array(array("exchange" => "NSE",
"tradingsymbol" => "INFY",
"transaction_type" => $kite::TRANSACTION_TYPE_BUY,
"variety" => $kite::VARIETY_REGULAR,
"product" => $kite::PRODUCT_CNC,
"order_type" => $kite::ORDER_TYPE_MARKET,
"quantity" => 1
),);
print_r($kite->orderMargins($order_param));
?>

0 comments on commit fda9d7e

Please sign in to comment.