Get Upgrade URL
get_upgrade_urlGet a Stripe checkout URL to upgrade the user's TraderWAI plan. Plans: FREE (1 broker account, 5 executions/day, 1 new conditional order/day, 2-week backtests); PLUS (3 accounts, 25 executions/day, auto-execution, 5 new conditional orders/day, 6-month backtests, no MetaTrader); TRADER (5 accounts, unlimited executions, auto-execution, 10 conditional orders, 1 MetaTrader account, 1-year backtests); MAX (20 accounts, unlimited conditional orders, full risk limits, 3 MetaTrader accounts, all history). No free trials: the first month of any monthly plan is 50% off for a first subscription. Monthly and yearly billing (yearly is cheaper). Returns a URL the user must open to pay, with the price and any discount. If the user already pays, the result has changePlan=true: it is a prorated change of the same subscription (unused days of the current plan are credited; preview.amountDue is charged today, or nothing during a trial) and url is the pricing page where the user confirms it. Downgrades are done by the user on the pricing page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | The target plan to upgrade to (PLUS only when it is on sale: the plan-limit messages say which plan to offer) | |
| interval | No | Billing period (default month) |