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 @@ - - + + + + - - + + - + + + - + +
PropertyDescriptionPropertyData TypeDescriptionDefault Value
ExchangeexchangeSelect the exchange for sending the order to. The following instructions are supported: + ExchangeexchangeExchange + Select the exchange for sending the order to. The following instructions are available:
    -
  • NSE
  • -
  • BSE
  • +
  • Exchange.NSE
  • +
  • Exchange.BSE
ProductTypeproduct_typeProductTypeproduct_typestringstr - A ProductTypeproduct_type instruction to apply to the order. The IndiaOrderProperties.IndiaProductType enumeration has the following members: + A ProductTypeproduct_type instruction to apply to the order. The IndiaOrderProperties.IndiaProductType enumeration has the following members:
TimeInForcetime_in_forceA TimeInForce instruction to apply to the order. The following instructions are supported: + TimeInForceA TimeInForce instruction to apply to the order. The following instructions are available:
  • DayDAY
  • GoodTilCanceledGOOD_TIL_CANCELED
  • -
  • GoodTilDateGOOD_TIL_DATE
  • +
  • GoodTilDategood_til_date
TimeInForce.GoodTilCanceledTimeInForce.GOOD_TIL_CANCELED
@@ -100,7 +108,7 @@ LimitOrder(_symbol, quantity, limitPrice, orderProperties: new IndiaOrderProperties(Exchange.BSE, IndiaOrderProperties.IndiaProductType.CNC) { - TimeInForce = TimeInForce.GoodTilDate, + TimeInForce = TimeInForce.GoodTilDate(new DateTime(year, month, day)), }; }
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)