Skip to main content

Integrations & API

CrossTrade is built around TradingView alerts, but the same webhook endpoint accepts payloads from virtually any source that can issue an HTTP request — IFTTT, Zapier, Make.com, Discord/Telegram bots, or your own code. Separately, the CrossTrade REST API lets you place and manage orders programmatically against NinjaTrader 8. This page covers both directions.

Can I send alerts from sources other than TradingView?

Yes. The CrossTrade webhook URL accepts HTTP POST requests from any service capable of sending one — TradingView is the most common source, but IFTTT, Zapier, Make.com, Discord/Telegram bots, and custom scripts all work the same way. As long as the payload matches the documented alert syntax, CrossTrade does not care who sent it.

How do I send a webhook from my own Python (or other) script?

Post your alert body to your CrossTrade webhook URL as plain text. Any language that can make an HTTP request will work — Python is the most popular among users, but the API and webhook are language-agnostic. Start from the webhook message reference in the docs for the payload format.

Is there an API for programmatic trading?

Yes. The CrossTrade API lets you place orders, manage positions, and pull account data directly against NT8 from your own code. Full reference:

https://crosstrade.io/docs/api/overview

Authentication details are here:

https://crosstrade.io/docs/api/authentication

Sample usage lives alongside each endpoint in the docs — there is no separate PDF; the docs are a full website.

Can I OCO two orders through the REST API?

Yes. When placing each order via POST /orders, set the same ocoId value on both. CrossTrade will link them as a one-cancels-the-other pair.

https://crosstrade.io/docs/api/orders/post-place-order

Can I get live OHLC candles or historical bar data from the API?

No. The CrossTrade API is built for live trading, not historical data. The GET /quote endpoint returns the current live quote (including session-level OHLC pulled from NT8's internal security objects) — there is no parameter to request a specific interval like 1-minute, and there is no instantaneous OHLC bar tracking on the live stream.

If you need intraday candles at a fixed interval, you will need to source that data from a market-data provider and build your own bar aggregator; polling GET /quote every second is not a reliable substitute because you can still miss the true high or low of the bar.

Can I control the Kill Switch or Closing-Only mode via the API?

Yes — the Kill Switch and Closing-Only toggle can both be flipped programmatically through the API, so you can build rules that halt new entries while still allowing exits.

Which platforms does the API work with?

The CrossTrade API is for NinjaTrader 8. Users write in many different languages — Python is the most common — and integrate with their own strategy code, custom AI traders, and similar projects. We do not have a known user base on QuantConnect specifically.

How does CrossTrade notify me of fills or events (Discord, Telegram, Slack)?

CrossTrade does not push outbound notifications to Discord, Telegram, or Slack directly. Fills and account events are surfaced through NT8 and the CrossTrade app itself. If you want messages routed to a chat platform, the common pattern is to use the CrossTrade API (or NT8) to detect the event and forward it with a small script or an automation service such as Zapier or Make.com.

Where can I get help if I have more questions?

Email support@crosstrade.io, send a message from inside the CrossTrade app, or ask in the community Discord. Everything in the FAQ is pulled from the main documentation at https://crosstrade.io/docs.