CandeFi Social & Auto Trading Platform
  • 👋CandeFi Service Guide
  • Overview
    • 💡What we do
    • ✨Our Features
  • How-To
    • 🔗Connecting your Broker
    • 📝Install CandeFi as App - Phone
    • 🧑Install CandeFi as App - Desktop
  • Auto Trading
    • 📈Payloads Fields & Descriptions
    • 📉Sample TradingView Commands
    • 🔧Auto Trade Preference Settings
    • 📉Options Usecases
    • 📉Stocks Usecases
    • 📉Crypto Usecases
  • Social/Copy Trading
    • 📪Trade Signal Sharing by Analyst
    • 🏛️Subscription Plans Creation
  • Contacts
    • 🎨Contact Us / Social Media
  • Legal Notices
    • Terms of Use & Disclaimer
    • Privacy Notice
Powered by GitBook
On this page
  • Sample payload where QUANTITY, PRICE & the other values are calculated based on Trade Profiler - Trade Preference
  • Sample payload where Trader specifies additional fields: QUANTITY, PRICE & STOP-LOSS.
  • Fields share in the payload take precedence when executing a signal. Required fields not provided in the payload are calculated based on Trade Profiler.
  1. Auto Trading

Sample TradingView Commands

To enhance the auto-trading experience and ensure consistent execution of trade signals, Traders are encouraged to complete the Auto-Trade Preference within their Trade Profile. This will enable CandeFi to effectively process and execute trade signals. Below are sample payloads that can be sent to CandeFi for auto-trading.

Note: Please replace the text <<password>> with the CandeFi Bot password.

Sample payload where QUANTITY, PRICE & the other values are calculated based on Trade Profiler - Trade Preference

BUY COMMAND

{
    "password": "<<password>>",
    "asset_type": "stocks",
    "asset_name": "{{ticker}}",
    "action": "BUY"
}

SELL COMMAND

{
    "password": "<<password>>",
    "asset_type": "stocks",
    "asset_name": "{{ticker}}",
    "action": "SELL"
}

CALL COMMAND

{
    "password": "<<password>>",
    "asset_type": "options",
    "asset_name": "{{ticker}}",
    "action": "CALL"
}

PUT COMMAND

{
    "password": "<<password>>",
    "asset_type": "options",
    "asset_name": "{{ticker}}",
    "action": "PUT"
}

EXIT/CLOSE COMMAND

{
    "password": "<<password>>",
    "asset_type": "options",
    "asset_name": "{{ticker}}",
    "action": "CLOSE"
}

BUY COMMAND

{
    "password": "<<password>>",
    "asset_type": "crypto",
    "asset_name": "{{ticker}}",
    "crypto_quantity_type": "usd",
    "action": "BUY"
}

SELL COMMAND

{
    "password": "<<password>>",
    "asset_type": "crypto",
    "asset_name": "{{ticker}}",
    "crypto_quantity_type": "usd",
    "action": "CLOSE"
}

Sample payload where Trader specifies additional fields: QUANTITY, PRICE & STOP-LOSS.

Fields share in the payload take precedence when executing a signal. Required fields not provided in the payload are calculated based on Trade Profiler.

We recommend using the Trade-Profiler to simplify your Indicators, reduce errors and a more consistent trading.

BUY COMMAND

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "{{ticker}}",
  "action": "BUY",
  "price": 200,
  "stop_price": 190,
  "quantity": 5
}

SELL COMMAND

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "{{ticker}}",
  "action": "SELL",
  "enforce": "GTC",
  "price": 217.5,
  "quantity": 5
}

CALL COMMAND

{
    "password": "<<password>>",
    "asset_type": "options",
    "asset_name": "{{ticker}}",
    "action": "CALL",
    "order_type": "LMT",
    "enforce": "GTC",
    "expiration_date": "2024-09-20",
    "strike_price": 200,
    "price": 2.05
}

PUT COMMAND

{
    "password": "<<password>>",
    "asset_type": "options",
    "asset_name": "{{ticker}}",
    "action": "PUT",
    "order_type": "LMT",
    "enforce": "GTC",
    "expiration_date": "2024-09-27",
    "strike_price": 35.5,
    "price": 0.84
}

CLOSE COMMAND

{
    "password": "<<password>>",
    "asset_type": "options",
    "asset_name": "{{ticker}}",
    "action": "CLOSE",
    "order_type": "MKT"
}

BUY COMMAND

{
  "password": "<<password>>",
  "asset_type": "crypto",
  "asset_name": "{{ticker}}",
  "crypto_quantity_type": "coin",
  "action": "BUY",
  "quantity": 5
}

SELL COMMAND

{
  "password": "<<password>>",
  "asset_type": "crypto",
  "asset_name": "{{ticker}}",
  "crypto_quantity_type": "coin",
  "action": "CLOSE",
  "quantity": 3
}

TradingView Alert "Message" Command

{{strategy.order.alert_message}}

For all available payload fields for STOCKS & OPTIONS, click the link below:

PreviousPayloads Fields & DescriptionsNextAuto Trade Preference Settings

Last updated 5 months ago

These are just sample payload commands for demonstration purpose, please do your verify script to make sure it is structured as you intended. If you have any questions about Payload, please contact us or join our community support/discussion on .

📉
Discord