pareeohnos / ktrade

A simple UI for managing your trades
MIT License
7 stars 5 forks source link

Data not loading after adding ticker and refreshing #22

Closed Dolivent closed 3 years ago

Dolivent commented 3 years ago

image

image

Dolivent commented 3 years ago

Data is also generally not loading. When i try the buy button i gert the following error:

INFO:ibapi.client:REQUEST placeOrder {'orderId': 380, 'contract': 1652377263552: 0,AMZN,STK,,0.0,,,SMART,,USD,,,False,,combo:, 'order': 1652377983248: 380,0,0: STP SELL 3@179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 } INFO:ibapi.wrapper:ANSWER error {'reqId': 380, 'errorCode': 504, 'errorString': 'Not connected'} ERROR:ibapi.wrapper:ERROR 380 504 Not connected

Dolivent commented 3 years ago

After restarting the app, the data comes back and I'm able to place one trade. Then everything freezes again

Dolivent commented 3 years ago

Refresh for new data for newly added ticker also works after I restart the app, but only before i place a buy order

pareeohnos commented 3 years ago

Looks like something is disconnecting it from TWS and the app makes no attempt to reconnect. I think there's basically no error handling at the moment, so if it errors the background thread just dies and that's it. Will add more handling

Dolivent commented 3 years ago

Same issue for Trades page after submitting Sell orders

Dolivent commented 3 years ago

after adding the ticker to watchlist today, refresh didnt bring data up. Had to restart flask and yarn

Arash6771 commented 2 years ago

I have the same issue. @Dolivent were you able to fix?

pareeohnos commented 2 years ago

@Arash6771 have you got any logs that might help isolate the issue?