diff --git a/Resources/brokerages/zerodha/orders.php b/Resources/brokerages/zerodha/orders.php index 77ce7c34fc..c5d2be8727 100644 --- a/Resources/brokerages/zerodha/orders.php +++ b/Resources/brokerages/zerodha/orders.php @@ -41,36 +41,44 @@
Property | -Description | +Property | +Data Type | +Description | +Default Value |
---|---|---|---|---|---|
Exchange exchange |
- Select the exchange for sending the order to. The following instructions are supported: + | Exchange exchange |
+ Exchange
+ | Select the exchange for sending the order to. The following instructions are available:
|
+ |
ProductType product_type |
+ ProductType product_type |
+ string str |
- A ProductType product_type instruction to apply to the order. The IndiaOrderProperties.IndiaProductType enumeration has the following members:
+ A ProductType product_type instruction to apply to the order. The IndiaOrderProperties.IndiaProductType enumeration has the following members:
|
+ ||
TimeInForce time_in_force |
- A TimeInForce instruction to apply to the order. The following instructions are supported: + | TimeInForce |
+ A TimeInForce instruction to apply to the order. The following instructions are available:
|
+ TimeInForce.GoodTilCanceled TimeInForce.GOOD_TIL_CANCELED |
def initialize(self) -> None: @@ -118,7 +126,7 @@ self.limit_order(self._symbol, quantity, limit_price, order_properties=order_properties) order_properties = IndiaOrderProperties(Exchange.BSE, IndiaOrderProperties.IndiaProductType.CNC) - order_properties.time_in_force = TimeInForce.GOOD_TIL_DATE + order_properties.time_in_force = TimeInForce.good_til_date(datetime(year, month, day)) self.limit_order(self._symbol, quantity, limit_price, order_properties=order_properties)