Introduction

Welcome to TradersPost! Get started with TradersPost by familiarizing yourself with how the platform works.

What is TradersPost?

TradersPost is a unique web-based tool that allows traders to automate trades using TradingView webhook signals to connect custom strategies to major stock brokers like TD Ameritrade, TradeStation, Alpaca and more.

Who is TradersPost for?

  • Strategy Managers - a person that is interested in creating automated trading strategies and connecting them to their broker.
  • Traders and Investors - a person that is interested in connecting automated trading strategies to their broker without any coding knowledge.

How does it work?

TradersPost is made of the following concepts. You can use them together to create automated trading strategies in your broker and allow other people to subscribe to your strategies.

  • Signals - Signals are buy or sell signal that can be produced by an automated algorithm or even a manual human trader.
  • Strategies - Strategies define a group of signals. Users can subscribe to strategies and have the signals place trades directly in their broker.
  • Brokers - Bring your own broker by connecting it to TradersPost. We support several brokers like TD Ameritrade, Alpaca and TradeStation.
  • Subscriptions - Subscriptions allow you to connect a strategy to a broker, define your risk tolerance and position sizing.

Signals

Signals are buy or sell instructions that can be produced by an automated algorithm or even a manual human trader. They require the following minimum information.

  • ticker - The ticker symbol name. Example AMD (required)
  • action - The signal action. Supported values are buy and sell (required)
  • price - The price of the buy or sell action. If you omit this value, the signal defaults to a market order (optional)

Signals can be sent to TradersPost via Webhooks. A webhook is a signal sent from custom code or a 3rd party system like TradingView.com.

Webhooks

A webhook in web development is a method of augmenting or altering the behavior of a web page or web application with custom callbacks. These callbacks may be maintained, modified, and managed by third-party users and developers who may not necessarily be affiliated with the originating website or application.

You can use webhooks to send signals to TradersPost from your own custom code, or from a system like TradingView or TrendSpider. A webhook receives data in the JSON format. JSON is an open standard format, and data interchange format, that uses human-readable text to store and transmit data between systems.

Here is an example of what the JSON would look for a webhook signal for AMD to buy at a price of $85.50.

{
    "ticker": "AMD",
    "action": "buy",
    "price": "85.50"
}

Sending webhooks is easy! You can send webhooks with any computer that has internet access using widely available tools like curl or programming languages such as PHP or Python. Here is an example using curl from the command line.

$ curl -H 'Content-Type: application/json; charset=utf-8' -d '{"ticker": "AMD", "action": "buy", "price": 85.50}' -X POST https://traderspost.io/trading/webhook/9d9f8620-d60d-416e-827e-0ec01ef93532/9b5b8c4264421f5515fd4fcb6571af50

Or if you are a user of TradingView, you can configure an alert to send a webhook with a message like this.

{
    "ticker": "{{ticker}}",
    "action": "buy",
    "price": "{{close}}",
    "time": "{{timenow}}",
    "interval": "{{interval}}",
    "open": "{{open}}",
    "high": "{{high}}",
    "low": "{{low}}",
    "close": "{{close}}"
}

The values wrapped in {{ and }} will be replaced dynamically by TradingView when the alert is sent to the webhook URL. With this, you can use something like the Trend Following MOMO strategy by Matt DeLong and place the MOMO trades directly in your broker!

Custom Code

You can send webhooks to TradersPost from custom code using programming languages like PHP or Python. Here is an example using PHP and the Symfony HTTP Client.

$ composer require symfony/http-client
<?php
// traderspost-test.php

require 'vendor/autoload.php';

use Symfony\Component\HttpClient\HttpClient;

$webhookUrl = 'https://traderspost.io/trading/webhook/9d9f8620-d60d-416e-827e-0ec01ef93532/9b5b8c4264421f5515fd4fcb6571af50';

$client = HttpClient::create();

$response = $client->request('POST', $webhookUrl, [
    'json' => [
        'ticker' => 'AMD',
        'action' => 'buy',
        'price' => 85.50,
    ]
]);

echo $response->getContent();
$ php traderspost-test.php

Strategies

Strategies define a group of signals. Strategies are private by default. Strategy managers can publish their strategies and allow other users to subscribe to them. When a user subscribes to a strategy, the trades will be placed automatically in the broker linked to the subscription.

As a strategy manager, if you don't want to publish your strategy for the public to use, you can keep it as a private subscription.

Brokers

TradersPost has a "bring your own broker" architecture. We are not a broker or an exchange. We do not hold your money and you are required to connect an existing brokerage to TradersPost in order to use the functionality. We have integrations with the following brokers.

  • Alpaca - API for Stock Trading - Trade with algorithms, connect with apps, build services — all with commission-free stock trading API
  • TD Ameritrade - TD Ameritrade is a broker that offers an electronic trading platform for the trade of financial assets.
  • TradeStation - TradeStation offers state-of-the-art trading technology and online electronic brokerage services to active individual and institutional traders in the U.S. and worldwide.
  • Robinhood - Robinhood is a free-trading app that lets investors trade stocks, options, exchange-traded funds and cryptocurrency without paying commissions or fees.

Don't see your broker listed here? Email [email protected] if you would like to see support for your broker added to TradersPost.

Subscriptions

A subscription is how a user connects a strategy to a broker. Any signal associated with a strategy will create a new trade for the subscription and allow you to either auto submit the trade to your broker or get an email to review the trade before approving or rejecting.

Before the trade is placed in the connected broker, it is passed through the TradersPost order and risk management system which gives you the ability to fine tune your entry, position size, take profit and stop loss.

What happens when you get a subscription trade?

  1. Cancel Open Orders - Any open orders for the ticker in the signal will be canceled.
  2. Exit Current Position - Any open position for the ticker in the signal will be exited based on the configuration details in your subscription. For example, if you have a long position open for AMD and you get a sell signal, the long position will be closed with a sell order.
  3. Enter New Position - The new position will be entered with a order based on the configuration details in your subscription.

Ready to get started? Register your free account today!