Custom Coded Trading Strategies Bots

Custom Code covers strategies you write in Python, JavaScript or another language. Send its alerts as webhooks and TradersPost places the orders.

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.

  • Free 7-day trial
  • Set-up in 3 minutes
  • Paper account for testing
A code editor with a script that posts a signal to a TradersPost webhook and the terminal showing the response

Alert webhookReceived

{
  "ticker": "AAPL",
  "action": "buy"
}
  • Market Buy Sent AAPL · 10 shares · Alpaca Live
  • Market Buy Sent AAPL · 10 shares · Tradier Paper
A Custom Code alert reaches TradersPost and becomes orders in the connected broker accounts. The ticker, quantity and accounts are examples.

See Custom Code become an order

1. Signal source

Custom Code Webhook (fixed for this page)

2. Sends orders to
Custom Code / Webhook

Your code · POST

Request body

{
  "ticker": "AAPL",
  "action": "buy"
}
TradersPost / via webhook Live

3 orders from one signal

AccountOrderStatus
Alpaca account 1Buy 10 AAPLSent
Alpaca account 2Buy 10 AAPLSent
Tradier accountBuy 10 AAPLSent

A webhook call from your own code for AAPL reaches TradersPost and becomes a market buy for 10 shares on 2 Alpaca accounts and 1 Tradier account.

Connect Custom Code alerts in three steps

Every signal that fires becomes a real order in your broker account.

In Custom Code

Send a webhook from your code

Step 01

In Custom Code

Use the webhook URL and JSON body

Step 02

In TradersPost

Connect your broker to the strategy

Step 03
  1. Send a webhook from your code

    POST a JSON signal to your webhook URL from any language.

  2. Use the webhook URL and JSON body

    Test it with curl first. A 200 response means TradersPost received it.

  3. Connect your broker to the strategy

    Link your Tradovate account. Every Custom Code signal now places an order.

Ready to send Custom Code alerts to your broker?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.