Skip to main content

TastyTrade support

MesoLive supports TastyTrade through the MesoLive Agent, for market data and for orders. TastyTrade offers free market data for funded accounts.

Prerequisites​

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:

  1. Head to the TastyTrade website and open the Manage tab > My Profile > API > OAuth Applications
Tasty API screen
  1. Select New OAuth Application
    1. Click + New OAuth client and fill out the following items:
    2. Click Create
    3. 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
  2. Create API Token
    1. Click the 'Manage' dropdown on the newly created OAuth Application and select 'Create Grant'
      Tasty Create Grant
    2. Enable the read, trade, and openid scopes
    3. Click Create
      Tasty Grant Scopes
    4. Authenticate using your Authenticator app or SMS code
    5. Copy the Refresh Token.
      Tasty Refresh Token

Add TastyTrade in the agent​

Agent app​

  1. In the MesoLive Agent, on Connections, click Add brokerage and choose TastyTrade.
  2. Paste the Client secret and the Refresh token.
  3. Click Add TastyTrade. The agent checks the credentials with TastyTrade first. If TastyTrade refuses them, nothing is saved.
MesoLive Agent: Set up TastyTrade with the client secret and refresh token fields

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.