bvkin / trade_bot

Bot to automatically manage a stock portfolio
1 stars 0 forks source link

Modulate Tickers & Strategy as Obj to Pass to trade_bot/main.py #35

Open bbell03 opened 11 months ago

bbell03 commented 11 months ago

Should we provide options for --tickers like market indices or custom lists?

bvkin commented 11 months ago

I think the next version of passing tickers should involve something where we can save state. So tickers along with which strategies to use and what parameters should be set for them would be stored inside of a PostgreSQL db or something of the like. Until then I think it's ok to just stick with a comma separated list.

bbell03 commented 11 months ago

How have you been running it? What list do u pass? Should we decide on a default list for testing and continuity purposes?

And yeah saving state would be good... are you using any db and do u have a hard preference for postgres?

bbell03 commented 11 months ago

Also having some feedback loop across backtesting and trading utilities will be important to build evaluate and make good use of different states...

bvkin commented 11 months ago

How have you been running it? What list do u pass? Should we decide on a default list for testing and continuity purposes?

The list of tickers I'm using is set here. Terraform handles passing that as a comma separated list to the --tickers option when it provisions it it ECS.

We currently have unit/integration tests for MovingAverages/EngulfingCandlesticks. The test data is here. We don't want that linked to an actual ticker because we want the data to remain consistent.

bvkin commented 11 months ago

And yeah saving state would be good... are you using any db and do u have a hard preference for postgres?

There's no way to save state currently. I would prefer postgreSQL personally.