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
  • Options open, limit, all details (works)
  • Options open, limit, without strike price (works)
  • Options open, limit, without strike price, without price (works)
  • Options open, limit, without strike price, without price, without quantity (works)
  • Options open, limit, without strike price, without price, without quantity (works)
  • Options open, limit, without strike price, without price, without quantity, without expiration date
  • Options open, stop, without strike price, without price, without quantity, without expiration date
  • Options close buy, limit, without price specified:
  • Options close buy, limit, with price specified:
  • Options close buy, market:
  1. Auto Trading

Options Usecases

Options open, limit, all details (works)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "LMT",
  "enforce": "DAY",
  "price": "0.02",
  "strike_price": "17.5",
  "quantity": 1,
  "expiration_date": "2024-04-26"
}

Options open, limit, without strike price (works)

  • case 1 closest strike in preference works: market price: 19.44 strike price chosen 19.5

  • case 2 in_the_money strike in preference works: market price: 19.44 strike price chosen 19

  • case 3 out_the_money strike in preference works: market price: 19.44 strike price chosen 19.5

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "LMT",
  "enforce": "DAY",
  "price": "0.02",
  "quantity": 1,
  "expiration_date": "2024-04-26"
}

Options open, limit, without strike price, without price (works)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "LMT",
  "enforce": "DAY",
  "quantity": 1,
  "expiration_date": "2024-04-26"
}

last price of "MARA", "CALL", "2024-04-26" = 0.83 chosen price 0.83

Options open, limit, without strike price, without price, without quantity (works)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "LMT",
  "enforce": "DAY",
  "expiration_date": "2024-04-26"
}

preference max_options_price $5 last price of "MARA", "CALL", "2024-04-26" = 0.83 expected 0 / order not placed error

Options open, limit, without strike price, without price, without quantity (works)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "LMT",
  "enforce": "DAY",
  "expiration_date": "2024-04-26"
}

preference max_options_price $100 last price of "MARA", "CALL", "2024-04-26" = 0.83 expected quantity 1

Options open, limit, without strike price, without price, without quantity, without expiration date

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "LMT",
  "enforce": "DAY",
}
  • case 1 preference not set should give error

  • case 2 next date should select 26-mar-2024

  • case 3 friday should select 26-mar-2024

  • case 4 friday_after_next should select 03-may-2024

  • case 5 preference: manual, 03-may-2024 should select 03-may-2024

Options open, stop, without strike price, without price, without quantity, without expiration date

  • case 1 no stop price gives error

  • case 2 stop_price 0.64, last_price 0.83 gives error stop_price must be more than market price

  • case 3 stop_price 0.84, last_price 0.83, market_price: 0.91 gives error stop_price must be more than market price

  • case 4 stop_price 0.99, last_price 0.83, market_price: 0.91 works

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "MARA",
  "action": "CALL",
  "order_type": "STP",
  "enforce": "DAY",
  "stop_price": "0.64"
}

Options close buy, limit, without price specified:

should set limit price to position market price

  • DOW $56 26 Arp 24 (w) Put 10(quantity 13)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "DOW",
  "action": "CLOSE",
  "order_type": "LMT"
}

Options close buy, limit, with price specified:

should set limit price to position market price

  • DOW $56 26 Arp 24 (w) Put 10(quantity 13)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "DOW",
  "action": "CLOSE",
  "order_type": "LMT",
  "price": "0.50"
}

Options close buy, market:

  • DOW $56 26 Arp 24 (w) Put 10(quantity 13)

{
  "password": "<<password>>",
  "asset_type": "options",
  "asset_name": "DOW",
  "action": "CLOSE",
  "order_type": "MKT"
}
PreviousAuto Trade Preference SettingsNextStocks Usecases

Last updated 5 months ago

📉