TastyTrade support
MesoLive supports TastyTrade through the MesoLive Agent, for market data and for orders. TastyTrade offers free market data for funded accounts.
Prerequisites
- A funded TastyTrade account
- The MesoLive Agent installed
TastyTrade API access
To use TastyTrade with MesoLive, create an OAuth application and a grant on TastyTrade's website. You get a Client Secret and a Refresh Token; the MesoLive Agent needs both.
Steps:
- Head to the TastyTrade website and open the Manage tab > My Profile > API > OAuth Applications

- Select New OAuth Application
- Click + New OAuth client and fill out the following items:
- Redirect URI: https://mesolive.io/agents
- Scopes requested: read, trade, openid
- Client Name: will be populated automatically
- Click Create
- Copy the Client ID and Client Secret. The Client Secret will only be shown once. If you lose the Client Secret, you need to regenerate it on the website
- Click + New OAuth client and fill out the following items:
- Create API Token
- Click the 'Manage' dropdown on the newly created OAuth Application and select 'Create Grant'

- Enable the
read,trade, andopenidscopes - Click Create

- Authenticate using your Authenticator app or SMS code
- Copy the Refresh Token.

- Click the 'Manage' dropdown on the newly created OAuth Application and select 'Create Grant'
Add TastyTrade in the agent
Agent app
- In the MesoLive Agent, on Connections, click Add brokerage and choose TastyTrade.
- Paste the Client secret and the Refresh token.
- Click Add TastyTrade. The agent checks the credentials with TastyTrade first. If TastyTrade refuses them, nothing is saved.

The client secret and the refresh token stay on your computer.
Command-line agent
Use --tasty-client-secret and --tasty-refresh-token, or MESOLIVE_TASTY_CLIENT_SECRET and MESOLIVE_TASTY_REFRESH_TOKEN. See Agent Setup - CLI.
Validation
The TastyTrade card on the agent's Connections tab reads Connected and lists your TastyTrade accounts. In MesoLive, your TastyTrade accounts appear on the Accounts page.
If the card reads Credentials rejected, TastyTrade refused the client secret or the refresh token. Copy them again, or create a new grant, and replace them in the TastyTrade details.
Orders at TastyTrade
- Orders go live at once. Send to Tasty places the order at TastyTrade immediately. MesoLive asks you to confirm the first send of each order group.
- At most 4 legs in one order. Split larger structures into more groups on the Leg groups step.
- You can change a working order's limit and time in force, or cancel it, on MesoLive's Orders page. TastyTrade gives the changed order a new order ID.
- If you change a MesoLive order in TastyTrade's own app, MesoLive follows the change: the fills still build the position.
See Order execution.