I am using hte tws c api, but am having problems sending a simple order...
This is what I am trying:
Setting contract with
memset(&c, 0, sizeof c);
c.c_symbol = "YM";
c.c_sectype = "FUT";
c.c_expiry = "200512";
c.c_right = "";
c.c_multiplier = "";
c.c_exchange = "ECBOT";
c.c_primary_exch = "";
c.c_currency = "USD";
c.c_local_symbol = "";
setting order like this
memset(&order1, 0, sizeof order1);
order1.o_clientid=1;
order1.o_orderid=5000;
order1.o_action="BUY";
order1.o_tif="DAY";
order1.o_transmit=0;
order1.o_total_quantity=1;
order1.o_order_type="MKT";
order1.o_primary_exchange="ECBOT";
tws_place_order(ti, 5000, &c, &order1);
When i enter this my program just locks up...... any idea what I am doing wrong? Thanks
This is what I am trying:
Setting contract with
memset(&c, 0, sizeof c);
c.c_symbol = "YM";
c.c_sectype = "FUT";
c.c_expiry = "200512";
c.c_right = "";
c.c_multiplier = "";
c.c_exchange = "ECBOT";
c.c_primary_exch = "";
c.c_currency = "USD";
c.c_local_symbol = "";
setting order like this
memset(&order1, 0, sizeof order1);
order1.o_clientid=1;
order1.o_orderid=5000;
order1.o_action="BUY";
order1.o_tif="DAY";
order1.o_transmit=0;
order1.o_total_quantity=1;
order1.o_order_type="MKT";
order1.o_primary_exchange="ECBOT";
tws_place_order(ti, 5000, &c, &order1);
When i enter this my program just locks up...... any idea what I am doing wrong? Thanks