Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Locked Paid engagement for python script
Hi,?
I'm writing to see if anyone is interested in 1) a paid engagement to develop a python script, functionality described below; and 2) spending the time to help me understand the logic behind the python script execution.? ??
?
Desired functionality:? When a new order is placed, that order will be either extremely above or below the current bid/ask spread, and the order is being used simply as a flag.??
For example, a limit buy order for 1 share of MSFT at $100 is submitted.? At that point, I'd like the python script to:?
1) detect that the order has been submitted;
2) cancel the order;
3) submit an option call order for symbol MSFT at a strike price that is just OTM, at the soonest expiration date.? ?
4) Exit strategy: detect when an order on the opposite side has been submitted (for example, sell 1 share of MSFT at $500)
4a) delete the sell order
4b) if the call order has been filled, exit the option position
?
The opposite of the above scenario needs to work as well, with a sell order and puts.?
?
Additionally, I'd ask the programmer to allot 4hrs to explain the execution of the code and allow for questions in order for me to understand the script, so that I can maintain/modify going forward.? I do have programming experience, but it is in classic ASP.? ??
?
Sample script execution (assume current price of MSFT stock is $300, and assume current date is 3/28/2022):
1) outside of the python script, a limit buy order is submitted for 1 share of MSFT at $100/share
2) the python script deletes this order
3) python script submits an order for 1 MSFT Call option at the Ask, with a strike price of $302.5, expiring on 4/1/2022
4) outside of the python script, a limit sell order is submitted for 1 share of MSFT at $500/share
5) the python script deletes this order
6) python script exits or cancels the existing/open call position at the Bid price
7) python script submits an order for 1 MSFT option Put at the Bid, with a strike price of $297.5 expiring on 4/1/2022
8) At 3:55 PM EST, the python script closes all positions.??
?
Notes:??
1)??Soonest expiration date must account for weeklies, for example M/W/F in the case of SPY.?
2)? Stock symbol must be variable.??
3)? I believe Symbol + Order Type (buy/sell) can be used as a flag.? The order price will not be static, therefore I don't think it can be used as part of the flag.??
?
Please email?mfleharty@...?if interested.? Thanks in advance.
Matt |
I can do this? Let me know, Rob? On Sat, Mar 26, 2022 at 3:29 PM <mfleharty@...> wrote:
|
开云体育You may want to check first if IB lets you submit orders that are so far away from market price. I believe they have a limit on accepting limit orders that are too far away from current bid/ask depending on the instrument type and exchange.?
If your trigger is to be based on the underlying reaching a certain price, you could handle it via a conditional order in the script so then you don’t need an external flag. rgds, Bart On Mar 26, 2022, 12:43 PM -0700, RobDawg35 via groups.io <rob.sandberg26@...>, wrote:
On Sat, Mar 26, 2022 at 3:29 PM <mfleharty@...> wrote:
|
开云体育Hey Matt- I’m interested in this project as well. ?I’m currently managing a multi strategy long/short portfolio via IBApi overseeing 7 figures in assets, much of it being outside funds. ?Let me know if you need other qualifications or if you’d like a price estimate. Thanks, Mike On Mar 26, 2022, at 3:29 PM, mfleharty@... wrote:
|
to navigate to use esc to dismiss