Option trading api

i can program stock buy sell but I wondering if anyone has successfully programmatically bought or sold stock options.
There's no way i'm buying this book, checkout the bad reviews ...
its the same thing. just add strike, expiration, put or call to the order
... i could put this quote in book format if you'll buy it
 
Reply with working code snippet. Lots of talk out there ...
good luck
Code:
    def makeOptOrder(action, oID, tif, orderType,price,qty):
        newOptOrder = Order()
        newOptOrder.m_orderId = oID
        newOptOrder.m_clientId = 0
        newOptOrder.m_permid = 0
        newOptOrder.m_action = action
        newOptOrder.m_lmtPrice = price
        newOptOrder.m_auxPrice = 0
        newOptOrder.m_tif = tif
        newOptOrder.m_transmit = True
        newOptOrder.m_orderType = orderType
        #newOptOrder.m_goodTillDate= '20120702 08:27:22'
        #newOptOrder.m_ocaType = 0
        #newOptOrder.m_ocaGroup = "nernygrp"
        newOptOrder.m_totalQuantity = qty
        #newOptOrder.m_hidden= True
        return newOptOrder

 
good luck
Code:
    def makeOptOrder(action, oID, tif, orderType,price,qty):
        newOptOrder = Order()
        newOptOrder.m_orderId = oID
        newOptOrder.m_clientId = 0
        newOptOrder.m_permid = 0
        newOptOrder.m_action = action
        newOptOrder.m_lmtPrice = price
        newOptOrder.m_auxPrice = 0
        newOptOrder.m_tif = tif
        newOptOrder.m_transmit = True
        newOptOrder.m_orderType = orderType
        #newOptOrder.m_goodTillDate= '20120702 08:27:22'
        #newOptOrder.m_ocaType = 0
        #newOptOrder.m_ocaGroup = "nernygrp"
        newOptOrder.m_totalQuantity = qty
        #newOptOrder.m_hidden= True
        return newOptOrder

Find it here?
https://www.programcreek.com/java-a...ptocoinpartners/schema/PortfolioManager.java#
 
Back
Top