📉Options Usecases
Options open, limit, all details (works)
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
Options open, limit, without strike price, without price (works)
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)
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)
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
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
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)
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)
Options close buy, market:
DOW $56 26 Arp 24 (w) Put 10(quantity 13)
Last updated