Python Sample Code for Interactive Broker using IbPy
$10-100 USD
Closed
Posted over 8 years ago
$10-100 USD
Paid on delivery
I am supposed to use this code on a machine where I can’t install any packages. Standard packages like numpy, scipy, etc are already available but not IbPy. So, ask me before you implement any exotic package and I will be able to tell you whether to use or not. Currently I use IbPy using import function in Python.
I need a code which does the following:
(1) Creates an order in options and it’s ETF e.g. for SPX, MSFT and 10 other random stocks and options for this example
(2) Executes the above limit orders
(3) Reads the portfolio to see the contents of the portfolio i.e. contact or stock characteristics, ticker, expiration, underlying for options, the purchase price, commission paid to execute the order, current bid and ask for the position
(4) Stores the above information about portfolio in a pandas dataframe etc
(5) Calculates the PnL of the positions individually every 10 min and if the PnL falls below 1% pops up a box saying the PnL for the particular contract is down for each relevant position in the portfolio. If more than 1 position is down then the message box will be updated to have more than 1 lines and each other an ok button to dismiss the instruction for the particular position
(6) Liquidates the position which has PnL less than 1% once I hit ok on the message box from step 5 above
The IbPy is available here:
[login to view URL]
Sample Implementation is at:
[login to view URL]
You can test it by downloading interactive brokers free demo TWS. If you have problems with the download let me know.
Hi,
I, based on my 5 years experience as a software engineer knowledgeable with unix and linux administration expert on commandline application, can handle this task pretty well. Let me know the best of your time so we can discuss and we can move forward to the next step.
Thanks,
Joseph C Ocero
Hi we are a team of developers based in Bangalore. We specialise in web application development, web-scrapping solutions, and server performance & security enhancement solutions(Using pure python). We can deliver your project within 10-15 days from start-date. I am sure there will be way around to install ibpy on your machine(team is currently focusing on this) OR we do have alternatives for ibpy like Bitcoin Trader or IBOSA. Thats it for now. Ping us back if you would like to discuss the project in detail with us.
Regards,
Anup Vaze