src/hooks/useZerodha.ts
Exported API
handleOrderProps
Order normalization
Before API call, hook buildsfinalOrder:
- MARKET orders omit
price, usevalidity: IOC - LIMIT orders include
price, usevalidity: DAY
placeOrder(finalOrder) from Zerodha service.
Other handlers
All show
openSnackbar on success/error.
Consumers
OptionOrderPage,CashOrderPage,FutureOrderPagedashboardUser.tsxmanual buy buttons