get_buy_deadline
Returns the last day to buy a stock and still receive its upcoming dividend, considering T+2 settlement. Indicates if no dividend is upcoming.
Instructions
For a symbol with an upcoming dividend, return the last day you can buy and still be entitled to the dividend (T+2 settlement applied).
Returns 'no upcoming dividend' if the symbol isn't currently in the PSX payouts table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |