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
  • Stocks limit, with price, with quantity
  • Stocks limit, without price, with quantity
  • Stocks limit, without price, without quantity
  • Stocks market with quantity
  • Stocks market without quantity
  • Stocks Stop
  • Stocks Stop limit with stop, with limit, with quantity
  • Stocks Stop limit with stop, with limit, without quantity
  • Stocks close position limit with price
  • Stocks close position limit without price
  • Stocks close position market
  1. Auto Trading

Stocks Usecases

Stocks limit, with price, with quantity

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "LMT",
  "enforce": "DAY",
  "price": "0.02",
  "quantity": 1
}

Stocks limit, without price, with quantity

placed at mid price: 169.135

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "LMT",
  "quantity": 1
}

Stocks limit, without price, without quantity

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "LMT"
}
  • case 1 preference stocks_max_price not set gives error

  • case 2 mid price 169.135, preference max_price 425 (2.5x) bought 2 @ 169.14 each

Stocks market with quantity

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "MKT",
  "quantity": 1
}

Stocks market without quantity

mid price 169.135, preference max_price 425 (2.5x)

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "MKT"
}

bought 2

Stocks Stop

case 1 without stop price

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "STP"
}

gives error

case 2 with stop price

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "STP",
  "stop_price": "170"
}

Stocks Stop limit with stop, with limit, with quantity

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "STP LMT",
  "stop_price": "169.20",
  "price": "169.21",
  "quantity": "1"
}

Stocks Stop limit with stop, with limit, without quantity

preference max_stock_price: 425 (2.5x)

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "BUY",
  "order_type": "STP LMT",
  "stop_price": "170",
  "price": "170"
}

quantity 2

Stocks close position limit with price

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "CLOSE",
  "order_type": "LMT",
  "price": "172"
}

Stocks close position limit without price

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "CLOSE",
  "order_type": "LMT"
}

Stocks close position market

{
  "password": "<<password>>",
  "asset_type": "stocks",
  "asset_name": "AAPL",
  "action": "CLOSE",
  "order_type": "MKT"
}
PreviousOptions UsecasesNextCrypto Usecases

Last updated 5 months ago

📉