Automated Options Order Excecution via Brokerage API triggered by Email Data

Completado Publicado May 28, 2015 Pagado a la entrega
Completado Pagado a la entrega

I would like to create a Python Script / Program that automatically creates and sends an Options order to a brokerage account using criteria it extracts from an email notification. I have already used "import poplib" to successfully extract emails from an account. I would need to have a script created to extract certain information from the email subject and create an order based on that information and send it to a simulated brokerage account via the API for execution. There is some additional information that would need to be calculated.

The main information that will be extracted from the email will be:

- Ticker Symbol (ie. AAPL)

- Order Type (sell, buy, cover, short)

- Price

Once the information extracted, it will need to be passed on and the below would need to be calculated to create the proper stock option for that ticket symbol:

- calculate the proper expiration date taking into consideration the current date (ie. plus 30 days)

- calculate the proper strike price based on the price extracted (ie. rounded to the next whole number higher. If price is 84.55, strike should be 85)

- compose the option contract name based on this information.

- send order for execution

- set sell price or percentage once order implemented.

- implement validation to check if there are existing orders, etc.

- Increment order / transaction ID by 1 number for the next order.

I believe this should be a rather simple code to create for someone experienced in Python. I have already created functionality to pull emails. I have also created the functionality to connect to the brokerage account via API and execute an order that is entered manually into a python script. I have been learning basic python recently but do not really have the time to do research and finish the functionality. I need help.

The brokerage I use if Interactive Brokers. They have a Python Module available called IBpy for programming with the API. [url removed, login to view]

I would also need to be able to change criteria within the python script (like be able to change the expiration dates, strike prices, target profit %, etc)

Mercados financieros Python

Nº del proyecto: #7755130

Sobre el proyecto

5 propuestas Proyecto remoto Activo May 30, 2015

Adjudicado a:

chirgeo

Hi. I read the description and this project seems interesting for me. Still I have few question: 1. Do we need to handle any type of email service or only specific one? 2. Should email sync by a real time featu Más

$600 USD en 3 días
(50 comentarios)
6.4

5 freelancers están ofertando un promedio de $470 por este trabajo

anuyadav1

A proposal has not yet been provided

$500 USD en 5 días
(47 comentarios)
5.6
Scorpio1987

Hi, I am an expert in python scripting. I have gone through your requirements. Since you have the code almost completed the only work that is pending is to create orders from the email and send the orders to brokera Más

$250 USD en 2 días
(22 comentarios)
4.9
danilogbotelho

Hi, there! I'm an experienced developer who have been working with API integration a lot lately. I'm very detail oriented and flexible. I'd provide you a well commented code so that you can build upon your basic Más

$500 USD en 5 días
(5 comentarios)
4.3
webbookstudio

Hello! My name is Olya. I represent Ukrainian IT Company «Webbook». We got acquainted with Your project and ready to create a Python Script / Program that automatically creates and sends an Options order to a broker Más

$500 USD en 18 días
(0 comentarios)
0.0