How to setup a simple Trading View Integration

On Aperium Trader

  1. Register a Free account at Aperium.

  2. Save your Binance API Keys on Aperium Trader, menu Account > Security.

  3. Go to menu Account > General Settings and inform default entryVolume. Note that this can also be informed on the BUY trigger from Trading View.

  4. On the same page click on the "Create API key" link to generate the user key to be used on Trading View.

  5. Go to menu Account > My pairs and add the symbol to be traded. Default BTCUSDT is already added.

On Trading View

  1. For this demo select Binance BTCUSDT with 1 minute time-frame on spot market.

  2. Click on Indicators & Strategies icon and add two Moving Average indicators, with with length 9 and 14 respectively.

  3. Set a New Alert, like in the picture below. Notice that it will be triggered every time MA 9 cross up MA 14, calling the webhook: https://parser.aperium.io/trade/order. Name it "MA_9_14_up" and on the alert message box input the JSON code below.

  4. The ? icon beside "webhook url" provides a Trading View help with a very good explanation on the format and variables.

  5. The TradingAPI link at this page footer provides documentation for the integration.

Cross Up JSON:

{
    "userkey": "your user key",
    "loggedUser": "your aperium username",
    "email": "your aperium email",
    "strategy": "MA_9_14_up",
    "symbol":  "{{ticker}}",
    "price": "{{close}}",
    "mode": "test",
    "percentEntry": 50,
    "side": "BUY"
}

Cross Down JSON:

{
    "userkey": "your user key",
    "loggedUser": "your aperium username",
    "email": "your aperium email",
    "strategy": "MA_9_14_down",
    "symbol":  "{{ticker}}",
    "price": "{{close}}",
    "mode": "test",
    "side": "SELL"
}

  1. Analogously, set a New Alert, but now change the condition Crossing Up to Crossing Down, to be triggered every time the MA 9 cross down MA 14, calling the webhook: https://parser.aperium.io/trade/order. Name it "MA_9_14_down" and on the alert message box input the JSON "Cross Down JSON" code above.

  2. If you prefer, also select some other alert notification, like popup.

  3. You are all set, keep the alert active and at every crossing condition an order should be sent from TView to Aperium and from Aperium to your account on Binance.

  4. Aperium provides a menu Reports where you may follow on the results of your strategies.

Links

Wiki

FAQ

Trading API

Binance

Contacts

Slack

Contact

© 2020 Aperium, all rights reserved