Skip to main content

Partner API

Build a full trading platform, powered by CrossTrade. Your application provides the customer experience; CrossTrade provides the broker connection, trading endpoints and automation services underneath it.

Tradovate only · Invite-only access

The Partner API is for Tradovate and does not support NinjaTrader 8. The program is currently invite-only, with applications open. See the Partner Program for business use cases, pricing structure and the application process.

The Partner API is your onboarding and authentication mechanism for those services. Create a funded CrossTrade account for each user, send them through hosted Connect, and exchange their consent for a member token. Use that token directly on the Trading API to read accounts, positions and orders or execute trades, and on the Management API to configure supported monitors, trade copiers and ATM templates.

How the APIs fit together​

APIWhat your app doesCredential
Partner: /v1/api/partnerOnboard members, issue Connect links, track connection status, manage funded seats, read usage and eventsYour service's partner token
Trading: /v1/api/tvRead the member's Tradovate accounts, positions, orders and fills; place and manage ordersThat member's access token
Management: /v1/api/manageRead and configure supported Tradovate automationThat member's access token

You use the same OAuth client for both token types. The partner token identifies your service. Each member token identifies one user's authorization to that client. Store the token pair against your own external_id, and select that user's token whenever your backend makes a Trading or Management request. The token determines the user; a Trading API request does not take an external_id to switch users.

Supported access

Delegated Trading and Management access is Tradovate-only, with no NT8 support. Delegated Management access covers Tradovate monitors, copiers and ATM templates, plus discovery and your app's audit records. Availability depends on your active Partner subscription, the member's consent and plan entitlements, and your enabled environments. Read GET /v1/api/partner/me for your service policy. The examples use demo accounts; live access also requires live_enabled to be true.

Endpoint reference​

Every /v1/api/partner endpoint has its own method-labeled reference under Partner API → Endpoints in the sidebar. Each page includes headers, parameters, Python/JavaScript/cURL examples, responses and errors.

All routes below use your service's partner token. Paths are relative to https://app.crosstrade.io/v1/api/partner. partner:provision includes partner:read.

EndpointPathScope
GET Partner Profile/mepartner:read
POST Create Member/userspartner:provision
GET Members/userspartner:read
GET Member/users/{external_id}partner:read
POST Create Connect Link/users/{external_id}/connect-linkpartner:provision
POST Pick Up Authorization Code/users/{external_id}/authorizations/{flow_id}/codepartner:provision
POST Revoke Member/users/{external_id}/revokepartner:provision
POST Reopen Member/users/{external_id}/reopenpartner:provision
GET Broker Status/brokerspartner:read
GET Member Broker Status/users/{external_id}/brokerspartner:read
GET Events/eventspartner:read
GET Usage/usagepartner:read

Token issuance, refresh and revocation use the shared /v1/oauth endpoints described in Partner Authentication.

Becoming a partner​

Start with a Partner application. Tell us about your business, website or community, and the Tradovate product you want to build. CrossTrade reviews the fit and discusses pricing and onboarding before inviting you. You do not need to buy a retail subscription to apply.

Once you are approved, the CrossTrade team unlocks a Partner Program offer on your CrossTrade account. It appears in My Account, Partner with your pricing, and the Partners area opens in test mode at the same time: test API keys, the real hosted Connect flow and simulated members, with nothing billed. Build and try your integration there, then go live.

To go live, choose Become a Partner in My Account, Partner, review your offer and accept the Partner Agreement. Nothing from test mode carries over to your live account. The Partner Platform is a separate CrossTrade subscription tier, with a monthly base fee and metered seat-day usage. An account already funded by a partner cannot itself become a partner; use a separate account. After activation, the dashboard walks you through three steps:

  1. Enter your business name. It appears on the agreements your customers accept, and CrossTrade derives a permanent account identifier from it (CrossTrade, LLC becomes crosstrade_llc), which becomes the plan name partner-<identifier> on every account you create. Neither can be changed later.
  2. Create your API client under API Keys. The client secret is shown once.
  3. Send your first request. Until the business name is set, member creation answers 409 partner_tag_required.

Leaving the Partner plan ends the platform for your account immediately: credentials stop working and your members are released. Seat-days used up to that moment are billed on the final usage invoice at the end of the current billing period. If you already have a CrossTrade subscription, upgrading switches that subscription to the Partner plan in place; otherwise you check out as a new subscriber.

Two tokens, separate responsibilities​

WhoCredentialSurface
Partner servicePartner token (client_credentials)/v1/api/partner/* control plane: members, usage, events, your own policy
Member (through your app)Member token (authorization_code + PKCE, obtained after hosted Connect)/v1/api/tv/* Trading API and /v1/api/manage/* Management API, within the member's grant

A partner token cannot place trades or read a member's positions. A member token cannot create or revoke funded seats. They have separate audiences (the APIs a token is valid for), even though both are issued to your OAuth client. One member token can carry both Trading and Management audiences when its approved scopes cover both.

Lifecycle at a glance​

  1. Create a member with POST /v1/api/partner/users. A new email gets a CrossTrade account funded by you. An email that already has a CrossTrade account joins as an attached member: it keeps its own plan and login, you fund nothing, and its owner has to sign in on the Connect page before anything is shared. Its seat opens at that consent and bills seat-days like any other member's. An account that is already with a partner returns 409 email_in_use.
  2. Send the member the Connect link CrossTrade returns. For an account you created, the link is the member's access (no sign-in, no email code). For an existing account, the page asks the owner to sign in with their CrossTrade email and password first. Either way the hosted portal then shows the terms, links the member's Tradovate login (or offers the ones already linked) and asks what your app may do.
  3. Exchange the authorization code for a member access token and refresh token at POST /v1/oauth/token.
  4. Call the Trading and Management APIs with that member's token in Authorization: Bearer .... The code guide shows account and position reads. Trading commands require tv:trade and an Idempotency-Key; Management writes require manage:write, with additional trading authority to start automation.
  5. Follow the lifecycle through GET /v1/api/partner/events or signed webhooks. Revoke a seat with POST /v1/api/partner/users/{external_id}/revoke when the member leaves your service.

Billing is per seat-day, computed by CrossTrade from the member's seat and your service state, and reported to Stripe on your subscription. See Billing and usage.

Request budgets and token lifetime​

Budgets. There are two, and they never touch each other. Your app's own Partner API calls (members, Connect links, revoke, events, usage, broker status) draw on your partner budget: a number of requests per minute, plus a limit on how many may be in progress at once; a few of these calls count double. Everything you do on behalf of a member with that member's token (Trading API, member stream) draws on that member's own budget, the same one every CrossTrade API user has: 180 requests per minute with a burst of 20, so after a burst about 3 requests a second. Cancels, closes and flattens count like any other request, as they do for every API user; only an outage of our limiter lets an exit through unmetered. It is per member, so a thousand members have a thousand budgets, and nothing a member does counts against your partner budget. Management API calls with a member token follow the same per-user rules as the retail Management API. GET /v1/api/partner/me shows your numbers under budgets. A refusal is 429 with Retry-After: rate_limited or too_many_concurrent_requests for your partner budget, member_rate_limited for one member's budget. See Errors.

Tradovate's own limit. Tradovate separately limits each login (about 80 requests per rolling minute and 5,000 per rolling hour), and every account on that login shares it. Orders always go to Tradovate as you send them; a Tradovate refusal is 429 broker_rate_limited. Reads of positions, orders and fills with a member token are answered from CrossTrade's live sync of the member's login whenever that sync is current, so polling them does not use the login's Tradovate requests and leaves them for orders. A read right after your own command for that member, the first reads after a member's sync starts and reads around the daily session reset go to Tradovate instead, so you always see the result of your own command.

Tokens. Partner and member access tokens last one hour. A member's refresh token has no fixed end date: each refresh keeps it valid for another 90 days, so a member whose tokens you refresh at least once every 90 days never has to authorize again. The member's Tradovate connection is separate, and CrossTrade keeps it renewed in the background. If it fails (for example after a password change), you receive broker.reauth_required and send the member a relink Connect link. See Partner Authentication.

The member experience​

While a partner-created seat is open, the account is managed by your service and cannot sign in to the ordinary CrossTrade dashboard. Hosted Connect is the member's access to linking and consent. Your app handles their day-to-day experience and support, including requests to end the connection.

An attached member is different: an existing CrossTrade customer who signed in on the Connect page to let your app in. Nothing about their account changes. They keep their plan, their dashboard and their own subscription, and you fund nothing. Their seat opens when they consent and bills seat-days like any other member's until you revoke it. Your app may use the Tradovate logins they chose to share, with the plan flags your partner program grants, whatever their own plan is: their subscription and your seat never affect each other. They can disconnect your app from their dashboard at any time (authorization.revoked); that ends your access but not the seat, so revoke the member on your side when they leave. Revoking an attached member ends the seat and the grant and changes nothing on their account. An account can join a partner once: after that it cannot be enrolled by any partner again.

Revoking the seat ends your funding and credentials and releases the account to the member on the free plan. CrossTrade emails them instructions for setting a password. Their broker links and saved settings remain. Account Manager monitors and copiers on the account stop with the seat, because the free plan does not include them; their settings are kept, and a member who subscribes to CrossTrade can turn them back on. If a member needs protection past the end of your service, do not revoke the seat while positions are open. Revocation itself does not flatten positions or cancel protective orders resting at the broker.

Pages in this section​

  • Test mode: test keys, simulated members and the Connect walkthrough before you go live.
  • Code guide: onboarding through Trading and Management reads in Python, JavaScript and cURL, plus a complete Python client.
  • Partner Authentication: visual flow, tokens, scopes, refresh rotation, revocation.
  • Members: the control-plane routes and the member model.
  • Hosted Connect: what the member sees and what your app receives.
  • Delegated trading: operation matrix, identity rules, idempotency.
  • Member streams: one WebSocket per member for Tradovate events, P&L and functions.
  • Delegated management: monitors, copiers and ATM templates your app may create.
  • Events and webhooks: the durable feed and signed delivery.
  • Billing and usage: seat-days and the usage ledger.
  • Errors: response formats, common error codes and recovery steps.